/**
 * Dark Theme Specific Styles
 * Navy Blue (#162A42) + Gold (#BC923E)
 * 
 * @package Raaco_Starter
 * @since 1.0.0
 */

/* ============================================
   Header Styles (Glassmorphism Upgrade)
   ============================================ */
.site-header {
    background: rgba(13, 27, 42, 0.7);
    /* More transparent for glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle glass border */
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(13, 27, 42, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(188, 146, 62, 0.2);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Navigation */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu,
.primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu>li,
.primary-menu>li {
    position: relative;
}

.nav-menu a,
.primary-menu a {
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition-base);
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover,
.primary-menu a:hover {
    color: var(--gold);
}

/* Dropdown Menu */
.menu-item-has-children>a::after {
    content: '▼';
    font-size: 0.6em;
    margin-right: 0.5rem;
    transition: transform var(--transition-base);
}

.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 220px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    list-style: none;
    box-shadow: var(--shadow-xl);
    z-index: 100;
}

.menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    padding: 0;
}

.sub-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--text-secondary);
    border-right: 3px solid transparent;
    transition: all var(--transition-base);
}

.sub-menu a:hover {
    background: var(--bg-card);
    color: var(--gold);
    border-right-color: var(--gold);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher (Premium) */
.language-switcher {
    display: flex;
    align-items: center;
}

/* Main Navigation styling */
.main-navigation {
    display: flex !important;
}

@media (max-width: 992px) {
    .main-navigation {
        display: none !important;
    }
}

/* === CRITICAL: FORCE HIDE MOBILE ELEMENTS ON DESKTOP === */
.raaco-mobile-sidebar,
.mobile-menu-toggle,
.sidebar-overlay {
    display: none !important;
}

/* ============================================
   Preloader Styles (Missing)
   ============================================ */
#raaco-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d1b2a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#raaco-preloader.raaco-preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.preloader-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(188, 146, 62, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.lang-switcher-premium {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: rgba(188, 146, 62, 0.05);
    border: 1px solid rgba(188, 146, 62, 0.3);
    border-radius: 50px;
    /* Pill shape */
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.lang-switcher-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    z-index: -1;
}

