/* Light Theme Framer Slider */
.fms-light-section {
    background-color: #ffffff; /* White background */
    color: #000000;
    padding: 50px 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.fms-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.fms-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 60px;
    color: #000;
}

/* Find this class in your CSS and REMOVE 'scroll-behavior: smooth' */
.fms-viewport {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* padding: 20px 0 60px 0; */
}

.fms-viewport::-webkit-scrollbar { display: none; }
.fms-viewport { -ms-overflow-style: none; scrollbar-width: none; }

.fms-track {
    display: flex;
    gap: 24px;
    padding: 0 calc(50vw - 450px); /* Centers the 900px card */
}

.fms-card {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 900px;
    max-width: 85vw;
    aspect-ratio: 21 / 9;
    background: #0d0d0d; /* Keep cards dark for premium look */
    color: #fff;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.5s ease;
}

.fms-card:not(.fms-active-card) {
    transform: scale(0.92);
    opacity: 0.15; /* Noticeably smaller/faded side peek */
}

.fms-card-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fms-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.fms-accent-orange { background: #FF4F00; color: #fff; }
.fms-glass { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); }

.fms-quote {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
}

.fms-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fms-avatar-aj {
    width: 36px; height: 36px; border-radius: 50%;
    background: #22d3ee; color: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}

.fms-avatar-img {
    width: 36px; height: 36px; border-radius: 50%;
    filter: grayscale(1); border: 1px solid rgba(255,255,255,0.2);
}

.fms-user-name { font-weight: 600; font-size: 15px; }
.fms-user-role { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; font-weight: 700; margin-top: 2px; }

.fms-visual-area {
    flex: 1;
    background: #151515;
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
}

.fms-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-cover: cover; opacity: 1; }

.fms-overlay-ui {
    position: relative; z-index: 2;
    background: #000; border: 1px solid rgba(255,255,255,0.1);
    padding: 20px; border-radius: 12px; width: 70%;
}

.fms-ui-tag { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.fms-ui-btn { 
    display: inline-block; padding: 6px 14px; 
    background: #FF4F00; border-radius: 6px; 
    font-size: 11px; font-weight: 700; 
}

/* Footer Section */
.fms-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.fms-tab-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.fms-tab {
    background: none; border: none;
    font-size: 15px; font-weight: 700;
    color: #000; opacity: 0.3;
    cursor: pointer; transition: opacity 0.3s ease;
}

.fms-tab:hover { opacity: 0.6; }
.fms-tab.fms-active { opacity: 1; }

.fms-controls { display: flex; gap: 8px; margin-left: auto; }

.fms-btn-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.08);
    color: #000; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}

.fms-btn-icon:hover { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.15); }

@media (max-width: 768px) {
    .fms-card { aspect-ratio: 16/10; flex-direction: column; }
    .fms-visual-area { display: none; }
    .fms-tab-group { display: none; }
}

/* Update this specific class to target video as well */
.fms-cover-img { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* This makes video fill the space perfectly */
    opacity: 1; 
    z-index: 0;
}

/* Optional: Ensure the video doesn't capture clicks */
video.fms-cover-img {
    pointer-events: none;
}

/* 1. Make the text area smaller (e.g., 40% width) */
.fms-card-content {
    flex: 0.8; 
    /* Optional: Reduce padding slightly if it feels cramped */
    padding: 40px 32px; 
}

/* 2. Make the visual area larger (e.g., 60% width) */
.fms-visual-area {
    flex: 1.2; 
}

/* --- Section Layout --- */
/* --- Layout --- */
.sl-section {
    background: #ffffff;
    padding: 50px 0;
    font-family: 'Inter', sans-serif;
}

.sl-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header & Pagination --- */
.sl-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.sl-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a0a0a0; /* Muted Gray Label */
}

.sl-pagination {
    display: flex;
    gap: 6px;
}

.sl-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eee; /* Inactive Light Gray */
    animation: sl-dot-switch 8s step-end infinite;
}

.sl-dot:nth-child(2) {
    animation-delay: -4s;
}

