/* =========================================
   VARIABLES & SETUP
   ========================================= */
:root {
    /* Colors */
    --color-primary: #0369a1;
    /* Professional Tech Blue */
    --color-primary-light: #38bdf8;
    --color-accent: #ef4444;
    /* Red highlight for badges */

    --color-bg-main: #ffffff;
    --color-bg-alt: #f1f5f9;
    /* Light grayish blue for contrast sections */
    --color-bg-dark: #0f172a;
    /* Dark slate for footer/story */

    --color-text-main: #334155;
    /* Soft dark gray for readability */
    --color-text-heading: #0f172a;
    --color-text-light: #f8fafc;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    /* Subtle dot grid background for a premium tech/keyboard matrix feel */
    background-image: radial-gradient(rgba(3, 105, 161, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
.heading-primary {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-heading);
    margin-bottom: var(--space-lg);
    letter-spacing: -1px;
}

.heading-secondary {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-heading);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.highlight-light {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-white {
    color: var(--color-text-light) !important;
}

.paragraph {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    color: var(--color-text-main);
    max-width: 600px;
    line-height: 1.8;
}

.badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    padding: 0.35rem 1.25rem;
    background-color: var(--color-bg-main);
    border-radius: 8px; /* Slightly squarer like a keyboard key */
    border: 1px solid rgba(239, 68, 68, 0.2);
    /* 3D tactile keyboard key effect */
    box-shadow: 
        0 4px 6px -1px rgba(0,0,0,0.05),
        0 2px 4px -2px rgba(0,0,0,0.05),
        inset 0 2px 0 rgba(255,255,255,1),
        inset 0 -2px 0 rgba(239, 68, 68, 0.05);
}

.badge-light {
    color: var(--color-primary);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 
        0 4px 6px -1px rgba(0,0,0,0.05),
        0 2px 4px -2px rgba(0,0,0,0.05),
        inset 0 2px 0 rgba(255,255,255,1),
        inset 0 -2px 0 rgba(56, 189, 248, 0.1);
}

/* Typing Cursor Animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-xxl) 0;
}

.section-light {
    background-color: var(--color-bg-alt);
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
}

.logo img {
    height: clamp(60px, 15vw, 220px);
    width: auto;
    max-width: 60vw; /* Prevent wide logos from breaking mobile view */
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    z-index: 1001;
    /* Optional: Add a subtle drop shadow to the logo so it pops when hanging over the edge */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.nav-links {
    display: flex;
    gap: 3rem;
    margin-left: auto; /* Push to right edge */
}

.nav-links a {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-heading);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text-heading);
    cursor: pointer;
}

/* =========================================
   MAIN BANNER SLIDER
   ========================================= */
.main-banner-slider {
    position: relative;
    width: 100%;
    height: 85vh; /* Takes up most of the screen */
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-top: 100px; /* Offset for fixed header */
    background-color: #0f172a;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.banner-slide.active-slide {
    opacity: 1;
    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--space-lg);
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    gap: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); /* Give the gradient some pop */
}

.pop-text {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: white;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    margin: 0;
    letter-spacing: -1.5px;
}

.pop-subtext {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px);
    max-width: 700px;
    line-height: 1.5;
}

.pop-btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), inset 0 -3px 0 rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(20px);
}

.pop-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 -3px 0 rgba(0,0,0,0.1);
    background: #f8fafc;
}

