/* public/css/app.css */
:root {
    --bg-main: #ffffff;
    --bg-darker: #f2f2f2;
    --bg-footer: #1a1a1a;
    --primary: #e67e00; /* SQ-lab orange */
    --primary-glow: rgba(230, 126, 0, 0.4);
    --secondary: #d37300;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: #e2e8f0;
    --grad-text: #e67e00; /* Replaced gradient with solid brand color for professional look */
    --grad-text: #e67e00; /* Replaced gradient with solid brand color for professional look */
    --nav-height: 125px;
}

body.sq-theme {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #1a1a1a;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 6rem 0;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.bg-darker { background-color: var(--bg-darker); }
.text-primary { color: var(--primary); }

.text-gradient {
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #1a1a1a;
    color: #fff;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary);
    margin: 1rem auto 2rem;
    border-radius: 0;
}

/* Header Architecture */
.sq-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    background: #ffffff;
    border-top: 4px solid #333333;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Logo Bar */
.logo-bar {
    background: #ffffff;
    height: 70px;
    display: flex;
    align-items: center;
}
.logo-bar-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo-bar-left {
    display: flex;
    justify-content: flex-start;
}
.logo-bar-center {
    display: flex;
    justify-content: center;
}
.logo-bar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}
.header-icon-link {
    color: #1a1a1a;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.header-icon-link:hover {
    color: var(--primary);
}

/* Nav Bar */
.nav-bar {
    background: #f4f4f4;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}
.nav-bar-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.glass-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: var(--secondary);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}
.btn-outline:hover {
    background: var(--text-main);
    color: #fff;
}

/* Header & Nav */
.logo img {
    height: 40px;
}
.logo span {
    color: #1a1a1a !important;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 3.5rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: #555555;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 1rem 0;
    display: inline-block;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.main-nav a::after {
    display: none;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}

.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 4px 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    white-space: nowrap;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    padding: 0;
}
.dropdown-menu a {
    display: block;
    padding: 0.4rem 1.5rem; /* Reduced padding for tighter spacing */
    font-size: 0.9rem;
    font-weight: 500;
}
.dropdown-menu a::after {
    display: none;
}
.dropdown-menu a:hover {
    background: var(--bg-darker);
    padding-left: 2rem;
    color: var(--primary);
}

/* Mega Menu Specifically */
.mega-dropdown {
    position: static;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background: #ffffff;
    border: none;
    border-top: 3px solid #1c903a; /* Green top border from image */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1.5rem 0; /* Reduced top/bottom padding */
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.dropdown.mega-dropdown:hover .mega-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.mega-menu-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 column layout */
    gap: 1.5rem;
    max-width: 1200px;
}
.mega-col {
    display: block !important; /* Ensure children don't stretch */
}
.mega-title {
    font-size: 1.05rem;
    color: #1a1a1a;
    font-weight: 700;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem; /* Reduced margin */
    border-bottom: 1px solid #e0e0e0; /* Thin grey line */
    text-transform: capitalize;
    letter-spacing: 0px;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}
.mega-title:hover {
    color: var(--primary);
}
.mega-menu .mega-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important; /* Prevent flex gaps */
}
.mega-menu .mega-list li {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
.mega-menu .mega-list a {
    color: #666666 !important; /* Subtitle grey color */
    font-size: 0.85rem !important;
    text-transform: none !important;
    padding: 0.35rem 0 !important; 
    font-weight: 400 !important;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif !important;
    display: inline-block !important;
    margin: 0 !important;
    line-height: normal !important;
}
.mega-menu .mega-list a:hover {
    color: var(--primary);
    background: transparent;
    padding-left: 0;
}


.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: 0;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: calc(var(--nav-height));
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 1;
}
.hero-container-center {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-title span {
    color: var(--primary);
}
.hero-subtitle {
    font-size: 1.4rem;
    color: #f2f2f2;
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 400;
}
.hero-cta {
    display: flex;
    gap: 1.5rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    border-top: 4px solid #1a1a1a;
}
.feature-card:hover {
    border-top-color: var(--primary);
}
.feature-icon {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: var(--bg-darker);
    border-radius: 4px;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* About */
.about-section {
    background-color: var(--bg-darker);
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-image-wrapper {
    position: relative;
}
.about-image {
    width: 100%;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: #fff;
    padding: 1.5rem 2.5rem;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(230, 126, 0, 0.3);
    z-index: 3;
}
.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit';
    line-height: 1;
}
.experience-badge .text {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
}
.about-content h2 {
    color: #1a1a1a;
}
.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.gallery-item {
    position: relative;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 4px;
    border: none;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(230, 126, 0, 0.85); /* SQ Lab Orange overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}
.gallery-overlay i {
    font-size: 2.5rem;
    color: #fff;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.zoom-hover:hover img {
    transform: scale(1.05);
}
.zoom-hover:hover .gallery-overlay {
    opacity: 1;
}
.zoom-hover:hover .gallery-overlay i {
    transform: scale(1);
}

/* Socials */
.social-links {
    display: flex;
    gap: 1rem;
}
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}
.social-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Footer */
.main-footer {
    background: var(--bg-footer);
    color: #fff;
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}
.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1); /* Made logo white for dark bg */
}
.brand-col p {
    color: #a0a0a0;
    font-size: 0.95rem;
    max-width: 300px;
}
.links-col h4, .contact-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #fff;
}
.links-col ul {
    list-style: none; padding: 0; margin: 0;
}
.links-col a {
    color: #a0a0a0;
    display: block;
    margin-bottom: 0.75rem;
}
.links-col a i {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: var(--primary);
}
.links-col a:hover {
    color: #fff;
    padding-left: 5px;
}
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Base keyframes */
.animate-slide-up { animation: slideUp 0.8s ease forwards; opacity: 0; transform: translateY(30px); }
.animate-slide-up-delay-1 { animation: slideUp 0.8s ease 0.2s forwards; opacity: 0; transform: translateY(30px); }
.animate-slide-up-delay-2 { animation: slideUp 0.8s ease 0.4s forwards; opacity: 0; transform: translateY(30px); }
.animate-fade-in { animation: fadeIn 1.2s ease 0.5s forwards; opacity: 0; }

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

