:root {
    --bg-color: #0f0f10;
    --text-primary: #f5f5f7;
    --text-secodary: rgba(245, 245, 247, 0.6);
    --accent-color: #23b9ad;
    --glass-bg: rgba(20, 20, 25, 0.4);
    --glass-border: rgba(245, 245, 247, 0.08);
    /* Updated with text-primary base */
    --glass-highlight: rgba(245, 245, 247, 0.15);
    /* Updated with text-primary base */

    /* Liquid Physics Animation Curves */
    --liquid-ease: cubic-bezier(0.25, 1, 0.5, 1);
    --squish-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

@font-face {
    font-family: 'Noto Sans Arabic Variable';
    src: url('Assets/Fonts/Arabic/NotoSansArabic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-stretch: 62.5% 100%;
}

body.lang-ar * {
    font-family: 'Noto Sans Arabic Variable', sans-serif;
}

/* Utilize variable font features specifically for Arabic */
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar .hero-content h1 {
    font-variation-settings: 'wght' 700, 'wdth' 100;
}

body.lang-ar .btn-primary,
body.lang-ar .liquid-btn-hero,
body.lang-ar .nav-link,
body.lang-ar .price {
    font-variation-settings: 'wght' 600, 'wdth' 100;
}

body.lang-ar p,
body.lang-ar span,
body.lang-ar .delivery-text,
body.lang-ar .dropdown-item {
    font-variation-settings: 'wght' 400, 'wdth' 100;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* --- LIQUID GLASS HEADER --- */
.glass-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-radius: 40px;

    /* The Glass Effect */
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);

    z-index: 1002;
    transition: transform 0.4s var(--liquid-ease), background 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;

    /* Initial state for load animation */
    opacity: 0;
    transform: translateX(-50%) translateY(-150px);
}

@keyframes headerDropIn {
    0% {
        transform: translateX(-50%) translateY(-150px) scaleY(1.15) scaleX(0.9);
        opacity: 0;
    }

    40% {
        transform: translateX(-50%) translateY(5px) scaleY(0.94) scaleX(1.03);
        opacity: 1;
    }

    70% {
        transform: translateX(-50%) translateY(-2px) scaleY(1.02) scaleX(0.98);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

/* Brand & Heritage Badge */
.brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20;
    cursor: pointer;
    transition: transform 0.4s var(--squish-ease);
}

.header-heritage-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s var(--liquid-ease);
    cursor: default;
}

.header-heritage-pill img {
    width: 12px;
    border-radius: 1px;
}

.header-heritage-pill span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secodary);
    text-transform: uppercase;
}

.header-heritage-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.03);
}

.logo:hover {
    transform: scale(1.05);
}

.logo:active {
    transform: scale(0.9);
}

/* Nav Links & Dropdowns */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    /* Keep links vertically centered */
}

.nav-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    /* Increase invisible hit box for hover stability */
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    position: relative;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s var(--liquid-ease);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-highlight);
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s var(--squish-ease);
    z-index: -1;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-icon svg {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease;
}

/* Desktop Dropdown Content */
.chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--liquid-ease);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--liquid-ease), transform 0.3s var(--liquid-ease), visibility 0.3s;

    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
    /* Ensure this is higher than the hero section */
}

/* Hover Effects */
.nav-dropdown-wrapper:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-wrapper:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    opacity: 0.9;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

/* Actions Section */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Liquid Button Physics */
.liquid-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    overflow: hidden;
    /* Soft snappy liquid transition */
    transition: transform 0.3s var(--squish-ease), background 0.3s var(--liquid-ease), box-shadow 0.3s var(--liquid-ease);
}

/* Click state - squish effect */
.liquid-btn:active {
    transform: scale(0.92);
}

/* Wave ripple effect added via JS but basic scale is here */
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    font-size: 18px;
}

.icon-btn:hover {
    background: var(--glass-highlight);
    box-shadow: 0 0 15px rgba(245, 245, 247, 0.05);
    /* text-primary based */
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(245, 245, 247, 0.15);
    /* text-primary based */
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 245, 247, 0.25);
    /* text-primary based */
}

