:root {
    --bg-color: #030812; /* Deep dark blue/black */
    --text-color: #ffffff;
    --pill-bg: #f2f2f2;
    --pill-text: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4; /* The White Frame */
    color: var(--text-color);
    overflow: hidden; /* Prevent body scroll, use scroll-container instead */
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Fixed Logo Placeholder in Top Left Corner */
.fixed-logo-container {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1000;
    background-color: #f4f4f4;
    width: 200px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Rounded Corner SVG */
.corner-svg {
    position: absolute;
    top: 15px;
    left: 202.5px;
    width: 25px;
    height: 20px;
    z-index: 999;
}
/* Bottom Left Rounded Corner SVG */
.corner-svg-bottom {
    top: 85px;
    left: 12px;
    transform: rotate(0deg);
}.fixed-logo-container img {
    width: 130%;
    height: 130%;
    object-fit: contain;
}

/* Fixed Navigation positioned right of logo */
.fixed-nav {
    position: absolute;
    top: 32px; /* moved down slightly */
    left: 220px; /* 200px logo width + 5px offset + 15px gap */
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* The Scrollable Dark Content Area */
.scroll-container {
    background-color: var(--bg-color); /* Dark content background */
    width: calc(100% - 30px); /* 15px frame on each side */
    height: calc(100% - 30px); /* 15px frame top/bottom */
    border-radius: 15px; /* The rounded corners of the dark content */
    overflow-y: auto;
    position: relative;
    /* Hide scrollbar for cleaner look if desired, but keep functionality */
    scrollbar-width: none; 
    padding-bottom: 50px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.scroll-container::-webkit-scrollbar { 
    display: none; 
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header within the scrollable area */
header {
    display: none; /* Hidden as nav is now fixed outside */
    padding: 0;
}

.header-container {
    display: flex;
    justify-content: flex-end; /* Push nav to right */
    align-items: center;
}

.header-spacer {
    /* Replaces logo in flex flow if needed, currently empty */
}

nav {
    display: flex;  
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    background: rgba(128, 128, 128, 0.55); /* Less translucent grey */
    backdrop-filter: blur(5px);
    padding: 0;
    border: none;
    border-radius: 30px; /* More rounded corners */
    padding: 10px 20px;
}

nav li {
    padding: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    position: relative; /* Establish positioning context for video bg */
    padding-top: 60px;
    display: flex;
    align-items: center;
    overflow: hidden; /* Hide overflow from rotated elements if needed */
    min-height: 100vh; /* Ensure hero fits the whole screen */
}

/* Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Behind content but above background color */
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1); /* Zoom out a bit */
    transition: opacity 1s ease-in-out;
}

.bg-video.active {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient shifted left: dark part starts earlier */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0.95) 70%);
    z-index: 1;
}

/* Ensure hero content sits above video */
.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 10;
    padding-top: 40px;
}

.headline-wrapper {
    margin-left: -50px; /* Adjust the value as needed */
    margin-bottom: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pill {
    background-color: var(--pill-bg);
    color: var(--pill-text);
    display: inline-block;
    padding: 15px 50px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.pill h1 {
    font-size: 4.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 2;
    margin: 0;
}

.pill-top {
    transform: rotate(-5deg);
    margin-bottom: 20px;
}

.pill-bottom {
    transform: rotate(4deg);
    margin-left: 150px; /* Shift the second pill to the right */
    padding: 15px 90px; /* Increased horizontal padding for wider appearance */
}

.hero-description-wrapper {
    position: relative;
    margin-top: -20px;
    display: flex;
    align-items: center;
}

.hero-description {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
    max-width: 650px;
}

.hero-cta-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    max-width: 650px;
}

.shopify-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.shopify-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.shopify-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.small-shoe-img {
    width: 200px;
    height: auto;
    margin-left: 40px;
    transform: rotate(-10deg);
}

.hero-image {
    flex: 0 0 400px; /* Fixed width for the phone container */
    display: flex;
    justify-content: center;
    position: relative;
    margin-right: -80px;
    margin-top: -30px;
    perspective: 1000px; /* Enable 3D space */
}

.tilt-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.tilt-layer {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none; /* Let clicks pass through if needed, mainly for smooth mouse interaction */
}

.tilt-layer.base {
    position: relative;
    z-index: 1;
    /* Simulate shadow/glow on the base */
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1)); 
}

