/* =========================================
   1. IMPORT LUXURY FONTS & TYPOGRAPHY
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400;1,600&family=Manrope:wght@200;300;400;600&display=swap');

body {
    font-family: 'Manrope', sans-serif;
    background-color: #020202;
    /* Deepest Black */
    color: #ffffff;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fancy Headings */
h1,
h2,
.lead-title,
.form-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: -0.02em;
}

em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
}

/* Fix: Lift text above the noise layer */
main,
h1,
h2,
p,
a,
button {
    position: relative;
    z-index: 10;
}


/* =========================================
   2. ATMOSPHERE (Noise & Orbs)
   ========================================= */
/* Subtle Noise Texture */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    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");
}

/* Ambient Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.25;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: #4f46e5;
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #FF6B6B;
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}


/* =========================================
   3. CINEMATIC HERO (Text Only Version)
   ========================================= */
.cinematic-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    z-index: 10;
}

/* Content Container & Animation */
.hero-text-content {
    position: relative;
    z-index: 20;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

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


/* --- HERO TYPOGRAPHY (Fixed Spacing) --- */
.hero-label-text {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 1.0rem;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    margin-top: 20px;
}

.hero-main-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 200;

    /* Kept Massive Size */
    font-size: 10rem;

    /* INCREASED line-height to stop collision */
    line-height: 0.96;

    color: #fff;
    margin-bottom: 40px;
    letter-spacing: -6px;
}

.italic-accent {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    padding-bottom: 25px;
    font-size: 13rem;

    /* REMOVED negative margin (was -20px) */
    margin-top: 10px;

    background: linear-gradient(to bottom right, #ffffff 20%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-family: 'Manrope', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 60px auto;
    line-height: 1.6;

    /* Added margin top to push it away from the big title */
    margin-top: 40px;
}


/* --- HERO BUTTON --- */
.luxury-btn {
    display: inline-block;
    padding: 25px 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 4px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.luxury-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
}


/* =========================================
   4. LUXURY NAVBAR
   ========================================= */
:root {
    --nav-glass: rgba(255, 255, 255, 0.03);
    --nav-border: rgba(255, 255, 255, 0.08);
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 5%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
}

.nav-logo {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    position: relative;
    display: flex;
    list-style: none;
    gap: 50px;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
}

#nav-marker {
    position: absolute;
    bottom: -15px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    /* Crucial: allows clicking links "through" the dot */
    transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s ease;
    z-index: 101;
}

#nav-marker.visible {
    opacity: 1;
}


/* =========================================
   5. CONTACT / FORM SECTION
   ========================================= */
.contact-section {
    position: relative;
    z-index: 10;
    padding: 80px 5%;
    display: flex;
    justify-content: center;
}

.glass-form-container {
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px;
    border-radius: 4px;
}

.form-header {
    margin-bottom: 50px;
    text-align: center;
}

