 :root {
            --primary-blue: #1d1554;
            --silver: #fff;
            --cyan: #9FD8DE;
            --off-white: #FFFFF0;
            --black: #000000;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--black);
            color: var(--off-white);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .serif {
            font-family: 'Crimson Pro', serif;
        }

        /* Navigation */
        nav {
            position: absolute;
            top: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 60px;
            z-index: 1100;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 12px;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 2px;
            font-size: 14px;
            z-index: 1102;
        }

        .nav-links {
            display: flex;
            gap: 49px;
            align-items: center;
        }

        .nav-item {
            position: relative;
        }

        .nav-item a {
   color: #fff;
}

@media (max-width: 768px) {
    .nav-item a {
        color: #1d1554;
    }
}

        .nav-links a {
            color: #FFFFF0;
            text-decoration: none;
            text-transform: uppercase;
            font-size: 15px;
            font-weight: 800;
            letter-spacing: 1px;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

/* Desktop */
nav a{
    color: #fff;
}

/* Mobile */
@media (max-width: 768px){
    nav a{
        color: #1d1554;
    }
}

@media (max-width: 768px){
    .nav-item a{
        color: #1d1554;
    }
}

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--off-white);
            min-width: 200px;
            padding: 15px 0;
            border-radius: 4px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            list-style: none;
            margin-top: 10px;
        }

        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu li a {
            color: var(--primary-blue) !important;
            padding: 10px 25px;
            font-size: 10px;
            display: block;
            white-space: nowrap;
        }

        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 6px;
            cursor: pointer;
            z-index: 1102;
            padding: 10px;
        }

        .menu-toggle span {
            display: block;
            width: 25px;
            height: 2px;
            background-color:  #1d1554;
            transition: all 0.3s ease;
        }

        /* Base Nav State (Desktop) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%; /* Initial large padding */
    transition: all 0.4s ease-in-out;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Nav Item Base Color */
.nav-item a {
    /* color: var(--primary-blue);  */
    text-decoration: none;
    transition: color 0.3s ease;
}

/* SCROLLED STATE */
nav.scrolled {
    padding: 1px 2%; /* Reduced padding on scroll */
    background: #ffffff; /* Solid white background */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

nav.scrolled .nav-item a {
    color: #1d1554; /* Blue-Navy color on scroll */
}

/* Ensure the mobile menu burger also changes color on scroll if needed */
nav.scrolled #menu-toggle span {
    background: #1d1554;
}

@media (max-width: 1024px) {
    /* 1. Ensure the main nav links container allows vertical growth */
    .nav-links {
        display: flex;
        flex-direction: column;
        overflow-y: auto; /* Allows scrolling if menu is long */
    }

    /* 2. Hide dropdowns by default on mobile */
    .nav-item.has-dropdown .dropdown-menu {
        display: none;
        position: static; /* This is the key: it stays in the document flow */
        width: 100%;
        box-shadow: none; /* Remove desktop shadows */
        padding-left: 20px; /* Indent sub-items for visual hierarchy */
    }

    /* 3. Show dropdown when the parent has the 'active' class (from your JS) */
    .nav-item.has-dropdown.active > .dropdown-menu {
        display: block;
    }

    /* 4. Optional: Rotate the arrow icon when active */
    .nav-item.has-dropdown.active svg {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
}

@media (max-width: 1024px) {
    /* 1. Show the Hamburger Menu */
    .menu-toggle {
        display: flex;
    }

    /* 2. Transform Nav Links into a Mobile Sidebar/Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 80%; /* Adjust width as needed */
        height: 100vh;
        background-color: #fff; /* White background for mobile menu */
        padding: 100px 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1101;
    }

    /* 3. Class to be toggled via JavaScript */
    .nav-links.active {
        right: 0;
    }

    /* 4. Adjust Link Colors for Mobile Visibility */
    .nav-links a {
        color: #1d1554 !important; /* Ensure visibility on white bg */
        font-size: 18px;
        width: 100%;
    }

    /* 5. Mobile Dropdown Adjustments */
    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static; /* Put back in normal flow */
        opacity: 1;
        visibility: visible;
        display: none; /* Controlled by your JS 'active' class */
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 20px;
        margin-top: 0;
    }

    /* Show dropdown when parent is clicked/active */
    .nav-item.has-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 10px 0;
        font-size: 14px;
    }

    /* 6. Fix Logo Z-Index so it stays above the menu if needed */
    .logo-area {
        z-index: 1102;
    }
}

        /* Hero Section Refactor */
        .hero {
            min-height: 90vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding: 0 60px;
        }

        #hero-video {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            z-index: -1;
            transform: translate(-50%, -50%);
            object-fit: cover;
            filter: brightness(0.8);
        }

        .hero-content {
            max-width: 800px;
            text-align: left;
            z-index: 2;
            margin-top: 120px;
        }

        .hero-title {
                 font-size: clamp(3rem, 7vw, 4.4rem);
    margin: 10px 0;
    font-weight: 900;
    line-height: 1.1;
    color: var(--silver);
        }

        .hero-subtitle {
            text-transform: uppercase;
            letter-spacing: 4px;
            font-size: 13px;
            color: var(--silver);
            font-weight: 700;
            display: block;
            margin-bottom: 10px;
        }

        .hero-description {
           font-size: 16px;
    color: var(--silver);
    opacity: 0.9;
    margin-top: 20px;
    max-width: 750px;
        }

        /* Logo Marquee */
        .marquee-container {
            position: absolute;
           bottom: 23px;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.075);
            backdrop-filter: blur(1px);
            padding: 20px 0;
            overflow: hidden;
            border-top: 1px solid rgba(255,255,255,0.1);
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .marquee-content {
            display: flex;
            width: calc(450px * 22);
            animation: scroll 30s linear infinite;
        }

        .marquee-content span {
            width: 250px;
            text-align: center;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 14px;
            color: rgba(255,255,255,0.6);
        }

        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(calc(-250px * 7)); }
        }
        
        /* --- Mobile & Tablet Adjustments --- */