.btn-primary:active {
    transform: translateY(1px) scale(0.95);
    box-shadow: 0 2px 10px rgba(245, 245, 247, 0.2);
    /* text-primary based */
}

/* --- HERO SECTION - SCROLL SEQUENCE --- */
.hero-section {
    position: relative;
    width: 100%;
    /* Extra tall height to allow scrolling for the animation duration */
    height: 300vh;
    background-color: var(--bg-color);
}

.scroll-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.sticky-content {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 80px;
}

#hero-sequence {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* --- LANGUAGE MODAL --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    /* Position the dropdown directly below the right side of the header */
    padding: 100px 5% 24px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--liquid-ease);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.liquid-glass-panel {
    background: rgba(15, 15, 16, 0.5);
    /* Much more transparent base */
    backdrop-filter: blur(60px) saturate(220%);
    /* Stronger glass blur effect */
    -webkit-backdrop-filter: blur(60px) saturate(220%);
    border: 1px solid rgba(245, 245, 247, 0.15);
    /* More visible border for glass look */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(245, 245, 247, 0.1);
    border-radius: 20px;
    width: 320px;
    padding: 20px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s var(--squish-ease);
}

.modal-overlay.active .liquid-glass-panel {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.close-btn {
    width: 32px;
    height: 32px;
    background: rgba(245, 245, 247, 0.05);
}

.current-selection {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.current-selection .label {
    color: var(--text-secodary);
    font-size: 15px;
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

.search-container {
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    background: rgba(245, 245, 247, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: rgba(245, 245, 247, 0.08);
    border-color: rgba(245, 245, 247, 0.2);
}

.search-input::placeholder {
    color: var(--text-secodary);
}

.language-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 245, 247, 0.2) transparent;
}

.language-list::-webkit-scrollbar {
    width: 4px;
}

.language-list::-webkit-scrollbar-thumb {
    background: rgba(245, 245, 247, 0.2);
    border-radius: 4px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-item:hover {
    background: rgba(245, 245, 247, 0.05);
}

.language-item.active {
    background: rgba(35, 185, 173, 0.1);
    color: var(--accent-color);
}

/* Gradient overlay to make text pop over the 3D model */
.sticky-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 16, 0.9) 0%, rgba(15, 15, 16, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.glass-header.animate-in {
    animation: headerDropIn 1.2s var(--squish-ease) forwards;
}

.glass-header.scrolled {
    transform: translateX(-50%) translateY(-10px) scale(0.98);
    background: rgba(20, 20, 25, 0.6);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(245, 245, 247, 0.05);
}

.glass-header.header-hidden {
    transform: translateX(-50%) translateY(-150px) scale(0.95);
    opacity: 0 !important;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-bottom-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.buy-section {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 8px 8px 24px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    margin-bottom: 12px;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
}

.delivery-text {
    font-size: 13px;
    color: var(--text-secodary);
    max-width: 400px;
    margin-top: 8px;
}

.buy-section-hero {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.liquid-btn-hero {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 14px 60px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 245, 247, 0.15);
    transition: all 0.3s var(--squish-ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.liquid-btn-hero:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 245, 247, 0.3);
}

.liquid-btn-hero:active {
    transform: translateY(1px) scale(0.96);
}

.delivery-text a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Mobile Accordion Styles */
.mobile-nav-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-nav-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--liquid-ease);
    display: flex;
    flex-direction: column;
    padding-left: 24px;
    /* Indent sub items */
}

.mobile-nav-dropdown-content.open {
    max-height: 200px;
    /* Adjust via JS if content is larger, but this should be enough for a few links */
}

.mobile-dropdown-item {
    color: var(--text-secodary);
    text-decoration: none;
    font-size: 14px;
    /* Reduced from 20px for a more premium, subtle hierarchy */
    font-weight: 400;
    padding: 10px 0;
    display: block;
    width: 100%;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:active {
    color: var(--text-primary);
}

/* Mobile Utility Classes */
.mobile-only {
    display: none !important;
}

.hide-on-mobile {
    display: flex;
}

/* Animated Hamburger */
.hamburger-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hamburger-menu .bar {
    position: absolute;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.4s var(--liquid-ease), opacity 0.3s ease;
}

.hamburger-menu .top-bar {
    transform: translateY(-6px);
}

.hamburger-menu .mid-bar {
    transform: translateY(0);
}

.hamburger-menu .btm-bar {
    transform: translateY(6px);
}

.hamburger-menu.active .top-bar {
    transform: translateY(0) rotate(45deg);
}

.hamburger-menu.active .mid-bar {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .btm-bar {
    transform: translateY(0) rotate(-45deg);
}

.mobile-nav-dropdown {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        /* Hide desktop nav */
    }

    .desktop-nav,
    .search-icon,
    .language-btn {
        display: none;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .brand-group {
        gap: 10px;
        /* Tighter gap next to logo on mobile */
    }

    .header-heritage-pill span {
        display: none;
        /* On tiny screens, just show the flag in the pill */
    }

    .hamburger-btn {
        display: flex !important;
    }

    /* Mobile Navigation Dropdown */
    .mobile-nav-dropdown {
        position: fixed;
        inset: 0;
        background: transparent;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 100px 5% 24px;
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--liquid-ease);
    }

    .mobile-nav-dropdown.active {
        opacity: 1;
        pointer-events: all;
    }

    .mobile-dropdown-panel {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 200px;
        padding: 12px;
        border-radius: 20px;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }

    .mobile-nav-link {
        font-family: inherit;
        background: transparent;
        border: none;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-primary);
        text-decoration: none;
        padding: 12px 16px;
        border-radius: 12px;
        transition: all 0.2s ease;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s var(--squish-ease), background 0.2s ease;
        text-align: left;
    }

    .mobile-nav-link:hover {
        background: rgba(245, 245, 247, 0.05);
    }

    .mobile-nav-dropdown.active .mobile-nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger the link animations */
    .mobile-nav-dropdown.active .mobile-nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-nav-dropdown.active .mobile-nav-link:nth-child(2) {
        transition-delay: 0.15s;
    }

    .mobile-nav-dropdown.active .mobile-nav-link:nth-child(3) {
        transition-delay: 0.2s;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .sticky-content {
        padding: 40px 24px;
    }

    .hero-bottom-info {
        align-items: flex-start;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 40px;
    }
}

/* --- EXPLORE LINEUP SECTION --- */
.explore-lineup-section {
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    padding: 100px 24px;
    text-align: center;
}


.explore-title {
    font-size: 56px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    max-width: 900px;
}

.explore-gradient-text {
    /* Create a teal fading gradient to black/transparent using brand color */
    background: linear-gradient(90deg, var(--accent-color) 0%, rgba(35, 185, 173, 0.7) 30%, rgba(15, 15, 16, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.lang-ar .explore-gradient-text {
    background: linear-gradient(-90deg, var(--accent-color) 0%, rgba(35, 185, 173, 0.7) 30%, rgba(15, 15, 16, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- PREMIUM LIQUID GLASS SLIDER --- */
.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-nav-btn {
    position: absolute;
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s var(--liquid-ease);
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.gallery-viewport {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Hide scrollbars for WebKit */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-viewport::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 30px;
    transition: transform 0.8s var(--liquid-ease);
}

.gallery-card {
    flex: 0 0 340px;
    height: 460px;
    border-radius: 24px;
    position: relative;
    padding: 1px;
    /* Gradient border width */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--squish-ease), opacity 0.5s ease;
    cursor: grab;
}

.gallery-card:active {
    cursor: grabbing;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card-glass-panel {
    width: 100%;
    height: 100%;
    border-radius: 23px;
    /* Slightly less than outer to fit inside border */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 32px 32px 0 32px;
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 2;
}

/* Base Theme Gradient glows behind glass */
.gallery-card::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--card-color) 0%, transparent 60%);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.gallery-card:hover::before {
    opacity: 0.25;
}

/* Card Themes */
.card-gold {
    --card-color: #d4af37;
}

.card-neutral {
    --card-color: #ffffff;
}

.card-blue {
    --card-color: #0ea5e9;
}

.card-purple {
    --card-color: #8b5cf6;
}

.card-green {
    --card-color: #10b981;
}

.card-teal {
    --card-color: #14b8a6;
}

.card-orange {
    --card-color: #f97316;
}

.card-red {
    --card-color: #ef4444;
}

.card-brand {
    --card-color: var(--accent-color);
}

/* Header Icon */
.card-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--card-color);
    color: #0f0f10;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-neutral .card-header-icon {
    background: #ffffff;
    color: #0f0f10;
}

.card-header-icon.outline-icon {
    background: transparent;
    color: var(--card-color);
    border: 2px solid var(--card-color);
}

.card-neutral .card-header-icon.outline-icon {
    background: #ffffff;
    color: #0f0f10;
    border: none;
}

/* Text Content */
.card-text-content {
    position: relative;
    z-index: 5;
}

.card-text-content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text-primary);
    background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-text-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secodary);
    margin-bottom: 24px;
}

/* Mock UI Images at Bottom */
.card-image-holder {
    flex: 1;
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    margin-top: auto;
    width: calc(100% + 16px);
    margin-left: -8px;
    /* Slight bleed */
    z-index: 10;
}

.mock-ui {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-color: #1a1a1c;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Wireframe style placeholders inside the mock UI */
.mock-ui::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.mock-ui::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

/* Specific mock styles based on theme */
.mock-movies {
    background: linear-gradient(to bottom, #2a2a2a, #000);
}

.mock-ai {
    background: linear-gradient(to bottom, #ffffff, #e5e5e5);
    border: 1px solid #ddd;
}

.mock-ai::before {
    background: rgba(0, 0, 0, 0.1);
}

.mock-ai::after {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.02);
}

.mock-home {
    background: linear-gradient(to bottom, #f0f4f8, #c4d3e3);
    border: 1px solid #c4d3e3;
}

.mock-home::before {
    background: rgba(0, 0, 0, 0.1);
}

.mock-home::after {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

/* --- CERTIFICATIONS SECTION --- */
.certifications-section {
    width: 100%;
    padding: 60px 24px;
    background: linear-gradient(to bottom, rgba(15, 15, 16, 0.8), var(--bg-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.certifications-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secodary);
    margin-bottom: 32px;
}

.certifications-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1000px;
}

.cert-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* Apple-like elegant monochromatic styling for SVGs */
    /* Assumes logos are dark; invert them, lower opacity, and remove color */
    filter: invert(1) grayscale(100%) opacity(0.35);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: default;
}

/* EQM is sometimes uniquely styled, ensure constraints */
img[src*="EQM"] {
    height: 50px;
}

.cert-logo:hover {
    filter: invert(1) grayscale(100%) opacity(0.9);
    transform: scale(1.05);
}

/* --- ABOUT CINEMATIC SECTION --- */
.about-cinematic-section {
    position: relative;
    width: 100%;
    padding: 160px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--bg-color);
}

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(35, 185, 173, 0.08) 0%, rgba(15, 15, 16, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: slowPulse 8s ease-in-out infinite alternate;
}

@keyframes slowPulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.about-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.heritage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 32px;
}

.badge-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.heritage-badge span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.about-content h2 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-lead {
    font-size: 24px;
    line-height: 1.4;
    color: var(--text-secodary);
    margin-bottom: 16px;
    max-width: 700px;
}

.about-sub {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(245, 245, 247, 0.4);
    margin-bottom: 48px;
    max-width: 600px;
}

.btn-outline-glow {
    padding: 14px 32px;
    border-radius: 30px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--liquid-ease);
}

.btn-outline-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-outline-glow:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-outline-glow:hover::before {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-slider-wrapper {
        padding: 20px 0 20px 20px;
        /* Bleed off right edge */
    }

    .gallery-nav-btn {
        display: none;
        /* Hide arrows on mobile, rely on swipe */
    }

    .gallery-viewport {
        overflow-x: auto;
        /* Allow native scrolling on mobile */
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding-right: 20px;
        /* Space on right edge of last item */
    }

    .gallery-track {
        transform: none !important;
        /* Disable JS transform on mobile native scroll */
        gap: 16px;
        /* Tighter gap on mobile */
    }

    .gallery-card {
        scroll-snap-align: center;
        flex: 0 0 82vw;
        /* 82% width allows peeking at the next card */
        height: 420px;
    }

    /* Certifications Mobile Adjustments */
    .certifications-section {
        padding: 40px 16px;
        margin-top: 10px;
    }

    .certifications-track {
        gap: 30px;
        /* Tighter gap */
    }

    .cert-logo {
        height: 32px;
        /* Slightly smaller logos */
    }

    img[src*="EQM"] {
        height: 40px;
    }

    /* About Section Mobile Adjustments */
    .about-cinematic-section {
        padding: 100px 24px;
    }

    .about-content h2 {
        font-size: 36px;
    }

    .about-lead {
        font-size: 18px;
    }

    .about-sub {
        font-size: 15px;
    }

    .ambient-glow {
        width: 100vw;
        height: 100vw;
    }
}

/* --- AWARD-WINNING GLOBAL FOOTER --- */
.global-footer {
    position: relative;
    width: 100%;
    background-color: #0a0a0a;
    color: var(--text-primary);
    padding: 120px 5% 40px;
    overflow: hidden;
    margin-top: 80px;
    z-index: 10;

    /* Scroll Reveal Initial State */
    transform: translateY(100px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.global-footer.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Deep Radial Cinematic Glow */
.footer-radial-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 1000px;
    background: radial-gradient(circle at top, rgba(35, 185, 173, 0.08) 0%, rgba(35, 185, 173, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: slowPulse 8s infinite alternate;
}

@keyframes slowPulse {
    0% {
        opacity: 0.7;
        transform: translateX(-50%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Floating CTA Box */
.footer-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 40px 60px;
    margin-bottom: 80px;
    background: rgba(20, 20, 25, 0.4);
    border-radius: 24px;
    transform: translateY(0) scale(1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s var(--liquid-ease), border-color 0.4s ease;
}

.footer-cta-box:hover {
    transform: translateY(-5px);
    border-color: rgba(35, 185, 173, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(35, 185, 173, 0.1);
}

.cta-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    color: var(--text-secodary);
    font-size: 16px;
    max-width: 500px;
}

/* Main Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.brand-col {
    padding-right: 40px;
}

.footer-logo img {
    height: 32px;
    margin-bottom: 24px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
}

.brand-desc {
    color: var(--text-secodary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 320px;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secodary);
    transition: all 0.4s var(--squish-ease);
}

.social-icon svg {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    background: rgba(35, 185, 173, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(35, 185, 173, 0.2);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Tooltip */
.social-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.8);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--liquid-ease);
    white-space: nowrap;
}

.social-icon:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Links Columns */
.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Magnetic Link Animation */
.magnetic-link {
    color: var(--text-secodary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, transform 0.3s var(--liquid-ease);
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.magnetic-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.magnetic-link:hover {
    color: white;
    transform: translateX(4px);
}

.magnetic-link:hover::after {
    width: 100%;
}

/* Footer Bottom Layout */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legal-links .magnetic-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.legal-links .magnetic-link:hover {
    color: white;
}

.separator {
    color: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .brand-col {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .brand-desc {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-cta-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 24px;
    }

    .cta-content p {
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- HEADER TEXT UPPERCASE --- */
.nav-link,
.dropdown-item,
.mobile-nav-link,
.mobile-dropdown-item {
    text-transform: uppercase;
}