.sub-label {
    color: #ff4d4d;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

/* Inputs */
.luxury-form {
    font-family: 'Manrope', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.luxury-form input,
.luxury-form select,
.luxury-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 0;
    width: 100%;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    outline: none;
    border-radius: 0;
    transition: border-color 0.4s ease;
}

.luxury-form input:focus,
.luxury-form select:focus,
.luxury-form textarea:focus {
    border-bottom: 1px solid #fff;
}

.luxury-form textarea {
    resize: none;
    height: 100px;
    margin-top: 20px;
}

::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* Grid for Dropdowns */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.select-group {
    position: relative;
}

option {
    background-color: #050505;
    color: #fff;
    padding: 10px;
}

/* Submit Button */
.submit-btn {
    margin-top: 20px;
    background: #fff;
    color: #000;
    border: none;
    padding: 20px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: #f0f0f0;
}

/* =========================================
   CUSTOM HORIZONTAL CHECKBOXES (FIXED)
   ========================================= */
.checkbox-wrapper {
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.checkbox-label {
    display: block;
    margin-bottom: 15px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Forces items to stay horizontal on ALL screens */
.checkbox-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /* Prevents jumping to next line */
    gap: 30px;
    align-items: center;
}

/* Individual Checkbox Items */
.check-item {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
    padding-left: 28px;
    /* Space for the custom box */
    user-select: none;
}

/* 1. HIDE the default browser checkbox entirely */
.check-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 2. Create the LUXURY box */
.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hover effect */
.check-item:hover input~.checkmark {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Checked state */
.check-item input:checked~.checkmark {
    background-color: #fff;
    border-color: #fff;
}

/* Inner Check Icon */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-item input:checked~.checkmark:after {
    display: block;
}

/* =========================================
   SPLIT PHONE INPUTS
   ========================================= */
.phone-split-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.luxury-form .code-box {
    width: 80px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.luxury-form .number-box {
    flex-grow: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.luxury-form .code-box:focus,
.luxury-form .number-box:focus {
    border-bottom-color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

/* =========================================
   MOBILE RESPONSIVENESS (PERFECTED)
   ========================================= */
@media screen and (max-width: 768px) {
    .glass-form-container {
        padding: 40px 30px;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Stack dropdowns */

    /* Keeping checkboxes horizontal but smaller for mobile */
    .checkbox-row {
        gap: 15px;
        overflow-x: auto;
        /* Adds swiping if screen is tiny */
        padding-bottom: 5px;
    }

    .checkmark {
        height: 15px;
        width: 15px;
    }

    .check-item {
        font-size: 0.8rem;
        padding-left: 22px;
    }

    .check-item .checkmark:after {
        left: 5px;
        top: 1px;
        width: 4px;
        height: 8px;
    }
}

/* =========================================
   6. FOOTER
   ========================================= */
.luxury-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 80px 10% 40px 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to top, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0) 100%);
    margin-top: 150px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

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

.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 15px;
}

.footer-list a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-list a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}


/* =========================================
   7. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {

    /* Navbar Bottom */
    .glass-nav {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: 80px;
        border-radius: 30px;
        justify-content: center;
        border: 1px solid var(--nav-border);
        background: rgba(10, 10, 10, 0.85);
    }

    .nav-logo {
        display: none;
    }

    .nav-links {
        gap: 20px;
        width: 100%;
        justify-content: space-evenly;
    }

    .nav-links li a {
        font-size: 0.7rem;
    }

    /* Hero Typography Mobile Scale */
    .hero-main-title {
        font-size: 5rem;
        letter-spacing: -2px;
    }

    .italic-accent {
        font-size: 6rem;
    }

    .hero-label-text {
        font-size: 0.7rem;
        letter-spacing: 4px;
    }

    /* Footer & Form */
    .luxury-footer {
        padding: 60px 5% 120px 5%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .glass-form-container {
        padding: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }


}


/* =========================================
   MARQUEE (INFINITY STRIP)
   ========================================= */
.brand-marquee {
    position: relative;
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    z-index: 10;
    overflow: hidden;
}

.marquee-label {
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 40px;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    position: relative;
    /* Mask for fade effect */
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
}

.marquee-track {
    display: flex;
    /* CHANGE: Ensure track width is tightly fitted to content */
    width: max-content;
    --gap: 20px;
    gap: var(--gap);
    /* CHANGE: -50% works perfectly because we have exactly 2 groups */
    animation: scrollLoop 20s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    /* CHANGE: Removed 'space-around'. This caused the jump. 
       Now spacing is handled strictly by item padding. */
    flex-shrink: 0;
}

.brand-item {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    /* CHANGE: Fixed padding ensures consistent width calculation */
    padding: 0 40px;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.brand-item:hover {
    color: #fff;
    transform: scale(1.05);
}

.brand-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    /* Optional: Ensure separator has no extra unpredictable spacing */
    display: flex;
    align-items: center;
}

@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - var(--gap)/2));
    }
}