@media (max-width: 1024px) {
    .hero {
        padding: 0 20px; /* Reduce side padding */
        justify-content: center; /* Center content on tablets */
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    .hero {
        /* ... existing properties ... */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Aligns content to top to avoid bottom marquee */
        padding-top: 400px; /* Gives space from the top/header */
        min-height: 65vh; /* Increased from 50vh to give elements room to breathe */
    }

    .hero-content {
        /* ... existing properties ... */
        margin-top: 0; 
        position: relative;
        z-index: 5; /* Ensures text stays above the dark overlay */
    }

    .hero-description {
             margin: 15px auto 0;
        font-size: 15px;
        text-align: justify;
    }

    .marquee-container {
        padding: 15px 0;
        bottom: 10px; /* Bring marquee closer to bottom */
    }

    .marquee-content span {
        width: 180px; /* Narrower items for smaller screens */
        font-size: 12px;
    }

    /* Adjust animation for the new width to prevent jumping */
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-180px * 7)); }
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem; /* Fallback for very small screens */
    }

    .hero-subtitle {
        letter-spacing: 2px;
        font-size: 11px;
    }
}

/* --- Video Responsiveness --- */

@media (max-width: 1024px) {
    #hero-video {
        /* Ensure video doesn't get too thin on tablets */
        width: auto; 
        height: 100%;
    }
}

@media (max-width: 768px) {
    #hero-video {
        /* On mobile, we prioritize height to ensure no white gaps appear 
           at the top or bottom of the hero section */
        min-height: 100%;
        width: auto;
        /* Slight increase in brightness for mobile screens if needed, 
           or keep your 0.8 filter */
        filter: brightness(0.9); 
    }

    /* Adding a dark overlay to ensure text readability on mobile */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.6) 100%
        );
        z-index: 1;
    }
}