.lang-switcher-premium:hover::after {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.lang-switcher-premium:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow:
        0 0 20px rgba(188, 146, 62, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    /* Inner 3D light */
    transform: translateY(-2px);
    /* Slight 3D lift */
    border-color: var(--gold);
}

.lang-switcher-premium svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.lang-switcher-premium:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.lang-switcher-premium span {
    position: relative;
    z-index: 1;
}

.lang-flag {
    font-size: 1rem;
}

/* Header CTA Button */
.header-cta-btn {
    padding: 0.6rem 1.2rem;
    background: var(--gold);
    color: var(--bg-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.header-cta-btn:hover {
    background: var(--gold-light);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--bg-darker);
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list a {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   Hero Section - New Design
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    /* Header height */
}

.hero-fullscreen {
    min-height: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind overlay, in front of image if loaded */
}

.hero-default-bg {
    background: linear-gradient(135deg, #0a1628 0%, #162A42 50%, #1a3a5c 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.85), rgba(22, 42, 66, 0.75));
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(188, 146, 62, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title-highlight .gold-text {
    color: var(--gold);
    position: relative;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    /* Default center for desktop too maybe? Or keep left? Keeps left usually but mobile wants center. */
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero-buttons {
        justify-content: center;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 24px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    background: #1da851;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* ============================================
   Section Styles
   ============================================ */
.raaco-section {
    padding: 5rem 0;
}

.section-badge {
    position: relative;
    /* For ::after positioning */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(188, 146, 62, 0.2);
    /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); Removed to let beam shine */
    color: var(--gold);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    overflow: hidden;
    /* Clean edges for beam */
}

.section-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold);
}

/* The Top Beam/Ray */
.section-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    /* Beam width */
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 10px 1px rgba(188, 146, 62, 0.4);
    opacity: 0.8;
}

/* RTL Support - Move dot to start */
html[dir="rtl"] .section-badge {
    flex-direction: row;
    /* Flex handles LTR/RTL order naturally if DOM content order is correct, 
       but for pseudo-element ::before, it appears visually first. 
       In RTL, ::before is on the right. */
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Buttons (Neon & Glow)
   ============================================ */
.raaco-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Primary Neon Button */
.raaco-btn--primary {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(188, 146, 62, 0.4);
    /* Initial Glow */
}

.raaco-btn--primary:hover {
    background: #E0C068;
    /* Richer Gold */
    color: var(--bg-dark);
    /* Dark text */
    box-shadow:
        0 0 20px var(--gold),
        0 0 40px rgba(188, 146, 62, 0.6);
    /* Intense Neon Glow */
    transform: translateY(-2px);
}

.raaco-btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.raaco-btn--primary:hover::before {
    left: 100%;
}

/* Secondary Button */
.raaco-btn--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.raaco-btn--secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Outline Neon Button */
.raaco-btn--outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    box-shadow: inset 0 0 10px rgba(188, 146, 62, 0.1);
}

.raaco-btn--outline:hover {
    background: rgba(188, 146, 62, 0.1);
    color: var(--gold);
    box-shadow:
        0 0 15px var(--gold),
        inset 0 0 20px rgba(188, 146, 62, 0.4);
    text-shadow: 0 0 5px var(--gold);
    border-color: #fff;
}

.raaco-btn--outline:hover svg {
    filter: drop-shadow(0 0 5px var(--gold));
}

.raaco-btn--large {
    padding: 1rem 3rem;
    font-size: var(--text-lg);
    letter-spacing: 0.5px;
}

/* ============================================
   Animated Glow Button (Premium Effect)
   Rotating stroke border + external glow
   ============================================ */
/* Main Button Container */
.raaco-btn--glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: rgba(13, 27, 42, 0.95);
    border: 1px solid rgba(188, 146, 62, 0.3);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    overflow: visible;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* Animation handled by JS for cross-browser reliability */
    /* animation: glow-rotate 3s linear infinite; */
}

/* Rotating Stroke Border */
.raaco-btn--glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: conic-gradient(from var(--glow-angle, 0deg),
            transparent 0%,
            transparent 30%,
            var(--gold, #BC923E) 50%,
            transparent 70%,
            transparent 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    /* animation: glow-rotate 3s linear infinite; REMOVED (Inherited from parent) */
    z-index: -1;
}

/* External Glow Effect (rotating) */
.raaco-btn--glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: conic-gradient(from var(--glow-angle, 0deg),
            transparent 0%,
            transparent 35%,
            rgba(188, 146, 62, 0.4) 50%,
            transparent 65%,
            transparent 100%);
    filter: blur(8px);
    /* animation: glow-rotate 3s linear infinite; REMOVED (Inherited from parent) */
    z-index: -2;
    opacity: 0.6;
}

/* Hover Effects */
.raaco-btn--glow:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(188, 146, 62, 0.5);
    box-shadow: 0 8px 25px rgba(188, 146, 62, 0.2);
    color: #fff;
}

.raaco-btn--glow:hover::before {
    animation-duration: 1.5s;
    /* Speeds up parent animation? No, this targets pseudo. */
    /* Wait, pseudo doesn't have animation anymore. We need to target parent:hover. 
       But parent already has animation.
       Actually, changing duration on hover requires targetting parent. */
    background: conic-gradient(from var(--glow-angle, 0deg),
            transparent 0%,
            transparent 20%,
            var(--gold, #BC923E) 35%,
            #FFD700 50%,
            var(--gold, #BC923E) 65%,
            transparent 80%,
            transparent 100%);
}

.raaco-btn--glow:hover::after {
    opacity: 1;
    filter: blur(12px);
}

/* Speed up on hover */
.raaco-btn--glow:hover {
    animation-duration: 1.5s;
}


/* Animation Keyframes */
@keyframes glow-rotate {
    0% {
        --glow-angle: 0deg;
    }

    100% {
        --glow-angle: 360deg;
    }
}

/* Register custom property for animation */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: true;
    /* FIXED: Now inherits to ::before/::after */
}

/* Glow button icon styling */
.raaco-btn--glow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.raaco-btn--glow:hover svg {
    transform: translateX(4px);
}


/* ============================================
   About Section (Broken Grid & Watermark)
   ============================================ */
.about-section {
    background: var(--bg-darker);
    position: relative;
    /* Ensure overflow hidden handled in HTML or here but handled in HTML class */
}

/* Watermark Typography */
.raaco-watermark {
    position: absolute;
    top: 5%;
    left: -5%;
    font-size: 15rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(188, 146, 62, 0.04);
    /* Subtle 4% Opacity */
    z-index: 0;
    user-select: none;
    pointer-events: none;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

/* RTL Watermark Position */
body.rtl .raaco-watermark {
    left: auto;
    right: -5%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Image takes more space */
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Broken Layout Offsets */
.about-image-col {
    margin-top: -3rem;
    /* Shift Up */
}

.about-content-col {
    margin-top: 3rem;
    /* Shift Down */
}

.image-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.image-gold-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.about-points {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-right: 3px solid var(--gold);
}

.point-icon {
    flex-shrink: 0;
    color: var(--gold);
}

/* ============================================
   Services Grid (Glassmorphism & Neon)
   ============================================ */
.services-section {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Add subtle background glow behind cards */
.services-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(188, 146, 62, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    /* Ultra subtle fill */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy spring */
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    /* For Tilt */
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(188, 146, 62, 0.5);
    /* Neon Border */
    background: rgba(255, 255, 255, 0.05);
}

/* Glass Shine Effect on Hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.service-card:hover::after {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(188, 146, 62, 0.1);
    font-size: 2.5rem;
    color: var(--gold);
    box-shadow: 0 0 20px rgba(188, 146, 62, 0.1);
    transition: all 0.3s ease;
    transform: translateZ(20px);
    /* Pop out in 3D */
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(188, 146, 62, 0.4);
    /* Neon Glow */
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    transform: translateZ(10px);
}

.service-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    transform: translateZ(0px);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: auto;
    position: relative;
    padding-bottom: 2px;
    transform: translateZ(10px);
}

.service-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: 0.3s;
}

.service-link:hover::before {
    width: 100%;
}

/* ============================================
   Projects Grid (Glassmorphism)
   ============================================ */
.projects-section {
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(188, 146, 62, 0.3);
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 42, 66, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay svg {
    color: var(--gold);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
}

.project-title a {
    color: var(--text-primary);
}

.project-title a:hover {
    color: var(--gold);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section {
    background: var(--navy);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: var(--text-muted);
}

.star.filled {
    color: var(--gold);
}

.testimonial-content {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(188, 146, 62, 0.1);
    color: var(--gold);
    font-weight: 600;
    font-size: 1.2rem;
}

/* ============================================
   Magnetic Cursor
   ============================================ */
body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled input,
body.custom-cursor-enabled textarea {
    cursor: none !important;
}

#cursor-dot,
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

#cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(188, 146, 62, 0.5);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

#cursor-ring.clicking {
    width: 30px;
    height: 30px;
    background: rgba(188, 146, 62, 0.2);
}

#cursor-ring.hover-active {
    width: 60px;
    height: 60px;
    background: rgba(188, 146, 62, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(188, 146, 62, 0.2);
}

#cursor-dot.hover-active {
    display: none;
    /* Hide dot inside ring on hover for cleaner look */
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(22, 42, 66, 0.9) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cta-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(188, 146, 62, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(188, 146, 62, 0.05) 0%, transparent 20%);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   Holographic Footer
   ============================================ */
.site-footer {
    background: linear-gradient(to bottom, var(--bg-darker), #050a12);
    border-top: 1px solid rgba(188, 146, 62, 0.2);
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    margin-top: 5rem;
}

/* Top Glow Line */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 20px var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 400px;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-top: 0.5rem;
    box-shadow: 0 0 10px var(--gold);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.footer-contact-list li svg {
    color: var(--gold);
    flex-shrink: 0;
}

.footer-contact-list li a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-contact-list li a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(188, 146, 62, 0.4);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu li a {
    color: var(--text-secondary);
    transition: all 0.3s;
    display: inline-block;
}

.footer-menu li a:hover {
    color: var(--gold);
    transform: translateX(-5px);
    /* Move left on RTL */
}

body:not(.rtl) .footer-menu li a:hover {
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(188, 146, 62, 0.4);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(188, 146, 62, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(188, 146, 62, 0.4);
}

.contact-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-link,
.contact-text {
    color: var(--text-secondary);
    display: block;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--gold);
}

@media (max-width: 992px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {

    /* === CHROME FIX: Prevent horizontal scroll === */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    /* Header Fixes - Clean Main Bar */
    .header-nav {
        display: none !important;
    }

    .header-cta-btn {
        display: none !important;
    }

    .language-switcher {
        display: none !important;
    }

    .header-actions {
        gap: 0;
        margin-right: auto;
    }

    /* === RE-ENABLE MOBILE ELEMENTS HERE === */
    .mobile-menu-toggle {
        display: flex !important;
        margin-left: 0;
        margin-right: auto;
    }

    /* === OFF-CANVAS SIDEBAR (Chrome Fixed) === */
    .raaco-mobile-sidebar {
        display: block !important;
        position: fixed;
        top: 0;
        bottom: 0;
        /* EXPLICIT RTL: Force right side positioning */
        right: 0 !important;
        left: auto !important;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #0D1B2A;
        border-left: 1px solid rgba(188, 146, 62, 0.2);
        z-index: 9999;
        /* Chrome Fix: Use translate3d for GPU acceleration */
        transform: translate3d(100%, 0, 0);
        -webkit-transform: translate3d(100%, 0, 0);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Chrome Fix: Force GPU layer */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
    }

    /* Hide scrollbar */
    .raaco-mobile-sidebar::-webkit-scrollbar {
        width: 4px;
        display: none;
    }

    .raaco-mobile-sidebar.active {
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
    }

    /* Overlay Backdrop */
    .sidebar-overlay {
        display: block !important;
        /* Override global hide */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Sidebar Header */
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sidebar-logo img {
        height: 40px;
        width: auto;
    }

    .sidebar-close {
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 5px;
        display: flex;
    }

    /* Sidebar Content */
    .sidebar-content {
        padding: 0 1.5rem;
        padding-bottom: 2rem;
        /* Natural flow, no internal scroll */
    }

    /* === CLEAN, FLAT MOBILE MENU (User Requested) === */
    .mobile-menu-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .mobile-menu-list li {
        width: 100%;
        display: block;
        /* Subtle separator */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
    }

    /* Main High-Level Links */
    .mobile-menu-list>li>a {
        display: block;
        padding: 16px 0;
        font-size: 1.1rem;
        color: #fff !important;
        font-weight: 500;
        text-align: right;
        transition: color 0.2s;
    }

    .mobile-menu-list>li>a:hover {
        color: var(--gold) !important;
    }

    /* === SUB-MENUS: FLAT & INDENTED (No Boxes) === */
    .mobile-menu-list .sub-menu {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        /* No background */
        box-shadow: none !important;
        /* No shadow */
        border: none !important;
        /* No border */
        padding: 0;
        margin: 0;
        list-style: none;
        padding-right: 15px;
        /* Indent for hierarchy (RTL) */
    }

    .mobile-menu-list .sub-menu li {
        border-bottom: none;
        /* Cleaner look for children */
    }

    .mobile-menu-list .sub-menu li a {
        padding: 10px 0;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.6) !important;
        font-weight: 400;
        transition: color 0.2s, transform 0.2s;
        display: block;
    }

    .mobile-menu-list .sub-menu li a::before {
        content: '- ';
        /* Text bullet instead of icon */
        opacity: 0.5;
        margin-left: 5px;
    }

    .mobile-menu-list .sub-menu li a:hover {
        color: var(--gold) !important;
        transform: translateX(-5px);
    }

    /* Sidebar Footer */
    .sidebar-footer {
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .sidebar-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px;
        border-radius: 8px;
        font-weight: 700;
        text-decoration: none;
    }

    .sidebar-lang-btn {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-quote-btn {
        background: linear-gradient(135deg, #BC923E 0%, #8C6A28 100%);
        color: #000;
        border: none;
    }

    /* Helper Class for Body Lock */
    body.menu-open {
        overflow: hidden;
    }

    /* Fix Testimonials/Grid on Mobile (Now correctly inside media query) */

    /* Fix Testimonials/Grid on Mobile */
    .raaco-grid,
    .about-grid,
    .footer-grid,
    .contact-cards,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        width: 100%;
    }

    .testimonial-card {
        width: 100% !important;
        margin-bottom: 1rem;
    }

    /* Hero Fixes */
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-content {
        padding-top: 7rem;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Footer Fixes */
    .footer-social {
        justify-content: center;
    }

    .footer-menu,
    .footer-contact-list {
        align-items: center;
    }

    .footer-title::after {
        margin: 0.5rem auto 0;
    }
}

/* ========================================= */
/* === FINAL HEADER FIXES (Desktop & Mobile) === */
/* ========================================= */

/* 1. DESKTOP: Strictly Hide Mobile Elements (Ghosting Fix) */
@media (min-width: 993px) {

    .raaco-mobile-sidebar,
    .sidebar-overlay,
    .mobile-menu-toggle,
    .sidebar-close {
        display: none !important;
    }
}

/* 2. MOBILE: Header Layout Refinement (Logo + Lang + Toggle) */
@media (max-width: 992px) {

    /* Hide Desktop Nav (Just in case) */
    .header-nav {
        display: none !important;
    }

    /* Hide CTA Button from Header Bar */
    .header-cta-btn {
        display: none !important;
    }

    /* Reset Header Actions to Allow Positioning */
    .header-actions {
        position: static !important;
        width: auto !important;
        margin-right: auto !important;
        gap: 0 !important;
    }

    /* Language Switcher: Position Next to Logo (Right side in RTL) */
    .language-switcher {
        display: flex !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        /* RTL: Logo is Right. Lang Left of Logo. */
        right: 90px !important;
        /* Adjust based on Logo width */
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 4px !important;
        border-radius: 6px !important;
        left: auto !important;
        z-index: 20;
    }

    /* Icon Only */
    .language-switcher span {
        display: none !important;
    }

    .language-switcher svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* LTR Support (Flip Position) */
    html[dir="ltr"] .language-switcher {
        right: auto !important;
        left: 90px !important;
    }

    /* Ensure Toggle is Visible and positioned correctly */
    .mobile-menu-toggle {
        display: flex !important;
        margin-left: 0 !important;
        z-index: 20;
    }
}

/* ========================================= */
/* === FOOTER ALIGNMENT FIX (MOBILE) === */
/* User Request: Strict Separation */
/* ARABIC: Right Align */
/* ENGLISH: Left Align */
/* ========================================= */

@media (max-width: 992px) {

    /* === 1. ARABIC (RTL / DEFAULT) === */
    /* Target columns 2 & 3 (Contact & Links) */
    .footer-col:not(.footer-about-col) {
        text-align: right !important;
        direction: rtl !important;
        align-items: flex-start !important;
    }

    /* Force inner elements to RTL/Right */
    .footer-col:not(.footer-about-col) .footer-title,
    .footer-col:not(.footer-about-col) p,
    .footer-col:not(.footer-about-col) a {
        text-align: right !important;
        direction: rtl !important;
    }

    .footer-menu,
    .footer-contact-list {
        align-items: flex-start !important;
        width: 100%;
        direction: rtl !important;
        text-align: right !important;
    }

    .footer-menu li,
    .footer-contact-list li {
        width: 100%;
        justify-content: flex-start !important;
        flex-direction: row !important;
        direction: rtl !important;
        text-align: right !important;
    }

    .footer-contact-list svg {
        margin-left: 10px !important;
        margin-right: 0 !important;
    }

    /* Title Underline: Push to Right side */
    .footer-col:not(.footer-about-col) .footer-title::after {
        margin: 0.5rem 0 0 auto !important;
        margin-right: 0 !important;
        right: 0 !important;
        left: auto !important;
    }

    /* === 2. ENGLISH (LTR) === */
    /* Use explicit Lang selector to OVERRIDE default */
    html[lang="en-US"] .footer-col:not(.footer-about-col),
    html[lang="en"] .footer-col:not(.footer-about-col) {
        text-align: left !important;
        align-items: flex-start !important;
        /* Start is Left in LTR */
        direction: ltr !important;
    }

    html[lang="en-US"] .footer-menu,
    html[lang="en-US"] .footer-contact-list,
    html[lang="en"] .footer-menu,
    html[lang="en"] .footer-contact-list {
        align-items: flex-start !important;
        direction: ltr !important;
    }

    html[lang="en-US"] .footer-contact-list li,
    html[lang="en"] .footer-contact-list li {
        justify-content: flex-start !important;
    }

    /* Title Underline: Push to LEFT side */
    html[lang="en-US"] .footer-col:not(.footer-about-col) .footer-title::after,
    html[lang="en"] .footer-col:not(.footer-about-col) .footer-title::after {
        margin: 0.5rem auto 0 0 !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        left: 0 !important;
        right: auto !important;
    }
}

/* ============================================
   HERO VIDEO BACKGROUND SUPPORT
   ============================================ */
.hero-video,
.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure video doesn't interfere with content */
.hero-video {
    pointer-events: none;
}

/* Performance: Disable video on small screens */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
}

/* ============================================
   PARTICLES & ANIMATED BACKGROUNDS
   ============================================ */

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Allow interaction with particles */
.hero-bg-particles .particles-container {
    pointer-events: auto;
}

/* Dimmed background image (for particles overlay) */
.hero-image-dimmed {
    opacity: 0.3;
    filter: brightness(0.4);
}

/* Animated Gradient Background */
.animated-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg,
            #0D1B2A,
            #162A42,
            #1e3a5f,
            #0D1B2A);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    z-index: 0;
}

/* Add gold glow spots to gradient */
.animated-gradient-bg::before,
.animated-gradient-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float-glow 10s ease-in-out infinite;
}

.animated-gradient-bg::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(188, 146, 62, 0.6), transparent);
    top: 20%;
    right: 10%;
}

.animated-gradient-bg::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(188, 146, 62, 0.4), transparent);
    bottom: 20%;
    left: 10%;
    animation-delay: -5s;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float-glow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.9);
    }

    75% {
        transform: translate(-30px, -10px) scale(1.05);
    }
}