@media (max-width: 768px) {
    .brand-item {
        font-size: 1.8rem;
        padding: 0 20px;
        /* Consistent smaller padding for mobile */
    }

    .marquee-track {
        animation-duration: 25s;
    }
}

/* =========================================
   ABOUT: ETHEREAL GLASS & MOVABLE STACK
   ========================================= */
.about-ethereal {
    position: relative;
    padding: 120px 5%;
    z-index: 10;
    /* Allow overflow so images can float outside bounds if needed */
    overflow: visible;
}

/* The "Opacity Less" Container */
.ethereal-glass-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;

    /* Ultra-subtle glass effect */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    /* Blurs the orbs behind it */
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very faint border */
    padding: 80px;
    border-radius: 4px;
}

/* Typography */
.ethereal-tag {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 30px;
}

.ethereal-heading {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 300;
}

.italic-soft {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.ethereal-desc {
    font-family: 'Manrope', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 90%;
    margin-bottom: 50px;
    font-weight: 300;
}

/* Minimal Stats */
.ethereal-stats-row {
    display: flex;
    gap: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.e-stat strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
}

.e-stat span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
}

/* --- THE MOVABLE PARALLAX STACK --- */
.movable-visual-container {
    position: relative;
    height: 500px;
    width: 100%;
    /* Perspective gives it a 3D tilting feel */
    perspective: 1000px;
}

.visual-layer {
    position: absolute;
    transition: transform 0.1s linear;
    /* Smooth movement */
    will-change: transform;
}

/* Layer 1: The Frame (Wireframe style) */
.frame-layer {
    top: 10%;
    right: 10%;
    width: 60%;
    height: 70%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
}

/* Layer 2: Main Image (The anchor) */
.image-main {
    top: 0;
    right: 20%;
    width: 70%;
    height: 90%;
    z-index: 3;
    overflow: hidden;
}

.image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    /* Noir look */
    opacity: 0.9;
}

/* Layer 3: Accent Image (The overlap) */
.image-accent {
    bottom: -10%;
    right: 0;
    width: 40%;
    height: 50%;
    z-index: 2;
    overflow: hidden;
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
    /* Deep shadow for depth */
}

.image-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) grayscale(80%);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .ethereal-glass-panel {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .movable-visual-container {
        height: 400px;
        margin-top: 40px;
    }

    .image-main {
        width: 80%;
        right: 10%;
    }

    .image-accent {
        width: 50%;
        right: 0;
        bottom: 0;
    }
}

/* =========================================
   SERVICES STREAM SECTION (UPDATED)
   ========================================= */
.services-stream-section {
    position: relative;
    padding: 120px 0 100px 0;
    overflow: visible;
    /* Allows shadows to show without clipping */
    z-index: 10;
}

/* Typography */
.stream-header {
    padding: 0 5%;
    margin-bottom: 50px;
}

.service-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ff4d4d;
    display: block;
    margin-bottom: 15px;
}

.service-title {
    font-family: 'Manrope', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    color: #fff;
    margin: 0;
}

.serif-italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

/* --- THE TRACK --- */
.services-track-container {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Reduced gap for tighter layout */

    /* ENABLE SCROLLING */
    overflow-x: auto;

    /* CENTERING MATH: 
       Half Screen (50vw) - Half Card (150px) = Perfect Center 
    */
    padding-inline: calc(50vw - 150px);
    padding-top: 60px;
    padding-bottom: 60px;
    /* Vertical space for hover effects */

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.services-track-container::-webkit-scrollbar {
    display: none;
}

.services-track-container:active {
    cursor: grabbing;
}


/* --- THE SMALLER CARD --- */
.glass-service-card {
    /* SIZE REDUCTION HERE */
    flex: 0 0 300px;
    /* Fixed width */
    height: 400px;
    /* Fixed height */

    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);

    padding: 30px;
    /* Smaller internal padding */
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    scroll-snap-align: center;
    /* Locks card to center */

    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.5;
    transform: scale(0.95);
}