.tilt-layer.top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transform: translateZ(40px); /* Levitate the top layer */
    /* Optional: drop shadow for the top element to enhance depth */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .pill h1 {
        font-size: 3rem;
        padding: 10px 30px;
    }
    
    .hero-description {
        font-size: 1.4rem;
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .headline-wrapper {
        align-items: center;
        margin-left: 0;
    }

    .pill-top {
        transform: rotate(-3deg);
        margin-left: 0;
    }

    .pill-bottom {
        transform: rotate(2deg);
        margin-left: 40px;
    }
    
    .hero-description-wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
    }
    
    .hero-description {
        text-align: center;
    }

    .hero-cta-wrapper {
        margin-top: 40px;
    }
    
    .small-shoe-img {
        margin: 20px 0;
    }

    .hero-image {
        margin: 40px 0;
        width: 100%;
        flex: auto;
    }
    
    .tilt-inner {
        max-width: 300px;
        margin: 0 auto;
    }
}
/* SizeFit Section - Scrollytelling */
.sizefit-section {
    position: relative;
    background-color: #0a0a0a;
    min-height: 550vh; /* Extended to include Virtual Try On transition */
}

.sizefit-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: transform;
}

/* Navigation Pills */
.sizefit-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    z-index: 100;
    transition: opacity 0.4s ease;
}