/* ============================================
   Tremoloo-style Scroll Effect (Particles Only)
   Hero shorter + About section preview with glow
   ============================================ */

/* Shorter Hero for Particles Mode */
.hero-bg-particles.hero-tremoloo-mode {
    min-height: 75vh !important;
    height: 75vh !important;
    margin-bottom: 0;
}

.hero-bg-particles.hero-tremoloo-mode .hero-container {
    padding-top: 100px;
    padding-bottom: 80px;
}

/* About Section inherits hero background in Particles Mode */
.about-section.tremoloo-preview {
    position: relative;
    background: transparent !important;
    transform: scale(0.92);
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.95;
    margin-top: -20px;
    z-index: 2;
    will-change: transform, opacity;
    overflow: visible !important;
    /* Prevent clipping of the beam */
}

/* Wrapper to extend hero background behind about section */
body.tremoloo-active {
    --tremoloo-bg: #0D1B2A;
}

/* About section container background override for particles mode */
.about-section.tremoloo-preview .container {
    position: relative;
    z-index: 2;
}

/* Subtle glow line at top of About section */
.about-section.tremoloo-preview::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    /* Pure light beam, fading out at ends */
    background: radial-gradient(ellipse at center,
            rgba(188, 146, 62, 1) 0%,
            rgba(188, 146, 62, 0.4) 50%,
            rgba(188, 146, 62, 0) 80%);
    /* Intense local glow only */
    filter: drop-shadow(0 0 5px rgba(188, 146, 62, 0.8)) drop-shadow(0 0 15px rgba(188, 146, 62, 0.4));
    box-shadow: none;
    transition: opacity 0.6s ease;
    z-index: 10;
    opacity: 1;
}