/* Active/Center State */
.glass-service-card.active-center {
    opacity: 1;
    transform: scale(1.05);
    /* Slight pop */
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* Hover State */
.glass-service-card:not(.active-center):hover {
    opacity: 0.8;
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

/* Content Adjustments for Smaller Size */
.gs-icon {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.3);
}

.gs-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.gs-desc {
    font-size: 0.85rem;
    line-height: 1.5;
}

.gs-list {
    padding-top: 15px;
    gap: 15px;
}

.gs-list li {
    font-size: 0.7rem;
}


/* --- NAV BUTTONS --- */
.stream-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* Smaller buttons */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

.nav-divider {
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}


/* Mobile Update */
@media (max-width: 768px) {
    .services-track-container {
        /* Mobile Padding: 50vw - Half Card (40vw) = 10vw */
        padding-inline: 10vw;
        gap: 15px;
    }

    .glass-service-card {
        flex: 0 0 80vw;
        /* Card is 80% of screen width */
        height: 380px;
    }
}

/* =========================================
   SERVICES STREAM: UNIFIED WIDTH
   ========================================= */

/* 1. THE TRACK (Global Settings) */
.services-track-container {
    display: flex;
    align-items: center;

    /* Global Gap */
    gap: 30px;

    /* Global Centering Math */
    /* Half Screen (50vw) - Half Card (150px) = Centered Padding */
    padding-inline: calc(50vw - 150px);

    overflow-x: auto;
    padding-top: 60px;
    padding-bottom: 60px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

/* 2. THE CARD (Fixed Size Everywhere) */
.glass-service-card {
    /* Fixed 300px width on ALL devices */
    flex: 0 0 300px;
    height: 400px;

    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.5;
    transform: scale(0.95);
}

.glass-service-card.active-center {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 2;
}


/* =========================================
   MOBILE ADJUSTMENTS (Hide Images)
   ========================================= */
@media (max-width: 768px) {

    /* 3. HIDE IMAGES ON MOBILE */
    /* This hides the parallax image stack in the About/Hero area */
    .movable-visual-container {
        display: none !important;
    }

    /* Optional: If you also want to hide the background Orbs on mobile */
    /* .orb { display: none; } */

    /* Adjust the about section layout since image is gone */
    .ethereal-glass-panel {
        grid-template-columns: 1fr;
        /* Stack text */
        padding: 30px;
    }

    /* Note: We DO NOT change card size here anymore. 
       It stays 300px as defined above. */
}

/* =========================================
   1. LOGIN PORTAL STYLING
   ========================================= */
.login-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

    /* Optional: Subtle background gradient spot */
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 50px 40px;
    border-radius: 8px;
    /* Glass Effect inherited from .glass-panel below */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2.5rem;
    margin-top: 10px;
    color: #fff;
}

/* Form Inputs Specific to Login */
.luxury-form .form-group {
    margin-bottom: 25px;
}

.luxury-form label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.luxury-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.luxury-form input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.full-width {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
}

/* Alerts */
.flash-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px;
    font-size: 0.85rem;
    text-align: center;
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.2);
    color: #ffcccc;
}


/* =========================================
   2. DASHBOARD STYLING
   ========================================= */
.dashboard-container {
    padding: 120px 5% 80px 5%;
    /* Top padding clears fixed nav */
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left h2 {
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    color: #fff;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.small-btn {
    padding: 12px 25px;
    font-size: 0.8rem;
}

.logout-btn {
    border-color: rgba(255, 100, 100, 0.3);
    color: #ffcccc;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 100, 100, 0.8);
}

/* Grid Layout for Charts */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Glass Panels (Shared) */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 4px;
}