/* --- Window & Track --- */
.sl-window {
    height: 70px;
    padding: 0 1em;
    overflow: hidden;
    position: relative;
    /* Adds a subtle fade to top and bottom edges during scroll */
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.sl-track {
    /* 8s Total Cycle */
    animation: sl-vertical-scroll 8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* --- Slides & Logos --- */
.sl-slide {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    animation: sl-fade-hint 4s ease-in-out infinite;
}

.sl-slide img {
    height: 32px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sl-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Progress Bar (The New Color) --- */
.sl-timer-track {
    width: 100%;
    height: 2px;
    background: #f5f5f5; /* Very light gray track */
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.sl-timer-fill {
    height: 100%;
    /* CHANGE: Switched from orange to sophisticated charcoal gray */
    background: #4a4a4a; 
    width: 0%;
    animation: sl-timer-grow 4s linear infinite;
}

/* --- Keyframes (Unchanged) --- */
@keyframes sl-vertical-scroll {
    0%, 45% { transform: translateY(0); }
    50%, 95% { transform: translateY(-70px); }
    100% { transform: translateY(-140px); }
}

@keyframes sl-timer-grow {
    0% { width: 0%; }
    85% { width: 100%; opacity: 1; }
    90% { width: 100%; opacity: 0; }
    100% { width: 0%; opacity: 0; }
}

@keyframes sl-dot-switch {
    0%, 50% { background: #4a4a4a; } /* Match the progress bar color */
    51%, 100% { background: #eee; }
}

@keyframes sl-fade-hint {
    0%, 80% { opacity: 1; }
    90% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- Pause on Hover --- */
.sl-container:hover .sl-track,
.sl-container:hover .sl-timer-fill,
.sl-container:hover .sl-dot,
.sl-container:hover .sl-slide {
    animation-play-state: paused;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .sl-slide {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    .sl-window {
        mask-image: none; -webkit-mask-image: none; height: auto;
    }
    .sl-track, .sl-timer-fill, .sl-dot, .sl-slide {
        animation: none !important; /* Disable all animations on mobile */
    }
    .sl-slide:nth-child(2), .sl-slide:nth-child(3) { display: none; }
    .sl-timer-track, .sl-pagination { display: none; } /* Hide indicators on mobile */
}

/* --- Expand Button (Bottom Right of Video) --- */
.fms-expand-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
}

.fms-visual-area:hover .fms-expand-btn {
    opacity: 1;
    transform: translateY(0);
}

.fms-expand-btn:hover {
    background: #FF4F00;
    border-color: #FF4F00;
    transform: scale(1.1);
}

/* --- Modal Styles --- */
.fms-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fms-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.fms-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.fms-modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.fms-modal.open .fms-modal-wrapper {
    transform: scale(1);
}

#fms-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fms-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fms-close-btn:hover {
    background: rgba(255, 79, 0, 0.9);
}

/* --- Mobile Optimization for Instant Identification Section --- */
@media (max-width: 768px) {
    /* 1. Reset card constraints to allow for content to show */
    .fms-card {
        aspect-ratio: auto !important; /* Remove fixed aspect ratio */
        flex-direction: column !important; /* Stack text over video */
        height: auto !important;
        max-width: 90vw !important;
        padding-bottom: 3em;
    }

    /* 2. Restore the Visual Area (Video) which was hidden */
    .fms-visual-area {
        display: flex !important; /* Force video to show */
        flex: none !important;
        width: 100% !important;
        height: 250px !important; /* Fixed height for video on mobile */
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* 3. Adjust Content/Text spacing */
    .fms-card-content {
        flex: none !important;
        padding: 30px 20px !important;
        text-align: center !important;
        align-items: center !important;
    }

    /* 4. Scale down large typography for small screens */
    .fms-quote {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    .fms-brand-icon {
        margin: 0 auto 20px auto !important;
    }

    /* 5. Center the user info footer */
    .fms-user-info {
        justify-content: center !important;
        width: 100% !important;
    }

    /* 6. Adjust the viewport/track for better centering */
    .fms-track {
        padding: 0 5vw !important; /* Give more 'peek' at next cards */
        gap: 15px !important;
    }

    /* 7. Ensure the expand button is visible and usable */
    .fms-expand-btn {
        opacity: 1 !important;
        transform: scale(0.8) !important;
        bottom: 10px !important;
        right: 10px !important;
    }

    .fms-controls { gap: 36px;
        margin: auto; }
}