/* Fix for very tall/narrow phones */
@media (max-aspect-ratio: 9/16) {
    #hero-video {
        width: auto;
        height: 100%;
    }
}


        /* Ribbon */
        .ribbon {
            position: absolute;
            top: 0;
            right: 10%;
            width: 45px;
            height: 155px;
            background-color: var(--primary-blue);
            clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 85%, 0% 100%);
            z-index: -1;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            nav { padding: 20px 30px; }
            .hero { padding: 0 30px; }
            .hero-title {         font-size: 2.9rem;
        text-align: left;
     }
        }

        @media (max-width: 768px) {
            .menu-toggle { display: flex; }
            .nav-links {
                position: fixed;
                top: 0; right: 0; width: 100%; height: 100vh;
                background-color: #fff;
                flex-direction: column;
                color:var(--primary-blue);
                justify-content: center;
                transform: translateX(100%);
                transition: transform 0.5s ease;
                z-index: 1101;
            }
            .nav-links.open { transform: translateX(0); }
            .hero-content { text-align: center; margin: 0 auto; }
            .marquee-container { bottom: 0px; }
            /* .consultation-bar { flex-direction: column; gap: 10px; text-align: center; padding: 15px; } */
        }

           .ivory-showcase-section {
            --ivory-bg: #FFFFF0;
            --ivory-text: #1a1a1a;
            --ivory-accent: #c5a059;
            --ivory-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            --ivory-serif: 'Playfair Display', serif;
            
            position: relative;
            width: 100%;
            height: 45vh;
            background-color: var(--ivory-bg);
            color: var(--ivory-text);
            font-family: var(--ivory-font);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin: 0;
            padding: 2rem;
        }

        .ivory-showcase-section .grain-texture {
            position: absolute;
            inset: 0;
            opacity: 0.04;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        }

        .ivory-showcase-section .content-viewport {
            max-width: 1000px;
            width: 100%;
            height: 450px;
            position: relative;
        }

        .ivory-showcase-section .quote-slide {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
        }

        .ivory-showcase-section .quote-slide.is-active {
            opacity: 1;
            visibility: visible;
            transform: translateY(-50%);
        }

        .ivory-showcase-section .quote-heading {
             font-size: 3.1rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
        }

        .ivory-showcase-section .quote-heading em {
            font-family: var(--ivory-serif);
            font-style: italic;
            color: var(--ivory-accent);
        }

        .ivory-showcase-section .meta-box {
            display: flex;
            align-items: center;
            gap: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(26, 26, 26, 0.1);
            width: fit-content;
        }

        .ivory-showcase-section .timer-rail {
            width: 80px;
            height: 1px;
            background: rgba(26, 26, 26, 0.08);
            position: relative;
        }

        .ivory-showcase-section .timer-fill {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0%;
            background: var(--ivory-accent);
        }

        .ivory-showcase-section .attribution {
            display: flex;
            flex-direction: column;
        }

        .ivory-showcase-section .attr-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.25em;
            color: rgba(26, 26, 26, 0.4);
            margin-bottom: 0.2rem;
        }

        .ivory-showcase-section .attr-name {
            font-size: 0.9rem;
            font-weight: 600;
            letter-spacing: 0.05em;
        }
        
        /* --- Ivory Showcase Responsiveness --- */

@media (max-width: 1024px) {
    .ivory-showcase-section .quote-heading {
        font-size: 2.5rem; /* Slightly smaller for tablets */
    }
}