.chart-panel h3,
.panel-header h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    margin-top: 0;
}

/* Table Styling */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.count-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.table-responsive {
    overflow-x: auto;
}

.luxury-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
}

.luxury-table th {
    text-align: left;
    padding: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.luxury-table td {
    padding: 18px 15px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.luxury-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* =========================================
   DASHBOARD / COMMAND CENTER STYLES
   ========================================= */

/* Main Container - Clears the fixed navbar */
.dashboard-section {
    padding: 140px 5% 80px 5%;
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Header Section --- */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left h2 {
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.header-right {
    display: flex;
    gap: 15px;
}

/* Small Button Variants */
.small-btn {
    padding: 12px 25px;
    font-size: 0.75rem;
    height: auto;
    border-radius: 4px;
}

.logout-btn {
    border-color: rgba(255, 100, 100, 0.3);
    color: #ffcccc;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: #ff0000;
    color: #fff;
}

/* --- Metrics & Charts Grid --- */
.charts-grid {
    display: grid;
    /* 3 Columns: Metric (Small) | Chart 1 | Chart 2 */
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 30px;
}

/* Glass Panel Shared Style */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

/* Metric Panel Specifics */
.metric-panel {
    justify-content: center;
    text-align: center;
    align-items: center;
    min-height: 250px;
}

.big-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    line-height: 1;
    color: #fff;
    margin: 10px 0;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.mini-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

/* Chart Panels */
.chart-panel h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    flex-grow: 1;
    min-height: 200px;
}

/* --- Data Table --- */
.table-panel h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 300;
}

.table-responsive {
    overflow-x: auto;
}

.luxury-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-family: 'Manrope', sans-serif;
}

.luxury-table th {
    text-align: left;
    padding: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.luxury-table td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.luxury-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* Table Tags */
.id-tag {
    font-family: monospace;
    opacity: 0.5;
    color: #aaa;
}

.highlight-text {
    color: #fff;
    font-weight: 500;
}

.tag {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.5;
}

.empty-state {
    text-align: center;
    padding: 40px;
    opacity: 0.5;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* --- 1. CORE LAYOUT & DESKTOP GLASS --- */
.museum-portfolio {
    padding: 100px 5%;
    background: transparent;
    overflow: visible;
    position: relative;
}

.glass-panel-outer {
    position: relative;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.portfolio-header {
    top: 0;
    z-index: 100;
    background: transparent !important;
    padding: 30px 0 10px 40px;
    pointer-events: none;
}

.museum-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 120px;
    gap: 30px;
}

/* --- 2. ASYMMETRIC SHAPES (Desktop Only) --- */
@media (min-width: 769px) {

    .item-hidden {
        display: none !important;
    }

    .museum-item.wide {
        grid-column: span 8;
        grid-row: span 3;
    }

    .museum-item.tall {
        grid-column: span 4;
        grid-row: span 6;
    }

    .museum-item.standard {
        grid-column: span 4;
        grid-row: span 3;
    }

    .museum-item.medium {
        grid-column: span 4;
        grid-row: span 3;
    }

    .museum-item.shift {
        grid-column: span 8;
        grid-row: span 3;
    }
}

/* --- 3. ITEM STYLING --- */
.museum-item {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: block;
    text-decoration: none;
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease;
}

.museum-image,
.museum-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.museum-image img {
    filter: grayscale(100%) brightness(0.7);
    transition: transform 1.2s ease, filter 0.8s ease;
}

.museum-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.m-content {
    overflow: hidden;
}

.m-cat,
.m-title {
    display: block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-title {
    color: #fff;
    font-size: 2rem;
    font-family: serif;
    font-style: italic;
    margin-top: 5px;
}

.m-cat {
    color: #ff4d4d;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

/* Desktop Interaction */
@media (min-width: 769px) {
    .museum-item:hover {
        transform: translateY(-10px) scale(1.02);
        z-index: 20;
    }

    .museum-item:hover .museum-overlay {
        opacity: 1;
    }

    .museum-item:hover .m-cat,
    .museum-item:hover .m-title {
        transform: translateY(0);
    }

    .museum-item:hover img {
        filter: grayscale(0%) brightness(1);
        transform: scale(1.05);
    }
}

/* --- MOBILE: FINAL SMALL FIXED-SIZE GLASS GALLERY --- */
/* --- MOBILE: REFINED MEDIUM-SLATE GLASS GALLERY --- */
@media (max-width: 768px) {




    /* 1. CONTAINER: Balanced Stream */
    .museum-portfolio {
        padding: 35px 0 !important;
        background: transparent !important;
    }

    .museum-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        /* Increased side padding to frame the smaller cards */
        padding: 0 25px 40px 25px !important;
        gap: 15px !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .museum-grid::-webkit-scrollbar {
        display: none;
    }

    /* 2. THE CARD: Refined & Proportional */
    .museum-item:not(.item-hidden) {
        /* Reduced from 92vw to 85vw for a 'smaller' profile */
        flex: 0 0 calc(85vw - 20px) !important;
        width: calc(85vw - 20px) !important;
        height: 58vh !important;
        /* Reduced height for a sleeker fit */

        scroll-snap-align: center;
        position: relative !important;
        display: block;

        /* High-Gloss Aesthetics */
        background: rgba(255, 255, 255, 0.02) !important;
        backdrop-filter: blur(25px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(25px) saturate(160%) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 26px !important;
        padding: 8px !important;
        /* The Subtle Glass Rim */
        opacity: 1 !important;
        visibility: visible !important;
        text-decoration: none !important;
    }

    /* 3. FULL IMMERSIVE IMAGE */
    .museum-image {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        z-index: 1 !important;
    }

    .museum-item img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        opacity: 0.9 !important;
        filter: brightness(0.85) contrast(1.1) !important;
    }

    /* 4. THE OVERLAY: Bottom-Left Flex Lock */
    .museum-overlay {
        position: absolute !important;
        inset: 0 !important;
        z-index: 999 !important;

        /* Fixed display:flex ensures text stays in bottom-left */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        /* Bottom */
        align-items: flex-start !important;
        /* Left */

        /* Clean Vignette for text legibility (no murky background) */
        background: linear-gradient(to top right,
                rgba(0, 0, 0, 1) 0%,
                rgba(0, 0, 0, 0.6) 35%,
                transparent 65%) !important;

        padding: 30px !important;
        pointer-events: none !important;
        border-radius: 20px;
        text-align: left !important;
    }

    /* 5. TYPOGRAPHY: Balanced Visibility */
    .m-content {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        transform: none !important;
        width: 100% !important;
    }

    .m-cat {
        font-size: 0.7rem !important;
        letter-spacing: 3px !important;
        color: #ff4d4d !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        margin-bottom: 6px !important;
        display: block !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 1) !important;
    }

    .m-title {
        font-size: 1.7rem !important;
        /* Scaled down slightly to fit smaller card */
        font-weight: 300 !important;
        color: #ffffff !important;
        line-height: 1.1 !important;
        display: block !important;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 1) !important;
    }

    .item-hidden {
        display: none !important;
    }
}

/* Hide Ghost Card on Desktop */
@media (min-width: 769px) {
    .item-hidden {
        display: none !important;
    }
}

/* Ensure Lab/Portfolio is also tall enough */
#portfolio {
    min-height: 80vh !important;
    padding-top: 100px;
    box-sizing: border-box;
}

#services {
    /* Remove 'min-height: 80vh' if it is causing layout issues */
    height: auto;
    min-height: 600px;
    /* A fixed minimum height is safer than vh for stability */
    padding: 120px 0;
    overflow: hidden;
    /* Prevents internal elements from leaking out */
    position: relative;
}


/* --- THE GLOWING GLASS SUCCESS POPUP --- */

/* 1. OVERLAY: Softens the site behind the message */
.form-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* 2. THE CARD: Deep Glow & Refraction */
.glass-success-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;

    /* LAYERED GLOW EFFECT */
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.3),
        /* Deep shadow for depth */
        0 0 25px rgba(255, 77, 77, 0.2),
        /* External red neon glow */
        inset 0 0 15px rgba(255, 255, 255, 0.05);
    /* Internal glass rim highlight */

    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-popup-overlay.active .glass-success-card {
    transform: scale(1) translateY(0);
}