.sizefit-nav-pill {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.sizefit-nav-pill.active {
    background-color: rgba(255, 255, 255, 0.25);
}

.sizefit-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Content Grid */
.sizefit-content {
    flex: 1;
    position: relative;
    display: flex;
    padding: 0 80px;
    align-items: center;
}

/* Left Side - Text Container */
.sizefit-text-container {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
}

.sizefit-text-block {
    position: absolute;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.6s ease;
    pointer-events: none;
}

.sizefit-text-block.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sizefit-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.sizefit-headline {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.sizefit-headline .highlight {
    color: #fa4c20;
}

/* Right Side - Visual Container */
.sizefit-visual-container {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
}

/* Stacking Boxes */
.sizefit-box {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    opacity: 0;
    transform: translateX(100%) translateY(50px) scale(1);
    transform-origin: bottom right;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.sizefit-box.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

.box-percentage {
    font-size: 8rem;
    font-weight: 900;
    color: #000000;
    line-height: 1;
    transition: opacity 0.3s ease;
}

/* Box sizes - smallest in front (highest z-index), largest in back */
.box-30 {
    width: 490px;
    height: 361px;
    background-color: #f4f4f4;
    z-index: 30;
    bottom: 0;
}

.box-30 .box-percentage {
    font-size: 9rem;
}

.box-52 {
    width: 669px;
    height: 541px;
    background-color: #e5e5e5;
    z-index: 20;
    bottom: 0;
}

.box-52 .box-percentage {
    font-size: 10rem;
}

.box-70 {
    width: 876px;
    height: 748px;
    background-color: #d6d6d6;
    z-index: 10;
    bottom: 0;
}

.box-70 .box-percentage {
    font-size: 12rem;
}

/* Scroll Track - invisible element that creates scroll height */
.sizefit-scroll-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Responsive adjustment for the new section */
@media (max-width: 1200px) {
    .sizefit-headline {
        font-size: 2.8rem;
    }
    
    .sizefit-content {
        padding: 0 40px;
    }
    
    .box-30 {
        width: 361px;
        height: 258px;
    }
    
    .box-52 {
        width: 490px;
        height: 387px;
    }
    
    .box-70 {
        width: 644px;
        height: 541px;
    }
    
    .box-30 .box-percentage { font-size: 7rem; }
    .box-52 .box-percentage { font-size: 8rem; }
    .box-70 .box-percentage { font-size: 9rem; }
}

@media (max-width: 900px) {
    .sizefit-content {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .sizefit-text-container {
        width: 100%;
        justify-content: center;
        text-align: center;
        z-index: 50;
    }
    
    .sizefit-headline {
        font-size: 2rem;
    }
    
    .sizefit-visual-container {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 50vh;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .sizefit-box {
        left: 0;
        right: 0;
        transform-origin: bottom center;
        padding-top: 0;
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 20px;
    }
    
    .box-30 {
        width: 100%;
        height: 30%;
        position: absolute;
        padding-top: 8px;
    }
    
    .box-52 {
        width: 100%;
        height: 50%;
        position: absolute;
        padding-top: 10px;
    }
    
    .box-70 {
        width: 100%;
        height: 70%;
        position: absolute;
        padding-top: 14px;
    }
    
    .box-30 .box-percentage { font-size: 4rem; }
    .box-52 .box-percentage { font-size: 5rem; }
    .box-70 .box-percentage { font-size: 6rem; }
}

/* AI SizeFit Overlay - appears inside expanded boxes */
.vto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    overflow: hidden;
    background-color: #f4f4f4; /* White background */
    will-change: opacity;
}

.vto-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Phase 1: Molten Title - starts blurry, comes into focus, then moves left */
.solution-intro {
    color: #0d151e;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.1s ease-out;
}

.solution-intro.moved-left {
    transform: translateX(-25%);
}

.solution-intro.hidden {
    display: none;
}

/* Molten Title - dark text on white bg */
.molten-title {
    font-size: 10rem;
    font-weight: 900;
    color: #0d151e;
    letter-spacing: -0.04em;
    text-align: center;
    filter: blur(20px); /* Starts blurry/molten */
    opacity: 0.6;
    transition: filter 0.1s ease-out, opacity 0.1s ease-out;
}

/* Phase 2: Right Side Content (title animates from center) */
.ai-sizefit-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 60px 80px 60px 52%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.ai-sizefit-content.visible {
    opacity: 1 !important;
    transform: translateY(0);
    pointer-events: auto;
}

/* Right Side - Description + Bullets */
.ai-sizefit-right {
    flex: 0 0 80%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.flashcard {
    background: #0d151e !important;
    background-color: #0d151e !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 64px 36px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-width: 416px;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    opacity: 1 !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.flashcard:hover {
    transform: rotate(0deg);
}

.flashcard-description {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f4f4f4;
    line-height: 1.5;
    margin-bottom: 36px;
}

.flashcard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.flashcard-list li {
    font-size: 1.15rem;
    font-weight: 500;
    color: #f4f4f4;
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
}

.flashcard-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #f4f4f4;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Virtual Try On Section */
.vto-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 101;
    background-color: #0d151e;
}

.vto-content.visible {
    opacity: 1 !important;
    pointer-events: auto;
}

.vto-left {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    margin-top: -60px;
}

.vto-left-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
}

.vto-title {
    font-size: 7rem;
    font-weight: 900;
    color: #f4f4f4;
    letter-spacing: -0.04em;
    text-align: left;
    white-space: nowrap;
    margin: 0;
}

.vto-description {
    font-size: 1.3rem;
    font-weight: 400;
    color: #f4f4f4;
    line-height: 1.5;
}

.vto-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vto-bullets li {
    font-size: 1.1rem;
    font-weight: 500;
    color: #f4f4f4;
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
}

.vto-bullets li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #f4f4f4;
    font-size: 1.3rem;
    font-weight: 700;
}

.vto-right {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 80px;
}

.flashcard-vto {
    background: #f4f4f4 !important;
    background-color: #f4f4f4 !important;
    border: 1px solid rgba(13, 21, 30, 0.15);
    transform: rotate(2deg) !important;
    position: relative;
    z-index: 2;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vto-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* AI SizeFit Overlay Responsive */
@media (max-width: 1200px) {
    .vto-overlay {
        padding: 40px;
    }
    
    .molten-title {
        font-size: 7rem;
    }
    
    .ai-sizefit-content {
        padding: 40px 40px 40px 50%;
    }
    
    .flashcard-description {
        font-size: 1.15rem;
    }
    
    .flashcard-list li {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .vto-overlay {
        padding: 20px 20px;
    }
    
    .molten-title {
        font-size: 4rem;
    }
    
    .solution-intro.moved-left {
        transform: translateY(-35%);
        justify-content: center;
        padding-top: 0;
        align-items: center;
    }

    .molten-title {
        text-align: center;
        width: 100%;
    }
    
    .ai-sizefit-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 14vh 24px 0;
        text-align: center;
        z-index: 15;
    }
    
    .ai-sizefit-right {
        flex: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .flashcard {
        max-width: 380px;
        transform: rotate(0deg);
    }
    
    .flashcard-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .flashcard-list li {
        font-size: 0.95rem;
    }

    /* Virtual Try On */
    .vto-content {
        flex-direction: column;
        padding: 0 24px;
        gap: 0;
        align-items: center;
        justify-content: center;
    }

    .vto-left {
        flex: none;
        width: 100%;
        margin-top: 0;
        align-items: center;
        text-align: center;
    }

    .vto-left-content {
        align-items: center;
        text-align: center;
    }

    .vto-title {
        font-size: 3.5rem;
        text-align: center;
        white-space: normal;
    }

    .vto-right {
        flex: none;
        width: 100%;
        margin-right: 0;
        justify-content: center;
        margin-top: 30px;
    }

    .flashcard-vto {
        max-width: 280px;
    }
}

/* Dashboard Section */
.dashboard-section {
    position: relative;
    min-height: 350vh;
    background-color: var(--bg-color);
}

.dashboard-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dashboard-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-title {
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dashboard-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-images {
    position: relative;
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-img {
    position: absolute;
    width: 100px;
    height: auto;
    opacity: 0;
    transform: scale(0.1) translateZ(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.dashboard-img.visible {
    opacity: 1;
}

/* Main dashboard image - appears last */
.dashboard-img-main {
    position: absolute;
    width: 80%;
    max-width: 1200px;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
}

.dashboard-img-main.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Dashboard Content - Description and Features */
.dashboard-content {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
    z-index: 15;
    padding-bottom: 40px;
}

.dashboard-content.visible {
    opacity: 1;
}

.dashboard-description {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.dashboard-features li {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    position: relative;
    padding-left: 28px;
}

.dashboard-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Individual positioning for each dashboard image */
#dash-img-1 {
    left: 10%;
    top: 20%;
    z-index: 1;
}

#dash-img-2 {
    right: 15%;
    top: 30%;
    z-index: 2;
}

#dash-img-3 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    z-index: 3;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-title {
        font-size: 4rem;
    }
}

@media (max-width: 900px) {
    .dashboard-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }
    
    .dashboard-images {
        height: 60%;
    }
}

/* Contact Form Section */
.contact-section {
    position: relative;
    min-height: 100vh;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.contact-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.contact-title {
    font-size: 4rem;
    font-weight: 900;
    color: #0d151e;
    letter-spacing: -0.04em;
    margin-bottom: 60px;
}

/* Responsive Contact Form */
@media (max-width: 1200px) {
    .contact-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
}

/* Footer Section */
.footer-section {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 80px 60px 40px;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 60px;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo svg {
    width: 32px;
    height: 32px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-links-group {
    display: flex;
    gap: 80px;
}

.footer-link-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-link-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.footer-link-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-link-column a:hover {
    color: #ffffff;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-badge {
    max-width: 400px;
    flex-shrink: 0;
}

.iebt-badge {
    width: 100%;
    height: auto;
    border-radius: 6px;
    opacity: 0.9;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-section {
        padding: 60px 40px 30px;
    }
    
    .footer-links-group {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .footer-section {
        padding: 50px 30px 30px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-left {
        max-width: 100%;
    }
    
    .footer-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer-links-group {
        gap: 60px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .footer-badge {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-section {
        padding: 40px 20px 25px;
    }
    
    .footer-links-group {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-badge {
        max-width: 300px;
    }
}

/* ===== HAMBURGER MENU BUTTON ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(128, 128, 128, 0.55);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== LANGUAGE TOGGLE BUTTON ===== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 10px;
    background: rgba(128, 128, 128, 0.55);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    vertical-align: middle;
}

.lang-toggle:hover {
    background: rgba(128, 128, 128, 0.75);
    transform: scale(1.08);
}

.lang-toggle:active {
    transform: scale(0.95);
}

/* ===== MOBILE-FIRST RESPONSIVE: 768px ===== */
@media (max-width: 768px) {
    /* Body & Frame */
    body {
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
    }

    .scroll-container {
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        border-radius: 12px;
    }

    /* Logo */
    .fixed-logo-container {
        width: 140px;
        height: 56px;
        top: 3px;
        left: 3px;
        border-radius: 0;
        border-bottom-right-radius: 10px;
    }

    /* Corner SVGs positioned relative to logo:
       - Right SVG: sits right at the logo's right edge (left = logo left + logo width - small overlap)
       - Bottom SVG: sits just below the logo's bottom edge (top = logo top + logo height)
    */
    .corner-svg {
        /* logo left (3px) + logo width (140px) - 1px overlap = 142px */
        left: 142px;
        /* aligned with the top of the scroll-container frame = 8px */
        top: 8px;
        width: 16px;
        height: 14px;
    }

    .corner-svg-bottom {
        /* logo top (3px) + logo height (56px) + 1px = 60px */
        top: 59px;
        /* aligned with the left of the scroll-container frame = 8px */
        left: 7px;
        width: 16px;
        height: 14px;
    }

    /* Navigation */
    .hamburger {
        display: flex;
    }

    .fixed-nav {
        top: 12px;
        left: auto;
        right: 16px;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 8px;
    }

    .lang-toggle {
        margin-left: 0;
        width: 36px;
        height: 36px;
        font-size: 0.7rem;
    }

    .fixed-nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        background: rgba(3, 8, 18, 0.97);
        backdrop-filter: blur(20px);
        border-radius: 0;
        padding: 100px 30px 40px;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .fixed-nav ul.open {
        right: 0;
    }

    .fixed-nav ul li {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav a {
        font-size: 1.4rem;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 80px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .hero-content {
        padding-top: 10px;
    }

    .headline-wrapper {
        margin-left: 0;
        margin-bottom: 30px;
        align-items: center;
    }

    .pill {
        padding: 10px 28px;
    }

    .pill h1 {
        font-size: 2.2rem;
        line-height: 1.6;
    }

    .pill-top {
        transform: rotate(-4deg);
        margin-bottom: 12px;
    }

    .pill-bottom {
        transform: rotate(3deg);
        margin-left: 30px;
        padding: 10px 50px;
    }

    .hero-description-wrapper {
        margin-top: 0;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        font-size: 1.1rem;
        text-align: center;
        max-width: 90%;
    }

    .hero-cta-wrapper {
        margin-top: 50px;
    }

    .hero-image {
        flex: none;
        margin: 20px auto 0;
        width: 65%;
        max-width: 280px;
    }

    .tilt-inner {
        max-width: 100%;
    }

    /* SizeFit Section */
    .sizefit-section {
        min-height: 500vh;
    }

    .sizefit-nav {
        padding: 12px 10px;
        gap: 8px;
    }

    .sizefit-nav-pill {
        font-size: 0.75rem;
        padding: 7px 14px;
    }

    .sizefit-content {
        flex-direction: column;
        padding: 0 20px;
        align-items: center;
    }

    .sizefit-text-container {
        width: 100%;
        text-align: center;
        z-index: 50;
        height: 40vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sizefit-text-block {
        width: 100%;
        padding: 0 10px;
    }

    .sizefit-headline {
        font-size: 2rem;
    }

    .sizefit-label {
        font-size: 0.8rem;
    }

    /* Boxes: full-width stacked from bottom */
    .sizefit-visual-container {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 55vh;
    }

    .sizefit-box {
        left: 0;
        right: 0;
        bottom: 0;
        transform-origin: bottom center;
        padding-top: 0;
        align-items: flex-start;
        justify-content: flex-start;
        padding-left: 20px;
    }

    .sizefit-box.active {
        transform: translateX(0) translateY(0) scale(1);
    }

    .box-70 {
        width: 100%;
        height: 70%;
        position: absolute;
        padding-top: 10px;
    }

    .box-52 {
        width: 100%;
        height: 48%;
        position: absolute;
        padding-top: 8px;
    }

    .box-30 {
        width: 100%;
        height: 28%;
        position: absolute;
        padding-top: 8px;
    }

    .box-30 .box-percentage { font-size: 3rem; }
    .box-52 .box-percentage { font-size: 4rem; }
    .box-70 .box-percentage { font-size: 5rem; }

    /* AI SizeFit Overlay */
    .vto-overlay {
        padding: 20px 16px;
    }

    .molten-title {
        font-size: 3.2rem;
    }

    .solution-intro {
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }

    .solution-intro.moved-left {
        transform: translateY(-35%);
        justify-content: center;
        padding-top: 0;
        align-items: center;
    }

    .molten-title {
        text-align: center;
        width: 100%;
    }

    .ai-sizefit-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15vh 20px 0;
        text-align: center;
        z-index: 15;
    }

    .ai-sizefit-right {
        flex: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .flashcard {
        max-width: 340px;
        transform: rotate(0deg);
        padding: 30px 24px;
    }

    .flashcard-description {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .flashcard-list li {
        font-size: 0.95rem;
    }

    /* Virtual Try On */
    .vto-content {
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
        align-items: center;
        justify-content: center;
    }

    .vto-left {
        flex: none;
        width: 100%;
        margin-top: 0;
        text-align: center;
        align-items: center;
    }

    .vto-left-content {
        align-items: center;
        text-align: center;
    }

    .vto-title {
        font-size: 2.8rem;
        white-space: normal;
        text-align: center;
    }

    .vto-description {
        font-size: 1rem;
        text-align: center;
    }

    .vto-bullets {
        align-items: flex-start;
        display: inline-flex;
    }

    .vto-bullets li {
        font-size: 0.95rem;
    }

    .vto-right {
        flex: none;
        width: 100%;
        margin-right: 0;
        justify-content: center;
        margin-top: 30px;
    }

    .flashcard-vto {
        max-width: 260px;
    }

    /* Dashboard Section */
    .dashboard-section {
        min-height: 100vh;
    }

    .dashboard-container {
        justify-content: flex-start;
        padding-top: 30px;
    }

    .dashboard-title {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .dashboard-images {
        height: 45%;
    }

    /* Hide the small floating dashboard images on mobile */
    .dashboard-img {
        display: none !important;
    }

    .dashboard-img-main {
        width: 95%;
    }

    .dashboard-description {
        font-size: 1.05rem;
    }

    .dashboard-content {
        width: 95%;
        padding-bottom: 16px;
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 10px;
    }

    /* Contact Section */
    .contact-section {
        padding: 50px 16px;
    }

    .contact-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    /* Footer */
    .footer-section {
        padding: 40px 20px 25px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left {
        max-width: 100%;
    }

    .footer-right {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-links-group {
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-badge {
        max-width: 260px;
    }
}

/* ===== EXTRA SMALL MOBILE: 480px ===== */
@media (max-width: 480px) {
    .scroll-container {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        border-radius: 10px;
    }

    .fixed-logo-container {
        width: 120px;
        height: 48px;
        top: 2px;
        left: 2px;
        border-radius: 0;
        border-bottom-right-radius: 10px;
    }

    /* Corner SVGs: logo is 120×48 at top:2, left:2 */
    .corner-svg {
        /* logo left (2px) + logo width (120px) = 122px */
        left: 121px;
        top: 5px;
        width: 14px;
        height: 12px;
    }

    .corner-svg-bottom {
        /* logo top (2px) + logo height (48px) + 1px = 51px */
        top: 50px;
        left: 4px;
        width: 14px;
        height: 12px;
    }

    .pill h1 {
        font-size: 1.65rem;
    }

    .pill {
        padding: 8px 22px;
    }

    .pill-bottom {
        margin-left: 20px;
        padding: 8px 40px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-image {
        width: 60%;
        max-width: 240px;
    }

    .sizefit-headline {
        font-size: 1.5rem;
    }

    .molten-title {
        font-size: 2.5rem;
    }

    .vto-title {
        font-size: 2.2rem;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .box-70 {
        width: 100%;
        height: 68%;
    }

    .box-52 {
        width: 100%;
        height: 45%;
    }

    .box-30 {
        width: 100%;
        height: 25%;
    }

    .box-30 .box-percentage { font-size: 2.5rem; }
    .box-52 .box-percentage { font-size: 3.2rem; }
    .box-70 .box-percentage { font-size: 4rem; }

    .footer-links-group {
        flex-direction: column;
        gap: 24px;
    }
}

/* ===== MOBILE OVERLAY BACKDROP ===== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}
