/* Eight Bite - Main Stylesheet */
/* Color Scheme: Navy Blue (#1a237e), White (#ffffff), Gray (#808080), Black (#000000) */

:root {
    --primary-navy: #1a237e;
    --primary-navy-dark: #0d1647;
    --primary-navy-light: #3949ab;
    --white: #ffffff;
    --gray: #808080;
    --gray-light: #e0e0e0;
    --gray-dark: #4a4a4a;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', 'JetBrains Mono', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
}

.logo-text .highlight {
    color: var(--primary-navy);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-navy);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    /*background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);*/
    /*color: var(--white);*/
    /*padding: 6rem 0;*/
    /*text-align: center;*/
}
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 2px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.025) 2px, transparent 2px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 160px 160px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

.btn-primary:hover {
    background-color: var(--primary-navy-dark);
    border-color: var(--primary-navy-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-navy);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
}

/* Services Section */
.services-preview {
    padding: 5rem 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border: 1px solid var(--gray-light);
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-dark);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.service-card p {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-navy-light);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.feature-item p {
    color: var(--gray-dark);
}

/* CTA Section */
.cta {
    /*padding: 5rem 0;*/
    /*background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);*/
    /*color: var(--white);*/
    /*text-align: center;*/
}
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 2px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 160px 160px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-light);
}

/* Page Header */
.page-header {
    /*background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);*/
    /*color: var(--white);*/
    /*padding: 4rem 0;*/
    /*text-align: center;*/
}
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 2px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 160px 160px;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--gray-light);
}

/* Service Detail */
.service-detail {
    padding: 5rem 0;
}

.service-detail.alt {
    background-color: var(--gray-light);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-detail h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.service-detail h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--primary-navy);
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-navy);
    font-weight: bold;
}

.placeholder-image {
    background-color: var(--gray-light);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    color: var(--gray);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-method svg {
    color: var(--primary-navy);
    flex-shrink: 0;
}

.contact-method h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--black);
}

.contact-method p {
    color: var(--gray-dark);
}

.contact-method a {
    color: var(--primary-navy);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Forms */
.contact-form,
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--black);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-navy);
}

textarea {
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* About Page */
.about-content {
    padding: 5rem 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.value-card {
    padding: 2rem;
    background-color: var(--gray-light);
    border-radius: 0;
    text-align: center;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.value-card p {
    color: var(--gray-dark);
}

.about-detail {
    max-width: 800px;
    margin: 0 auto;
}

.about-detail h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--black);
}

.expertise-area {
    margin-bottom: 2rem;
}

.expertise-area h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.expertise-area p {
    color: var(--gray-dark);
}

/* Downloads Page */
.downloads-section {
    padding: 5rem 0;
}

.downloads-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--gray-light);
    border-radius: 0;
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.software-card {
    border: 1px solid var(--gray-light);
    border-radius: 0;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-dark);
}

.software-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.software-header h3 {
    font-size: 1.25rem;
    color: var(--black);
}

.software-version {
    background-color: var(--gray-light);
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.software-description {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.software-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.software-category {
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-navy);
    color: var(--white);
    border-radius: 0;
}

.btn-download {
    width: 100%;
    text-align: center;
}

.no-software {
    text-align: center;
    padding: 4rem 0;
    color: var(--gray);
}

.download-info {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.download-info h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--black);
}

.download-info p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--gray-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item {
    text-align: center;
}

.info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.info-item p {
    color: var(--gray-dark);
}

/* Tools Page */
.tools-section {
    padding: 5rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tool-card {
    border: 1px solid var(--gray-light);
    border-radius: 0;
    padding: 1.5rem;
    background-color: var(--white);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.tool-card > p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tool-content {
    margin-top: 1rem;
}

.tool-result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--gray-light);
    border-radius: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.tool-result:empty {
    display: none;
}

.loading {
    text-align: center;
    color: var(--gray);
    padding: 1rem;
}

.info-item-tool {
    margin-bottom: 0.75rem;
}

.info-item-tool strong {
    color: var(--primary-navy);
}

.tools-info {
    padding: 5rem 0;
    background-color: var(--gray-light);
    text-align: center;
}

.tools-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.tools-info p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray-dark);
}

.tools-info a {
    color: var(--primary-navy);
    text-decoration: none;
}

.tools-info a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section h3 .highlight {
    color: var(--primary-navy-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-dark);
    color: var(--gray);
}

/* Web Tools Specific Styles */
.safety-score {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.safety-score.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.safety-score.warning {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.safety-score.error {
    background: rgba(255, 51, 51, 0.1);
    color: #ff3333;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.safety-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-details li {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.safety-details li:last-child {
    border-bottom: none;
}

.text-success { color: #00ff88; }
.text-warning { color: #ffaa00; }
.text-error { color: #ff3333; }

.latest-news {
    padding: 5rem 0;
    background-color: var(--gray-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--primary-navy-light);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-navy);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.news-source {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-navy);
    letter-spacing: 0.05em;
}

.no-news {
    text-align: center;
    grid-column: 1 / -1;
    padding: 3rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 8px var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .services-grid,
    .features-grid,
    .news-grid,
    .contact-grid,
    .service-detail-content {
        grid-template-columns: 1fr;
    }

    .service-detail-image {
        order: -1;
    }

    .section-title {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}