/* Ensure Title/Content are ALWAYS VISIBLE in Preview Mode */
.about-section.tremoloo-preview .section-title,
.about-section.tremoloo-preview .section-subtitle,
.about-section.tremoloo-preview .about-text {
    opacity: 1 !important;
    transform: none !important;
}

/* Glow overlay REMOVED to prevent boxy look */
.about-section.tremoloo-preview::after {
    display: none;
}

/* When scrolled - full size with smooth transition */
.about-section.tremoloo-expanded {
    transform: scale(1);
    opacity: 1;
    margin-top: 0;
}

.about-section.tremoloo-expanded::before,
.about-section.tremoloo-expanded::after {
    opacity: 0;
}

/* Smooth scroll indicator for Tremoloo mode */
.hero-bg-particles.hero-tremoloo-mode .scroll-indicator {
    bottom: 40px;
}

/* Shared background wrapper for seamless transition */
.tremoloo-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 150vh;
    background: var(--bg-dark, #0D1B2A);
    z-index: -1;
    pointer-events: none;
}

/* Mobile: disable Tremoloo effect completely */
@media (max-width: 768px) {
    .hero-bg-particles.hero-tremoloo-mode {
        min-height: 100vh !important;
        height: auto !important;
    }

    .about-section.tremoloo-preview {
        transform: scale(1) !important;
        margin-top: 0 !important;
        opacity: 1 !important;
        background: var(--bg-dark) !important;
    }

    .about-section.tremoloo-preview::before,
    .about-section.tremoloo-preview::after {
        display: none;
    }
}

/* ============================================
   Hero Image Entrance Animation
   Zoom-out effect on load
   ============================================ */

.hero-background {
    overflow: hidden;
    /* Ensure image doesn't spill out */
}

.hero-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    transform-origin: center center;
    /* Start slightly zoomed in and animate to normal */
    animation: hero-zoom-entrance 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform;
}

@keyframes hero-zoom-entrance {
    0% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}