@media (max-width: 768px) {
    .ivory-showcase-section {
        height: auto; /* Remove fixed height for mobile */
        min-height: 40vh;
        padding: 1rem 1.5rem; /* Add breathing room top and bottom */
    }

    .ivory-showcase-section .content-viewport {
        height: auto; /* Allow the container to grow with the text */
        min-height: 150px;
        display: flex;
        align-items: center;
    }

    .ivory-showcase-section .quote-slide {
        position: relative; /* Switch to relative so they stack properly in the flow */
        top: 0;
        transform: translateY(20px);
        display: none; /* Hide by default */
    }

    .ivory-showcase-section .quote-slide.is-active {
        display: block; /* Show only active slide */
        transform: translateY(0); /* Reset centering transform */
    }

    .ivory-showcase-section .quote-heading {
        font-size: 2.2rem; /* Scale down the title significantly */
        margin-bottom: 2rem;
        text-align: center;
    }

    .ivory-showcase-section .meta-box {
        margin: 0 auto; /* Center the attribution box */
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ivory-showcase-section .quote-heading {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .ivory-showcase-section .timer-rail {
        width: 50px; /* Shorten the line on small phones */
    }
}

           /* Base Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-color: #FFFFF0;
            --primary-blue: #1B1553;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--primary-blue);
            -webkit-font-smoothing: antialiased;
        }

        /* Main Container */
        .hero-layout {
            position: relative;
            width: 100%;
            height: 100vh;
            display: flex;
            align-items: center;
        }

        /* Background Layer with Vertical Blending */
        .background-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            overflow: hidden;
        }

        .bg-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('../img/bg.jpg');
            background-size: cover;
            background-position: center;
            filter: grayscale(30%) blur(1px);
            opacity: 0.18;
            /* Create the top and bottom blend */
            -webkit-mask-image: linear-gradient(
                to bottom,
                transparent 0%,
                black 20%,
                black 80%,
                transparent 100%
            );
            mask-image: linear-gradient(
                to bottom,
                transparent 0%,
                black 20%,
                black 80%,
                transparent 100%
            );
        }

        /* The Fog Overlay (Radial focus for the text area) */
        .fog-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 25% 50%, transparent 0%, var(--bg-color) 85%);
            z-index: 2;
        }

        /* Content Container */
        .content-wrapper {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 80px;
            display: grid;
            grid-template-columns: 1.1fr 1fr;
            align-items: center;
            gap: 60px;
        }

        .text-content {
            max-width: 600px;
            display: flex;
            flex-direction: column;
            gap: 28px;
        }

        /* Typography */
        .eyebrow-text {
            font-size: 13px;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 4px;
            font-weight: 600;
           padding: 261px 0px 0px 0px;
        }

        .main-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(40px, 5.5vw, 78px);
            font-weight: 900;
            line-height: 1.1;
            color: var(--primary-blue);
        }

        .body-text {
            font-size: 17px;
            color: #3f3f46;
            line-height: 1.7;
            max-width: 500px;
        }

        .body-text b {
            color: var(--primary-blue);
            font-weight: 700;
        }

        /* Visual Element: Floating Slider */
        .image-slider-frame {
            position: relative;
            width: 100%;
            aspect-ratio: 4/5;
            max-height: 65vh;
            border-radius: 8px;
            overflow: hidden;
            /* box-shadow: 0 30px 80px rgba(27, 21, 83, 0.12);
            background: white; */
            padding: 10px; /* Polaroid feel */
        }

        .slider-inner {
            width: 100%;
            height: 100%;
            position: relative;
            border-radius: 4px;
            overflow: hidden;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 2s ease;
            transform: scale(1.1);
            object-fit: cover;
        }

        .slide.active {
            opacity: 1;
            transform: scale(1);
        }

.image-slider-frame .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out; /* Smooth fade effect */
    object-fit: cover;
}

