:root {
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-primary: #1e3a8a;
    /* Deep Royal Blue */
    --accent-secondary: #3b82f6;
    /* Lighter Blue */
    --border-color: #e5e7eb;

    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.italic-accent {
    font-style: italic;
    color: var(--accent-primary);
    font-weight: 400;
}

.highlight {
    color: var(--accent-primary);
}

.text-sm {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Layout Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

section {
    padding: 8rem 0;
}

#philosophy {
    padding-top: 4rem;
    /* Reduced top spacing */
}

.section-white {
    background-color: var(--bg-white);
}

.section-gray {
    background-color: var(--bg-gray);
}

/* Header */
.clean-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.btn-nav {
    background-color: var(--text-primary);
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-nav:hover {
    background-color: var(--accent-primary);
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background-color: #f0f9ff;
}

/* Hero Section */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 8rem;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    /* More space for collage (Right) */
    gap: 4rem;
    /* Reduced separation (Human "closer" feel) */
    align-items: center;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    /* Max-width removed to allow flow */
}

.hero-cta {
    margin-top: 3.5rem;
    /* Separated button */
}

/* Collage Styles */
/* Collage Styles */
.collage-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(3, 180px);
    gap: 1.5rem;
    width: 100%;
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.collage-img:hover {
    transform: scale(1.03);
    z-index: 2;
}

/* Masonry Layout */
.collage-img.main {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    /* Spans all 3 rows */
    height: 100%;
    object-position: 60% center;
    /* Shift left to balance TV and People */
}

.collage-img.sub-1 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.collage-img.sub-2 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.collage-img.sub-3 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f1f5f9;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s;
}

.hero-image-placeholder:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.02);
}

.hero-image-placeholder i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
    text-align: left;
}

.philosophy-item h3 {
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

.philosophy-item p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.icon-box.highlight-icon {
    background: #eff6ff;
    color: var(--accent-primary);
}

/* Feature Rows (Alternating) */
.feature-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 12rem;
    /* Increased spacing */
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

/* Remove margin from the very last feature row to avoid extra space before next section */
.feature-row:last-child {
    margin-bottom: 0;
}

.feature-text {
    flex: 1;
}

.feature-visual {
    flex: 1;
}

.badge {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--accent-primary);
    background: #eff6ff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Check List */
.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.check-list li i {
    color: var(--accent-primary);
    /* Green or Blue */
    margin-right: 1rem;
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background-color: #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    border: 2px dashed #d1d5db;
    transition: all 0.3s;
}

.image-placeholder:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Real World Integration Images */
.dropped-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: block;
    /* Removes bottom spacing */
}

.dropped-image:hover {
    transform: scale(1.02);
}

.dropped-image.crop-sides {
    height: 300px;
    /* Fixed height to force cropping */
    object-fit: cover;
    object-position: center;
}

/* Contact */
.contact-container {
    text-align: center;
    background: linear-gradient(rgba(30, 58, 138, 0.4), rgba(30, 58, 138, 0.3)), url('src/background_final.png');
    background-size: 110%;
    background-position: center;
    padding: 6rem 2rem;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-content h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.contact-content .btn {
    background-color: #fff;
    color: var(--accent-primary);
    font-weight: 700;
    margin-top: 2rem;
    /* Separating the button */
    padding: 1.2rem 3rem;
}

.contact-content .btn:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 5rem 0;
    }

    /* Header Mobile */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-primary);
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        order: 1;
        /* Text first */
    }

    .hero-visual {
        order: 2;
    }

    .collage-wrapper {
        gap: 1rem;
        grid-template-rows: repeat(3, 120px);
        /* Smaller rows */
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    /* Features */
    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        margin-bottom: 8rem;
    }

    .feature-text {
        order: 1;
    }

    .feature-visual {
        order: 2;
    }

    .check-list li {
        justify-content: center;
    }

    /* Comparison */
    .comparison-container {
        flex-direction: column;
        gap: 2rem;
    }

    .vs-badge {
        margin: -1rem 0;
        z-index: 2;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Mobile Contact Section */
    .contact-container {
        padding: 3rem 1.5rem;
        /* Reduced from 6rem 2rem */
    }

    .contact-content h2 {
        font-size: 2rem;
        /* Smaller title */
    }

    .contact-content p {
        margin-bottom: 1.5rem;
        /* Reduced from 3rem */
        font-size: 1rem;
    }

    .contact-content .btn {
        margin-top: 1rem;
        /* Reduced from 2rem */
        width: 100%;
        /* Full width button for better touch area */
    }
}

@media (min-width: 901px) {
    .menu-toggle {
        display: none;
    }
}

/* Comparison Section (Black Box) */
.comparison-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.comparison-column {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.comparison-column.risk {
    border-top: 4px solid #ef4444;
    /* Red for Risk */
}

.comparison-column.solution {
    border-top: 4px solid #10b981;
    /* Green for Solution */
}

.comparison-column h3 {
    margin: 1.5rem 0;
    font-size: 1.4rem;
    text-align: center;
}

/* Visual Placeholders in Comparison */
.comparison-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    /* CROPS the image to fill the box */
    object-position: center;
    /* Focuses on center, cutting sides */
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Legacy Placeholders (kept if needed) */
.visual-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

.error-state {
    background-color: #fef2f2;
    border: 2px dashed #fecaca;
    color: #ef4444;
}

.success-state {
    background-color: #ecfdf5;
    border: 2px dashed #a7f3d0;
    color: #10b981;
}

.visual-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Comparison Lists */
.risk-list,
.benefit-list {
    list-style: none;
}

.risk-list li,
.benefit-list li {
    margin-bottom: 1.2rem;
    /* Increased spacing */
    display: flex;
    align-items: flex-start;
    /* Align icon to top */
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.risk-list li i,
.benefit-list li i {
    margin-top: 5px;
    /* Offset icon slightly */
}

.risk-list li i {
    color: #ef4444;
    margin-right: 12px;
}

.benefit-list li i {
    color: #10b981;
    margin-right: 12px;
}

/* VS Badge */
.vs-badge {
    background: #f1f5f9;
    color: var(--text-secondary);
    font-weight: 800;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--border-color);
}

@media (max-width: 768px) {
    .comparison-container {
        flex-direction: column;
        gap: 2rem;
    }

    .vs-badge {
        margin: -1rem 0;
        z-index: 2;
    }
}

/* Methodology Section */
.section-sub {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.brains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.brain-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s;
}

.brain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-primary);
}

.brain-visual {
    margin-bottom: 1.5rem;
}

.brain-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f5f9;
}

.brain-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--accent-primary);
}

.brain-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Animations Delay Utility */
.delay-100 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.team-card {
    background: transparent;
    text-align: center;
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: grayscale(100%);
    /* Elegant B&W Look */
}

.team-card:hover .team-img {
    transform: scale(1.05);
    filter: grayscale(0%);
    /* Color on Hover */
}

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-role {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}