/* The pop animation triggers when the slide becomes active with staggering */
.active-slide .pop-text {
    animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.active-slide .pop-subtext {
    animation: slideUpFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.active-slide .pop-btn {
    animation: slideUpFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s forwards;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.banner-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.banner-prev-btn {
    left: 20px;
}

.banner-next-btn {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-dots .dot.active {
    background: var(--color-primary-light);
    transform: scale(1.3);
}

/* Adjust the original hero-section offset since the banner now takes the space */
.hero-section {
    padding-top: var(--space-xxl);
    min-height: auto;
}

/* =========================================
   HERO / PROBLEM SECTION
   ========================================= */
.hero-section {
    padding-top: calc(100px + var(--space-xxl));
    /* Offset for fixed header */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    /* Hardware/Premium frame effect */
    border: 8px solid white;
    box-shadow: 
        0 25px 50px -12px rgba(3, 105, 161, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    /* Take up full height of grid row */
    min-height: 400px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: calc(var(--border-radius-lg) - 8px); /* Inner radius */
}

.hero-image:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 35px 60px -15px rgba(3, 105, 161, 0.3),
        0 0 0 1px rgba(56, 189, 248, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.problem-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-heading);
}

.problem-list i {
    color: var(--color-accent);
    font-size: 1.25rem;
}

/* =========================================
   SOLUTION SECTION (Features)
   ========================================= */
.solution-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.features-title {
    font-size: 1.5rem;
    margin: var(--space-lg) 0 var(--space-md);
    color: var(--color-text-heading);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 2rem;
    border-radius: 20px;
    /* Neumorphic 3D keycap base */
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        10px 10px 30px rgba(3, 105, 161, 0.08),
        -10px -10px 30px rgba(255, 255, 255, 1),
        inset 2px 2px 5px rgba(255, 255, 255, 1),
        inset -2px -2px 10px rgba(3, 105, 161, 0.03);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        15px 15px 35px rgba(3, 105, 161, 0.12),
        -15px -15px 35px rgba(255, 255, 255, 1),
        inset 2px 2px 5px rgba(255, 255, 255, 1),
        inset -2px -2px 10px rgba(3, 105, 161, 0.03);
    border-color: rgba(56, 189, 248, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 1.75rem;
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 10px 20px -5px rgba(3, 105, 161, 0.4);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.feature-card p {
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.6;
    margin: 0;
}

.product-showcase {
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-collage {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.product-collage:hover {
    transform: scale(1.02);
}


/* =========================================
   IMPACT & PRESS SECTIONS
   ========================================= */
.impact-container,
.press-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.impact-img,
.press-img {
    border-radius: var(--border-radius-lg);
    border: 6px solid white;
    box-shadow: 
        0 20px 25px -5px rgba(3, 105, 161, 0.15),
        0 0 0 1px rgba(0,0,0,0.05);
    object-fit: cover;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.impact-img:hover,
.press-img:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 40px -10px rgba(3, 105, 161, 0.25),
        0 0 0 1px rgba(56, 189, 248, 0.5);
}

/* =========================================
   AUTO-SCROLL CAROUSEL
   ========================================= */
.auto-scroll-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(3, 105, 161, 0.15), 0 0 0 1px rgba(0,0,0,0.05);
    background: white;
    padding: var(--space-md) 0;
}

.carousel-track {
    display: flex;
    gap: var(--space-md);
    width: max-content;
    animation: scroll 15s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-img {
    width: 300px; /* Adjust based on image aspect ratio */
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.carousel-img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move exactly half the width since we duplicated the images */
        transform: translateX(calc(-50% - (var(--space-md) / 2)));
    }
}

/* Maintain center alignment */
.press-container {
    align-items: center;
}

/* =========================================
   STORY SECTION
   ========================================= */
.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.portrait-container {
    position: relative;
}

/* Decorative element for image */
.portrait-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--color-primary);
    z-index: -1;
    border-radius: var(--border-radius-md);
}

.story-quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-primary-light);
    padding: var(--space-lg);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    margin-top: var(--space-lg);
    position: relative;
}

.story-quote i {
    font-size: 2rem;
    color: var(--color-primary-light);
    opacity: 0.5;
    margin-bottom: var(--space-md);
}

.story-quote p {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.story-quote cite {
    font-size: 1rem;
    font-weight: 700;
    color: #94a3b8;
    /* slate-400 */
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #020617;
    /* Very dark slate */
    color: #94a3b8;
    padding: var(--space-lg) 0;
    text-align: center;
    font-size: 0.875rem;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */

/* Tablet Portrait & Smaller Desktop */
@media (max-width: 1024px) {
    .heading-primary {
        font-size: 3rem;
    }

    .heading-secondary {
        font-size: 2.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet & Mobile Landscape */
@media (max-width: 768px) {

    .container {
        padding: 0 var(--space-md);
    }

    /* Set all main containers to flex column so we can reorder contents */
    .hero-container,
    .solution-container,
    .impact-container,
    .press-container,
    .story-container {
        display: flex;
        flex-direction: column;
        gap: 0; /* Spacing handled by child margins */
    }

    /* =======================================
       1. HERO SECTION
       ======================================= */
    .hero-content { display: contents; }
    .hero-content > .badge { order: 1; }
    .hero-content > .heading-primary { order: 2; margin-bottom: var(--space-md); }
    .hero-image { order: 3; min-height: 250px; width: 100%; margin: var(--space-md) 0 var(--space-lg) 0; }
    .hero-content > .paragraph { order: 4; }
    .hero-content > .problem-list { order: 5; }

    /* =======================================
       2. SOLUTION SECTION
       ======================================= */
    .solution-content { display: contents; }
    .solution-content > .badge { order: 1; }
    .solution-content > .heading-secondary { order: 2; margin-bottom: var(--space-md); }
    .solution-media { order: 3; width: 100%; margin: var(--space-md) 0 var(--space-lg) 0; }
    .solution-content > .paragraph { order: 4; }
    .solution-content > .features-title { order: 5; }
    .solution-content > .features-grid { order: 6; }

    /* =======================================
       3. IMPACT SECTION
       ======================================= */
    .impact-text { display: contents; }
    .impact-text > .heading-secondary { order: 1; margin-bottom: var(--space-md); }
    .impact-images { order: 2; width: 100%; margin: var(--space-md) 0 var(--space-lg) 0; }
    .impact-text > .paragraph { order: 3; }

    /* =======================================
       4. PRESS / EMPOWERING SECTION
       ======================================= */
    .press-text { display: contents; }
    .press-text > .heading-secondary { order: 1; margin-bottom: var(--space-md); }
    .press-images { order: 2; width: 100%; margin: var(--space-md) 0 var(--space-lg) 0; }
    .press-text > .paragraph { order: 3; }

    /* =======================================
       5. STORY SECTION
       ======================================= */
    .story-content { display: contents; }
    .story-content > .badge { order: 1; }
    .story-content > .heading-secondary { order: 2; margin-bottom: var(--space-md); }
    .story-image-wrap { order: 3; width: 100%; margin: var(--space-md) 0 var(--space-lg) 0; }
    .story-content > .paragraph { order: 4; }
    .story-content > .story-quote { order: 5; }

    /* Reset grids and directions for specific components */
    .press-container { direction: ltr; }

    .carousel-img {
        width: 250px; /* Slightly smaller on mobile */
        height: 200px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo img {
        left: 1rem;
        height: 120px; /* Explicitly larger height for mobile */
        max-width: 75vw; /* Allow it to take up more horizontal space on small screens */
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 1005;
        position: relative;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-left: 0; /* Reset for mobile */
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-md);
        gap: var(--space-md);

        /* Smooth slide-down animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .portrait-container::after {
        right: 0;
        bottom: -10px;
        width: 60px;
        height: 60px;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .hero-section {
        padding-top: var(--space-xl);
        min-height: auto; /* Prevent forcing too much blank height */
        padding-bottom: var(--space-xl);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .heading-primary {
        font-size: clamp(2rem, 8vw, 2.25rem);
    }

    .heading-secondary {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
    }

    .feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-md);
    }
}