.image-slider-frame .slide.active {
    opacity: 1;
}

        /* Branding Ornament */
        .brand-footer {
            margin-top: 20px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .accent-dot {
            width: 8px;
            height: 8px;
            background: var(--primary-blue);
            border-radius: 50%;
        }

        .brand-name {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #a1a1aa;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .content-wrapper {
                grid-template-columns: 1fr;
                padding: 80px 40px;
                text-align: center;
                justify-items: center;
            }
            .text-content { align-items: center; }
            .image-slider-frame { width: 70%; max-height: 50vh; margin-top: 20px; }
            .fog-overlay { background: var(--bg-color); opacity: 0.95; }
        }

        @media (max-width: 640px) {
            .image-slider-frame { width: 100%; }
            .main-title { font-size: 38px; }
            .content-wrapper { padding: 60px 20px; }
        }

         /* CSS Variables for consistent branding */
        :root {
            --crimson-dark: #1d1554;
            --crimson-accent:#c5a059;
            --brand-red: #000;
            --bg-cream: #f9f7f2;
            --card-white: #ffffff;
            --text-gray: #666666;
            --card-width: 340px;
            --card-height: 500px;
            --gap: 1.5rem;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-cream);
            color: var(--crimson-dark);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        /* Typography & Header */
        .header {
           width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem 0rem;
    z-index: 20;
    margin-bottom: 0px !important;
        }

        .heading-italic {
            font-family: 'Crimson Pro', serif;
            font-style: italic;
            color: #000;
            font-size: 2.25rem;
            margin-bottom: -0.5rem;
        }

        .heading-main {
            font-size: 4.5rem;
            font-weight: 800;
            letter-spacing: -0.04em;
            line-height: 1;
            color: #c5a059;
            text-align: left;
        }

        /* Carousel Layout */
        .carousel-wrapper {
            width: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
            flex-grow: 1;
            position: relative;
        }

        /* Continuous Scroll Animation */
        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(calc(-1 * (var(--card-width) * 7 + var(--gap) * 7))); }
        }

        .scroll-container {
            display: flex;
            width: max-content;
            animation: scroll 40s linear infinite;
             padding: 1rem 2rem 5rem 2rem;
        }

        .scroll-container:hover {
            animation-play-state: paused;
        }

        .track {
            display: flex;
            gap: var(--gap);
        }

        /* 3D Card Mechanics */
        .card-perspective {
            perspective: 1500px;
            cursor: pointer;
        }

        .card-inner {
            width: var(--card-width);
            height: var(--card-height);
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .card-perspective:hover .card-inner {
            transform: rotateY(180deg);
        }

        .card-front, .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            border-radius: 4px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.07);
            background: var(--card-white);
            border: 1px solid rgba(0,0,0,0.05);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
        }

        .card-back {
            transform: rotateY(180deg);
            background-color: var(--crimson-dark);
            color: white;
            justify-content: center;
            text-align: center;
            padding: 2.5rem;
        }

        /* Card Content Details */
        .category-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: #aaa;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .category-name {
            font-size: 0.9rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
        }

        .service-img {
            width: 100%;
            height: 240px;
            object-fit: cover;
            border-radius: 2px;
            margin-bottom: 1.5rem;
        }

        .card-title {
            font-size: 1.75rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: auto;
        }

        .detail-row {
            display: flex;
            align-items: flex-end;
            font-size: 0.7rem;
            margin-top: 1rem;
        }

        .detail-label {
            text-transform: uppercase;
            font-weight: 800;
            color: #bbb;
            margin-right: 0.5rem;
            white-space: nowrap;
        }

        .detail-value {
            flex-grow: 1;
            border-bottom: 1px dotted #ccc;
            font-weight: 600;
            padding-bottom: 2px;
        }

        /* Back Content */
        .back-title {
            font-size: 1.5rem;
            font-weight: 700;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            padding-bottom: 1rem;
            margin-bottom: 1.5rem;
        }

        .back-description {
            font-family: 'Crimson Pro', serif;
            font-style: italic;
            font-size: 1.15rem;
            line-height: 1.6;
            opacity: 0.9;
        }
        
        /* --- Carousel & Header Responsiveness --- */

@media (max-width: 1024px) {
    :root {
        --card-width: 300px;
        --card-height: 450px;
    }

    .heading-main {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --card-width: 260px;
        --card-height: 400px;
        --gap: 1rem;
    }

    .header {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .heading-italic {
        font-size: 1.75rem;
        margin-top: 215px;
    }

    .heading-main {
        font-size: 2.8rem;
        text-align: left;
    }

    .service-img {
        height: 180px; /* Smaller image for smaller cards */
    }

    .card-title {
        font-size: 1.4rem;
    }

    /* Adjust animation to account for the new smaller card width */
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-1 * (var(--card-width) * 7 + var(--gap) * 7))); }
    }
}

@media (max-width: 480px) {
    :root {
        --card-width: 230px;
        --card-height: 380px;
    }

    .heading-main {
        font-size: 2.2rem;
    }

    /* On very small screens, hover (flip) can be tricky. 
       This ensures the back padding isn't too cramped */
    .card-back {
        padding: 1.5rem;
    }

    .back-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .back-description {
        font-size: 1rem;
    }
}

/* Touch Device Optimization: 
   Prevents the sticky hover state on mobile after tapping */