/* Responsiveness */
@media (max-width: 991px) {
    .logo-bar-container {
        display: flex;
        justify-content: space-between;
    }
    .logo-bar-left {
        display: none;
    }
    .logo-bar-center {
        justify-content: flex-start;
    }
    .hero-container-center, .about-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-cta { justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    
    /* Hide desktop nav-bar visual row, keep it in DOM for nav to reference */
    .nav-bar { 
        height: 0 !important; 
        overflow: visible !important; 
        padding: 0 !important;
        border: none !important;
    }
    
    .header-actions .btn { display: none; }
    .mobile-toggle { display: block; color: var(--text-main); }

    /* Mobile menu - fixed to top of viewport below header */
    .main-nav {
        display: none;
        position: fixed;
        top: 80px; /* height of logo-bar */
        left: 0;
        width: 100%;
        background: #ffffff;
        border-top: 3px solid #1c903a;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 2000;
        overflow-y: scroll; /* Scroll the whole nav, not clip inner content */
        max-height: calc(100vh - 80px);
        overflow-x: hidden;
    }
    .main-nav.mobile-active {
        display: block;
    }
    /* Make accordion items NOT overflow-clip when expanded */
    .main-nav > ul > li {
        overflow: visible;
    }
    .main-nav > ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
        padding: 0.5rem 1.5rem;
    }
    .main-nav > ul > li {
        border-bottom: 1px solid #f0f0f0;
    }
    .main-nav > ul > li:last-child {
        border-bottom: none;
    }
    .main-nav > ul > li > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: left;
        padding: 1.1rem 0;
        font-size: 0.95rem;
    }
    
    /* Base state: all submenus hidden */
    .dropdown-menu,
    .mega-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid #f0f0f0 !important;
        padding: 0.5rem 0 1rem !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #f9f9f9 !important;
        display: none !important;
    }

    /* When dropdown is active via JS, show the submenu.
       Using high-specificity selector to beat the desktop hover rules. */
    .dropdown.mega-dropdown.dropdown-active > .dropdown-menu.mega-menu,
    .dropdown.dropdown-active > .dropdown-menu:not(.mega-menu) {
        display: block !important;
    }

    /* Also cover plain dropdown-active for mega-menu just in case */
    .dropdown.dropdown-active > .mega-menu {
        display: block !important;
    }

    .mega-menu-content {
        width: 100% !important;
        padding: 0 !important;
    }
    .mega-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        max-width: 100% !important;
    }
    .mega-col {
        padding: 0 !important;
        border-bottom: 1px solid #ececec;
    }
    .mega-col:last-child {
        border-bottom: none;
    }
    .mega-title {
        text-align: left !important;
        font-size: 0.95rem !important;
        padding: 0.8rem 1rem !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
        cursor: pointer;
        position: relative;
    }
    .mega-menu .mega-list {
        display: none !important;
        padding-bottom: 0.5rem !important;
    }
    .mega-col.active-sub .mega-list {
        display: block !important;
    }
    .mega-col.active-sub .mega-title {
        color: var(--primary) !important;
    }
    .mega-menu .mega-list a {
        padding: 0.4rem 1rem 0.4rem 1.5rem !important; /* indented a bit */
        display: block !important;
        font-size: 0.85rem !important;
    }
    .dropdown-menu a {
        padding: 0.6rem 1rem !important;
    }

    .experience-badge { right: 0; left: 0; margin: 0 auto; width: max-content; }
}
@media (max-width: 576px) {
    .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}

/* ============================================================
   COLOR SHOWCASE SECTION
   ============================================================ */
.color-showcase-section {
    position: relative;
    background: #0d0d0d;
    overflow: hidden;
    padding: 6rem 0;
    min-height: 580px;
    display: flex;
    align-items: center;
}