/* 3. THE NEON TICK: Clean and Glowing */
.tick-container {
    width: 80px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0px;
    /* Glow effect specific to the tick icon */
    filter: drop-shadow(0 0 12px var(--accent-red));
}


@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* 4. TYPOGRAPHY: Theme-Aware Visibility */
.success-title {
    color: var(--text-main);
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.success-msg {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 5. ACTION BUTTON: Integrated Glow */
.glass-action-btn {
    background: var(--text-main);
    color: var(--bg-main);
    border: none;
    padding: 14px 45px;
    border-radius: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s all ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
    /* Glow intensifies on hover */
}

/* --- MOBILE: PREMIUM WHITE BLOOM NAVIGATION --- */
@media (max-width: 768px) {
    .museum-portfolio {
        position: relative !important;
    }

    .lab-navigation-container {
        display: flex !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 100001 !important;
    }

    .nav-arrow {
        pointer-events: auto;
        position: absolute;
        top: 45%;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;

        /* Premium White Glass */
        background: rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(15px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(15px) saturate(200%) !important;
        border: 2px solid #ffffff !important;

        /* MULTI-LAYER WHITE BLOOM */
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.8),
            /* Core Glow */
            0 0 25px rgba(255, 255, 255, 0.4),
            /* Mid Bloom */
            inset 0 0 10px rgba(255, 255, 255, 0.5) !important;
        /* Inner Edge */

        cursor: pointer;
        opacity: 1;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease !important;
    }

    .left-nav {
        left: 12px;
    }

    .right-nav {
        right: 12px;
    }

    /* The White Icon */
    .nav-arrow svg {
        width: 30px;
        height: 30px;
        fill: #ffffff !important;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1));
    }

    /* Pulse effect for premium presence */
    .nav-arrow {
        animation: premiumWhitePulse 3s infinite ease-in-out;
    }

    @keyframes premiumWhitePulse {

        0%,
        100% {
            transform: scale(1);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.4);
        }

        50% {
            transform: scale(1.08);
            box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.6);
        }
    }
}

/* =========================================
   8. LEGAL PAGE STYLES
   ========================================= */
.legal-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.legal-header {
    margin-top: 80px;
    /* Offset for fixed nav */
}

.legal-label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ff4d4d;
    margin-bottom: 20px;
}

.legal-title {
    font-family: 'Manrope', sans-serif;
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: -2px;
    color: #fff;
    margin: 0;
}

.legal-content-section {
    padding: 60px 5% 120px 5%;
    display: flex;
    justify-content: center;
}

.legal-container {
    max-width: 900px;
    width: 100%;
}

.legal-article {
    scroll-margin-top: 100px;
    /* Fix for fixed navbar overlap */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px;
    border-radius: 4px;
    margin-bottom: 60px;
    backdrop-filter: blur(10px);
}

.legal-links {
    display: flex;
    gap: 30px;
}

.legal-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #fff;
}

.article-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 400;
    font-style: italic;
}

.last-updated {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.legal-text-block h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-text-block p {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.legal-text-block strong {
    color: #fff;
    font-weight: 600;
}

.legal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 80px 0;
}

@media (max-width: 768px) {
    .legal-title {
        font-size: 2.5rem;
    }

    .legal-article {
        padding: 30px;
    }

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