@media (hover: none) {
    .card-perspective:active .card-inner {
        transform: rotateY(180deg);
    }
}

        /* Footer */
        .footer {
            padding: 3rem 0;
            text-align: center;
            border-top: 1px solid rgba(0,0,0,0.1);
        }

        .footer-text {
            color: var(--text-gray);
            font-style: italic;
            margin-bottom: 1.5rem;
            font-size: 0.95rem;
        }

        .btn {
            background-color: var(--brand-red);
            color: white;
            border: none;
            padding: 1rem 2.5rem;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .btn:hover {
            background-color: var(--crimson-accent);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(227, 24, 55, 0.3);
        }

        /* Edge Fades */
        .fade-left, .fade-right {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 10%;
            z-index: 10;
            pointer-events: none;
        }
        .fade-left { left: 0; background: linear-gradient(to right, var(--bg-cream), transparent); }
        .fade-right { right: 0; background: linear-gradient(to left, var(--bg-cream), transparent); }

          /* * ==========================================
         * TOP HERO SECTION WITH BLUR
         * ==========================================
         */

        .hero-section {
            min-height: 50vh;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            text-align: center;
            padding: 2rem;
            position: relative;
            z-index: 10;
            /* Using the same image as the showcase below */
            background-image: url('../img/bgg.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }

        /* The Blur Overlay */
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            /* Heavy blur and darkening to keep text legible */
            /* background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);  */
            z-index: -1;
        }

        .hero-content {
            max-width: 900px;
            animation: fadeIn 1.5s ease-out;
            margin-top: 110px;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* * ==========================================
         * PARALLAX SHOWCASE STYLES
         * ==========================================
         */
        
        .ivy-showcase-wrapper {
            position: relative;
            height: 700vh; 
            width: 100vw;
            background-color: #000;
        }

        .ivy-sticky-view {
            position: sticky;
            top: 0;
            height: 100vh;
            width: 100vw;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* FIXED BACKGROUND IMAGE FOR SHOWCASE */
        .ivy-fixed-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('../img/bgg.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            z-index: 0;
        }

        .ivy-overlay-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: 1;
            opacity: 0.5;
        }

        .ivy-slides-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
        }

        .ivy-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.8s ease;
        }

        .ivy-slide.active {
            opacity: 1;
            pointer-events: auto;
        }

        .ivy-center-content {
            text-align: center;
            z-index: 10;
            max-width: 900px;
            padding: 0 20px;
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .ivy-slide.active .ivy-center-content {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.2s;
        }

        .ivy-pre-title {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: clamp(1.1rem, 2vw, 1.4rem);
            color: #fff;
            margin-bottom: 12px;
            display: block;
        }

        .ivy-uni-name {
            font-size: clamp(2.5rem, 10vw, 3.4rem);
            font-weight: 800; 
            letter-spacing: -0.04em;
            line-height: 0.9;
            margin-bottom: 25px;
            display: block;
            text-transform: uppercase;
            color: #fff;
            text-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

        .ivy-description {
               font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 589px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
        }

        .ivy-btn {
            display: inline-block;
            padding: 16px 40px;
            border: 2px solid #fff;
            text-decoration: none;
            color: #fff;
            font-weight: 800;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            transition: all 0.4s ease;
            background: transparent;
        }

        .ivy-btn:hover {
            background: #fff;
            color: #000;
            transform: translateY(-3px);
        }

        /* University Detail Cards */
        .ivy-card {
            position: absolute;
            width: 260px;
            background: #fff;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
            border-radius: 8px;
            overflow: hidden;
            z-index: 5;
            opacity: 0;
            transform: translateY(60px);
            transition: opacity 0.8s ease, transform 1s cubic-bezier(0.2, 1, 0.3, 1);
        }

        .ivy-slide.active .ivy-card {
            opacity: 1;
            transform: translateY(0);
        }

        .ivy-card img {
            width: 100%;
              height: 230px;
            object-fit: cover;
            display: block;
        }

        .ivy-card-info {
            padding: 20px;
            text-align: left;
        }

        .ivy-card-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.1rem;
            margin: 0 0 4px 0;
            color: #1e1b4b;
        }

        .ivy-card-title {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #64748b;
            margin: 0;
        }

        /* Positions */
        .ivy-left-card { left: 5%; top: 15%; }
        .ivy-right-card { right: 5%; bottom: 15%; }

        /* Navigation Progress */
        .ivy-progress {
            position: absolute;
            right: 40px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .ivy-dot-wrapper {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            cursor: pointer;
        }

        .ivy-dot-label {
            color: #fff;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-right: 15px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .ivy-dot-wrapper:hover .ivy-dot-label {
            opacity: 1;
        }

        .ivy-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid transparent;
            transition: all 0.4s ease;
        }

        .ivy-dot.active {
            background: #fff;
            transform: scale(1.4);
            box-shadow: 0 0 15px rgba(255,255,255,0.5);
        }

      /* --- Fix: Straight & Polished Cards on Mobile --- */

@media (max-width: 850px) {
    /* 1. Re-enable and straighten the cards */
    .ivy-card { 
        display: block !important; 
        width: 160px; 
        border-radius: 12px; /* Smoother corners for a modern look */
        box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Adds depth */
        transform: translateY(30px); 
        /* Removed rotation here */
    }

    .ivy-card img {
        height: 110px; 
        object-fit: cover;
    }

    .ivy-card-info {
        padding: 10px;
        text-align: center;
    }

    .ivy-card-name {
        font-size: 0.85rem;
        font-weight: 600;
    }

    /* 2. Positioning: Straightened (0deg) */
    
    .ivy-left-card { 
        left: 20px; 
        top: 12%; 
        transform: translateY(30px); /* Initial state for animation */
    }

    .ivy-right-card { 
        right: 20px; 
        bottom: 15%; 
        transform: translateY(30px); /* Initial state for animation */
    }

    /* 3. Entrance Animation (Straight) */
    .ivy-slide.active .ivy-left-card,
    .ivy-slide.active .ivy-right-card {
        opacity: 1;
        transform: translateY(0); /* Clean slide up, no tilt */
        transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    }
}

@media (max-width: 480px) {
    /* 4. Fine-tuning for small phones */
    .ivy-card {
        width: 140px;
        z-index: 1; 
    }
    
    /* Slightly more inset to avoid touching screen edges */
    .ivy-left-card { top: 10%; left: 15px; }
    .ivy-right-card { bottom: 18%; right: 15px; }
    
    .ivy-description {
        position: relative;
        z-index: 10; 
        background: rgba(0,0,0,0.2); /* Optional: adds a tiny bit of legibility */
        backdrop-filter: blur(2px);
        padding: 5px;
        border-radius: 5px;
    }
}

  .portfolio-intro {
            padding: 8px 5% 32px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: end;
            gap: 40px;
        }

        .section-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(3rem, 8vw, 3.8rem);
            line-height: 0.9;
            color: #d1d1d1;
            text-transform: uppercase;
        }

        .section-description {
            max-width: 500px;
            font-size: 1rem;
            color: #555;
            line-height: 1.7;
            padding-bottom: 10px;
        }

 /* Responsive Fixes */
        @media (max-width: 900px) {
            .portfolio-intro {
                grid-template-columns: 1fr;
                padding-top: 20px;
            }
            .gallery-wrapper {
                flex-direction: column;
                height: auto;
                gap: 15px;
            }
            .gallery-card {
                height: 350px;
                flex: none;
            }
            .gallery-card:hover {
                flex: none;
            }
            .card-info {
                opacity: 1;
                transform: translateY(0);
                padding: 20px;
            }
        }

  /* 1. Ensure the container allows the flex items to breathe */
.gallery-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    height: 70vh;
    padding: 0 5% 40px;
    /* Allow the active card to push others if needed, but keep it contained */
    overflow: hidden; 
}