/* ---- Hero Banner variant (full-screen) ---- */
.hero-showcase-section {
    position: relative;
    background: #0d0d0d;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: var(--nav-height);
}

/* Two-column layout for hero showcase */
.hero-showcase-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left text area */
.hero-showcase-text {
    padding: 4rem 0;
}
.hero-showcase-title {
    font-size: 4rem;
    line-height: 1.05;
    color: #ffffff;
    margin: 1rem 0 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-showcase-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* White outline button for dark backgrounds */
.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* Right: image wrapper */
.hero-showcase-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}


/* Responsive hero showcase */
@media (max-width: 991px) {
    .hero-showcase-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-showcase-title { font-size: 2.8rem; }
    .hero-showcase-subtitle { margin: 0 auto 1.5rem; }
    .color-dots-nav { justify-content: center; }
    .hero-showcase-image-wrap { min-height: 320px; order: -1; }
    .grip-image-stack { max-width: 280px; margin: 0 auto; }
    .grip-glow-ring { width: 250px; height: 250px; }
    .hero-showcase-section { min-height: auto; padding: 7rem 0 4rem; }

    /* ── Mobile Background: Gemini X-pattern image ── */
    .hero-showcase-section .color-showcase-bg {
        background:
            /* Dark overlay for text readability */
            linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.55) 0%,
                rgba(0, 0, 0, 0.40) 40%,
                rgba(0, 0, 0, 0.65) 100%
            ),
            url('/public/images/oxo-mobilebackgroup.png')
                center top / cover no-repeat;
    }

    /* Hide the CSS dot-grid since real image is used instead */
    .hero-showcase-section .color-showcase-grid-overlay {
        display: none;
    }

    /* Boost grip image visibility against the textured background */
    .grip-slide {
        filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.25))
                drop-shadow(0 20px 40px rgba(0, 0, 0, 0.85));
    }
    .grip-slide.active {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.30))
                drop-shadow(0 24px 48px rgba(0, 0, 0, 0.9));
    }

    /* Stronger glow ring to punch through texture */
    .grip-glow-ring {
        filter: blur(50px);
        opacity: 0.9;
    }
}

@media (max-width: 576px) {
    .hero-showcase-title { font-size: 2rem; }
    .hero-showcase-section { padding: 6rem 0 3rem; }
    /* Slightly more overlay on small phones */
    .hero-showcase-section .color-showcase-bg {
        background:
            linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.62) 0%,
                rgba(0, 0, 0, 0.48) 40%,
                rgba(0, 0, 0, 0.72) 100%
            ),
            url('/public/images/oxo-mobilebackgroup.png')
                center top / cover no-repeat;
    }
}

/* Background: Removed on desktop (mobile only) */
.color-showcase-bg {
    position: absolute;
    inset: 0;
    background: transparent;
}
/* Hide CSS dot-grid – real image is the background now */
.color-showcase-grid-overlay {
    display: none;
}

/* Layout: two-column */
.color-showcase-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left: Text -------------------------------------------------- */
.color-showcase-text .badge {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
}
.color-showcase-title {
    font-size: 3.2rem;
    line-height: 1.05;
    color: #ffffff;
    margin: 1rem 0 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.color-showcase-accent {
    color: var(--primary);
}
.color-showcase-desc {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    max-width: 400px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Color dots nav */
.color-dots-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
    position: relative;
}
.color-dot:hover {
    transform: scale(1.15);
    border-color: rgba(255,255,255,0.6);
}
.color-dot.active {
    border-color: #ffffff;
    transform: scale(1.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}
.color-name-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 0.25rem;
    transition: color 0.4s ease;
}

/* Right: Image ------------------------------------------------- */
.color-showcase-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

/* Glow orb behind the grip */
.grip-glow-ring {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.8s ease, box-shadow 0.8s ease;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* Stack all grip images on top of each other */
.grip-image-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    z-index: 1;
}
.grip-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.96) translateY(6px);
    pointer-events: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}
/* First image sets the height */
.grip-image-stack .grip-slide:first-child {
    position: relative;
}
.grip-slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Subtle shadow ring below the grip */
.grip-shadow-ring {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    filter: blur(15px);
    z-index: 0;
}

/* Progress bar at the bottom */
.color-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    transition: width 0.05s linear, background 0.5s ease;
    z-index: 10;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .color-showcase-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .color-showcase-title { font-size: 2.4rem; }
    .color-showcase-desc  { margin: 0 auto 2rem; }
    .color-dots-nav       { justify-content: center; }
    .color-showcase-image-wrap { min-height: 300px; }
    .grip-image-stack { max-width: 300px; margin: 0 auto; }
    .grip-glow-ring { width: 260px; height: 260px; }
}
@media (max-width: 576px) {
    .color-showcase-title { font-size: 1.8rem; }
    .color-showcase-section { padding: 4rem 0; }
}