.gallery-card {
    position: relative;
    flex: 1; /* Default collapsed state */
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    min-width: 60px; /* Increased slightly for better tap targets */
}

/* 2. Fix the Expansion */
.gallery-card:hover {
    flex: 10; /* Increased to give more room for text */
}

/* 3. Refine the Info Overlay */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px; /* More padding for an aesthetic look */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    pointer-events: none;
    z-index: 10;
    
    /* This ensures text doesn't look squashed */
    white-space: nowrap; 
}

/* Show content only when the card has finished expanding */
.gallery-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
    /* If your project names are long, use normal wrap instead of nowrap */
    white-space: normal; 
}

/* 4. Ensure Image stays centered during the rapid scale */
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute; /* Changed to absolute to prevent layout shifts */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.gallery-card:hover img {
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 900px) {
    .portfolio-intro {
        grid-template-columns: 1fr;
        padding: 20px 5% 10px;
        text-align: center;
    }

    .section-description {
        margin: 0 auto;
    }


    /* Hide scrollbar for a cleaner aesthetic */
    .gallery-wrapper::-webkit-scrollbar {
        display: none;
    }

   

    .project-name {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

 @media (max-width: 900px) {
    .gallery-wrapper {
        display: flex;
        flex-direction: row;
        overflow-x: hidden; /* Hide scrollbar and prevent manual fighting with auto-scroll */
        white-space: nowrap;
        padding: 0;
        height: 400px;
        align-items: center;
    }

    .gallery-card {
        flex: 0 0 280px; /* Fixed width for consistent looping math */
        margin-right: 15px;
        height: 100%;
        display: inline-block;
        vertical-align: top;
    }

    .card-info {
        opacity: 1;
        transform: translateY(0);
        white-space: normal; /* Allow text to wrap inside the card */
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    }
}
         :root {
            --bg-color: #fdfcf9;
            --accent-color: #1a1a1a;
            --text-muted: #666;
            --card-bg: #ffffff;
            --primary-gold: #fff0ff;
            /* Variables for Consultation Bar */
            --off-white: #f8f9fa;
            --primary-blue: #1a2b48;
            --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-color);
            color: var(--accent-color);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .section-padding { padding: 23px 5%; }
        .container { max-width: 1000px; margin: 0 auto; }

        /* Header Style */
        .header { text-align: center; margin-bottom: 60px; }
        .header h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
        }
        .header p {
            font-size: 0.8rem;
            color: var(--primary-gold);
            letter-spacing: 3px;
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 10px;
        }

        /* FAQ Styling */
        .faq-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
        .faq-item {
            background: var(--card-bg);
            border: 1px solid rgba(0,0,0,0.05);
            border-radius: 12px;
            overflow: hidden;
            transition: var(--transition);
        }
        .faq-question {
            width: 100%;
            padding: 24px 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: none;
            border: none;
            cursor: pointer;
            text-align: left;
            outline: none;
        }
        .question-text { font-size: 1.05rem; font-weight: 600; color: #333; padding-right: 20px; }
        
        .icon-box {
            width: 24px;
            height: 24px;
            min-width: 24px;
            position: relative;
            transition: var(--transition);
        }
        .icon-box::before, .icon-box::after {
            content: '';
            position: absolute;
            background: var(--accent-color);
            transition: var(--transition);
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
        }
        .icon-box::before { width: 2px; height: 14px; }
        .icon-box::after { width: 14px; height: 2px; }

        .faq-item.active { border-color: var(--primary-gold); }
        .faq-item.active .icon-box { transform: rotate(45deg); }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
        }
        .faq-item.active .faq-answer { max-height: 1000px; }
        .answer-inner { padding: 0 32px 32px; color: var(--text-muted); font-size: 0.95rem; }

        

     /* --- Desktop Styles (Modified for better flexibility) --- */
.consultation-bar {
    width: 100%;
    background-color: var(--off-white);
    color: var(--primary-blue);
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease; /* Smooth transition for state changes */
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

/* Fixed state when scrolling */
.consultation-bar.is-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15); /* Softened shadow */
}

/* Static state for when it's tucked above the footer */
.consultation-bar.is-static {
    position: relative;
    box-shadow: none;
}

.consultation-text {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.consultation-btn {
    background-color: var(--primary-blue);
    color: var(--off-white);
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap; /* Prevents button text from wrapping */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .consultation-bar {
        padding: 15px 5%; /* Use percentage for safe-area spacing */
        flex-direction: column; /* Stack text and button */
        text-align: center;
        gap: 15px; /* Adds space between text and button when stacked */
    }

    .consultation-text {
        font-size: 13px; /* Slightly smaller for mobile */
        max-width: 100%;
    }

    .consultation-btn {
        width: 100%; /* Full width button on mobile for better UX */
        padding: 15px 20px;
        font-size: 12px;
    }
}

/* Extra small screens / iPhones */
@media (max-width: 480px) {
    .consultation-bar {
        padding: 12px 20px;
    }
    
    .consultation-text {
        font-size: 12px;
    }
}
        /* Footer */
        footer { 
            background:  var(--off-white); 
            color: #777; 
            padding: 80px 5% 40px; 
            position: relative;
            z-index: 10;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .footer-col h4 {     color: #1b1553; margin-bottom: 20px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px;     font-weight: 900; }
        .footer-col ul { list-style: none; }
        .footer-col ul li { margin-bottom: 10px; font-size: 0.9rem; }

        @media (max-width: 768px) {
            .consultation-bar { padding: 20px; flex-direction: column; gap: 15px; text-align: center; }
            .video-side, .form-side { min-width: 100%; }
            .video-text h2 { font-size: 2rem; }
        }