/* ==========================================================================
   ORCA MARINE - MASTER DESIGN SYSTEM (style.css)
   V16.6 - CLEAR VIDEO & DYNAMIC THEME TEXT
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --orca-blue: #1266A9; 
    /* Notice: Hero variables have been removed from here to allow theme switching */
}

[data-theme="dark"] {
    --bg-main: #020c1b;
    --bg-surface: #0a192f;
    --border-main: #233554;
    --text-main: #e6f1ff;
    --text-muted: #8892b0;
    --gold-accent: #FFB800;
    --cyan-accent: #00E5FF;
    --card-btn-bg: #00E5FF; 
    --pattern-dots: radial-gradient(rgba(0, 229, 255, 0.15) 1px, transparent 1px);
    --logo-filter: brightness(0) invert(1);
    --nav-bg: rgba(2, 12, 27, 0.95);
    
    /* 1. DARK MODE HERO: Independent Controls */
    
     /* Title */
    --hero-title-color: #ffffff;
    --hero-title-shadow-color: rgba(0, 0, 0, 0.8);
    --hero-title-shadow: 2px 2px 10px var(--hero-title-shadow-color);
    --hero-title-border-color: transparent;
    --hero-title-border-width: 0px;
    
    
    /* Title Span */
    /* --hero-title-span-color: #00E5FF; */
    --hero-title-span-color: #012D75;
    /* --hero-title-span-shadow-color: rgba(0, 0, 0, 0.8); */
    --hero-title-span-shadow-color: #ffffff;
    --hero-title-span-shadow: 2px 2px 15px var(--hero-title-span-shadow-color);
    --hero-title-span-border-color: #ffffff;
    --hero-title-span-border-width: 0.5px;

    
    /* Subtitle */
    --hero-subtitle-color: #ffffff;
    --hero-subtitle-shadow-color: rgba(0, 0, 0, 0.8);
    --hero-subtitle-shadow: 2px 2px 10px var(--hero-subtitle-shadow-color);
    --hero-subtitle-border-color: transparent;
    --hero-subtitle-border-width: 0px;
    
    --wave-layer-1: rgba(0, 229, 255, 0.20); 
    --wave-layer-2: rgba(18, 102, 169, 0.40); 
    --wave-layer-3: rgba(10, 25, 47, 0.70); 
    --wave-layer-4: var(--bg-surface); 
    --wave-layer-internal: var(--bg-main); 
}

[data-theme="light"] {
    --bg-main: #f0f4f8; 
    --bg-surface: #ffffff;
    --border-main: #cbd5e1;
    --text-main: #0f172a; 
    --text-muted: #475569;
    --gold-accent: #d97706; 
    --cyan-accent: #0284c7; 
    --card-btn-bg: #0284c7; 
    --pattern-dots: radial-gradient(rgba(2, 132, 199, 0.1) 1px, transparent 1px);
    --logo-filter: none;
    --nav-bg: rgba(255, 255, 255, 0.95);
    
    /* 2. LIGHT MODE HERO: Independent Controls */
    
    /* Title */
    --hero-title-color: #ffffff;
    --hero-title-shadow-color: rgba(0, 0, 0, 0.8);
    --hero-title-shadow: 2px 2px 10px var(--hero-title-shadow-color);
    --hero-title-border-color: transparent;
    --hero-title-border-width: 0px;
    
    /* Title Span */
    /* --hero-title-span-color: #00E5FF; */
    --hero-title-span-color: #012D75;
    /* --hero-title-span-shadow-color: rgba(0, 0, 0, 0.8); */
    --hero-title-span-shadow-color: #ffffff;
    --hero-title-span-shadow: 2px 2px 15px var(--hero-title-span-shadow-color);
    --hero-title-span-border-color: #ffffff;
    --hero-title-span-border-width: 0.5px;

    
    /* Subtitle */
    --hero-subtitle-color: #ffffff;
    --hero-subtitle-shadow-color: rgba(0, 0, 0, 0.8);
    --hero-subtitle-shadow: 2px 2px 10px var(--hero-subtitle-shadow-color);
    --hero-subtitle-border-color: transparent;
    --hero-subtitle-border-width: 0px;
    
    --wave-layer-1: rgba(2, 132, 199, 0.20); 
    --wave-layer-2: rgba(18, 102, 169, 0.35); 
    --wave-layer-3: rgba(255, 255, 255, 0.65); 
    --wave-layer-4: var(--bg-surface); 
    --wave-layer-internal: var(--bg-main); 
}

/* --- RESETS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-main); background-color: var(--bg-main); line-height: 1.6; overflow-x: hidden; background-image: var(--pattern-dots); background-size: 20px 20px; background-position: center; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: 1px; color: var(--text-main); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img, picture { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 4%; }
.section-padding { padding: 100px 0; border-bottom: 1px solid var(--border-main); background: var(--bg-main); backdrop-filter: blur(5px); }

/* --- CORE ANIMATIONS & PRELOADER --- */
.bobbing { animation: float-bob 4s ease-in-out infinite; }
@keyframes float-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
#preloader { position: fixed; inset: 0; z-index: 9999; background-color: var(--bg-main); display: flex; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
#preloader.fade-out { opacity: 0; visibility: hidden; }
.loader-content { display: flex; flex-direction: column; align-items: center; }
.loader-logo { width: 180px; filter: var(--logo-filter); animation: pulseLogo 2s infinite ease-in-out; margin-bottom: 30px; }
.loader-bar { width: 200px; height: 3px; background: rgba(128,128,128,0.2); border-radius: 3px; overflow: hidden; position: relative; }
.loader-progress { position: absolute; top: 0; left: 0; height: 100%; width: 40%; background: var(--cyan-accent); border-radius: 3px; animation: slideBar 1.5s infinite ease-in-out; }
@keyframes pulseLogo { 0%, 100% { transform: scale(0.95); opacity: 0.7; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes slideBar { 0% { left: -40%; } 100% { left: 100%; } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.sub-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--orca-blue); margin-bottom: 10px; display: block; font-weight: 600; }
.section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.section-header h2 { font-size: clamp(3rem, 5vw, 5rem); }
.section-header i { font-size: 4rem; color: var(--cyan-accent); }

/* --- GLOBAL CORE ELEMENTS --- */
.social-sidebar { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 20px; z-index: 1000; }
.social-sidebar a { color: var(--gold-accent); font-size: 16px; opacity: 0.5; display: inline-block; }
.social-sidebar a:hover { opacity: 1; transform: scale(1.2); }
.rotating-badge { position: fixed; bottom: 30px; right: 30px; width: 100px; height: 100px; z-index: 900; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.badge-inner { position: absolute; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; z-index: 2; animation: badge-pulse 3s infinite ease-in-out; }
.badge-logo-mask { width: 100%; height: 100%; background-color: var(--cyan-accent); -webkit-mask: url('images/ORCA_LOGO_01.png') no-repeat center / contain; mask: url('images/ORCA_LOGO_01.png') no-repeat center / contain; opacity: 0.9; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); }
.rotating-text { position: absolute; width: 100%; height: 100%; z-index: 1; animation: rotate 15s linear infinite; }
.rotating-text text { fill: var(--cyan-accent); }
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes badge-pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }

/* --- NAVIGATION DESIGN --- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 4%; display: flex; justify-content: space-between; align-items: center; z-index: 2000; background: linear-gradient(to bottom, var(--nav-bg) 0%, transparent 100%); transition: all 0.4s ease; }
.navbar.scrolled { background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-main); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.nav-brand img, .footer-logo { height: 50px; filter: var(--logo-filter); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-link { font-family: var(--font-heading); font-size: 20px; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; position: relative; color: var(--text-main); }
.nav-link:hover, .nav-link.active { color: var(--cyan-accent); cursor: pointer; }
.theme-toggle { background: transparent; border: none; color: var(--text-main); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { color: var(--cyan-accent); transform: rotate(15deg) scale(1.1); }
.btn-quote { background: var(--gold-accent); color: #020c1b !important; font-family: var(--font-heading); font-size: 18px; letter-spacing: 1px; padding: 10px 25px; border-radius: 50px; display: flex; align-items: center; gap: 10px; box-shadow: 0 0 15px rgba(255, 184, 0, 0.3); font-weight: 600; white-space: nowrap; }
.btn-quote:hover { background: var(--orca-blue); color: #ffffff !important; box-shadow: 0 0 25px rgba(18, 102, 169, 0.4); }

/* --- COMPACT NESTED DROPDOWNS --- */
.nav-dropdown { position: relative; display: flex; align-items: center; height: 100%; padding: 10px 0; }
.dropdown-menu { position: absolute; top: 100%; left: -15px; background: var(--nav-bg); backdrop-filter: blur(10px); min-width: 260px; border: 1px solid var(--border-main); border-top: 3px solid var(--cyan-accent); border-radius: 0 0 8px 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; padding: 15px 0; z-index: 2500; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { font-family: var(--font-heading); font-size: 13px; color: var(--orca-blue); letter-spacing: 1.5px; padding: 5px 20px; margin-top: 5px; pointer-events: none; }
.dropdown-header:first-child { margin-top: 0; }
.dropdown-divider { height: 1px; background: var(--border-main); margin: 8px 20px; opacity: 0.5; }
.dropdown-item { padding: 8px 20px; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-muted); position: relative; display: block; }
.dropdown-item::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--cyan-accent); transform: scaleY(0); transition: transform 0.2s ease; }
.dropdown-item:hover { color: var(--cyan-accent); background: linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0%, transparent 100%); padding-left: 25px; }
.dropdown-item:hover::before { transform: scaleY(1); }

/* --- MOBILE LAYOUT STRUCTURES --- */
.mobile-nav-controls { display: none; gap: 20px; align-items: center; }
.mobile-menu-toggle { background: transparent; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; }
.mobile-nav-overlay { position: fixed; inset: 0; background: var(--bg-main); z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; backdrop-filter: blur(10px); }
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-close { position: absolute; top: 30px; right: 4%; background: transparent; border: none; color: var(--text-main); font-size: 30px; cursor: pointer; }
.mobile-nav-content { text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; }
.mobile-nav-logo { height: 60px; filter: var(--logo-filter); margin-bottom: 40px; }
.mobile-links { display: flex; flex-direction: column; gap: 25px; align-items: center; }
.mobile-links .nav-link { font-size: 28px; }
.mobile-dropdown { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mobile-dropdown-menu { display: flex; flex-direction: column; gap: 15px; margin-top: 0; padding-top: 0; align-items: center; width: 100%; max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.mobile-dropdown-menu.active { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(128, 128, 128, 0.2); max-height: 400px; opacity: 1; }
.mobile-dropdown-item { font-size: 16px; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; }
.mobile-dropdown-item:hover { color: var(--cyan-accent); }

/* ==========================================================================
   CINEMATIC HERO (WITH PER-SLIDE VIDEO & TEXT SYNC)
   ========================================================================== */
.cinematic-hero { 
    position: relative; 
    width: 100%; 
    height: 100vh; 
    min-height: 650px; 
    overflow: hidden; 
    border-bottom: 1px solid var(--border-main); 
    background-color: #020c1b; 
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background-image: var(--pattern-dots), var(--hero-overlay); 
    background-size: 20px 20px, cover; 
    z-index: 4; 
    pointer-events: none; 
}

/* SLIDE BASE ANIMATION */
.cinematic-slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    visibility: hidden; 
    z-index: 1; 
    transition: opacity 1s ease-in-out, visibility 1s; 
    pointer-events: none; 
}

.cinematic-slide.active { 
    opacity: 1; 
    visibility: visible; 
    z-index: 3; 
}

/* SLIDE VIDEO ZOOM FX */
.slide-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    transform: scale(1);
    transition: transform 10s linear; 
}

/* When slide is active, slowly zoom the video in */
.cinematic-slide.active .slide-video-bg {
    transform: scale(1.08); 
}

.slide-content { 
    position: relative; 
    z-index: 5; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    height: 100%; 
    padding: 0 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* TEXT OVERLAP FIX: INSTANT HIDE WHEN INACTIVE */
.hero-title { 
    font-size: clamp(3.5rem, 9vw, 8.5rem); 
    line-height: 0.9; 
    margin-bottom: 15px; 
    letter-spacing: 2px; 
    color: var(--hero-title-color); 
    text-shadow: var(--hero-title-shadow); 
    -webkit-text-stroke: var(--hero-title-border-width) var(--hero-title-border-color);
    transform: translateY(50px); 
    opacity: 0; 
    transition: none; 
}

.hero-title span { 
    color: var(--hero-title-span-color); 
    text-shadow: var(--hero-title-span-shadow);
    -webkit-text-stroke: var(--hero-title-span-border-width) var(--hero-title-span-border-color);
}

.hero-subtitle { 
    font-size: clamp(0.9rem, 1.8vw, 1.15rem); 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    font-weight: 600; 
    max-width: 700px; 
    margin: 0 auto; 
    color: var(--hero-subtitle-color); 
    text-shadow: var(--hero-subtitle-shadow); 
    -webkit-text-stroke: var(--hero-subtitle-border-width) var(--hero-subtitle-border-color);
    transform: translateY(30px); 
    opacity: 0; 
    transition: none; 
}

/* DELAYED FADE-IN WHEN ACTIVE */
.cinematic-slide.active .hero-title { 
    transform: translateY(0); 
    opacity: 1;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, opacity 1s ease 0.5s; 
}

.cinematic-slide.active .hero-subtitle { 
    transform: translateY(0); 
    opacity: 1; 
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s, opacity 1s ease 0.8s; 
}

.slider-controls { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 10; }
.progress-track { width: 60px; height: 3px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; position: relative; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.progress-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: var(--cyan-accent); }
.progress-track.active .progress-fill { width: 100%; transition: width 8s linear; }

/* --- MARQUEE --- */
.marquee-wrapper { background: var(--gold-accent); color: #020c1b; padding: 15px 0; overflow: hidden; white-space: nowrap; transform: rotate(-1.5deg) scale(1.02); margin: 60px 0 0; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.marquee-content { display: inline-block; animation: marquee 25s linear infinite; font-family: var(--font-heading); font-size: 3rem; letter-spacing: 2px; }
.marquee-wrapper:hover .marquee-content { animation-play-state: paused; cursor: default; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- STATS COUNTER --- */
.stats-section { padding-top: 80px; padding-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-box { padding: 20px; background: var(--bg-surface); border: 1px solid var(--border-main); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.stat-box:hover { transform: translateY(-10px); border-color: var(--cyan-accent); box-shadow: 0 15px 35px rgba(0,229,255,0.1); }
.stat-icon { font-size: 2.5rem; color: var(--orca-blue); margin-bottom: 15px; }
.stat-number-wrapper { font-family: var(--font-heading); font-size: 3.5rem; color: var(--text-main); line-height: 1; margin-bottom: 5px; }
.stat-suffix { color: var(--cyan-accent); }
.stat-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }

/* --- CAROUSEL & CRITICAL 3D FLIP STABILIZATION --- */
.services-carousel-wrapper { position: relative; padding: 0 60px; margin-top: 40px; }
.services-track-container { overflow: hidden; padding-bottom: 40px; } 
.services-track { display: flex; gap: 25px; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.service-card { flex: 0 0 calc(33.333% - 16.66px); min-height: 420px; perspective: 1000px; -webkit-perspective: 1000px; background: transparent; }
.service-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); transform-style: preserve-3d; -webkit-transform-style: preserve-3d; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.service-card:hover .service-card-inner { transform: rotateY(180deg); -webkit-transform: rotateY(180deg); box-shadow: 0 15px 35px rgba(0, 229, 255, 0.2); }
.service-card-front, .service-card-back { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; padding: 35px 30px; }
.service-card-front { background: var(--bg-surface); border: 1px solid var(--border-main); justify-content: flex-end; transform: rotateY(0deg) translateZ(1px); -webkit-transform: rotateY(0deg) translateZ(1px); }
.service-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.service-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,12,27,0.95) 0%, rgba(2,12,27,0.4) 40%, transparent 100%); z-index: 1; }
.service-card-front .service-num { font-family: var(--font-heading); font-size: 2.5rem; color: rgba(255, 255, 255, 0.4); margin-bottom: 15px; position: relative; z-index: 2; }
.service-card-front .service-title { font-size: 2.2rem; line-height: 1.1; margin-bottom: 15px; position: relative; z-index: 2; color: #ffffff; }
.service-card-back { background: var(--bg-surface); border: 1px solid var(--cyan-accent); transform: rotateY(180deg) translateZ(1px); -webkit-transform: rotateY(180deg) translateZ(1px); justify-content: center; align-items: center; text-align: center; }
.back-icon { font-size: 3.5rem; color: var(--cyan-accent); margin-bottom: 25px; }
.service-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.7; font-weight: 500; }
.service-btn { background: var(--cyan-accent); color: #020c1b; padding: 12px 28px; border-radius: 50px; text-transform: uppercase; font-size: 13px; font-weight: 700; display: inline-block; }
.service-btn:hover { background: var(--orca-blue); color: #ffffff; box-shadow: 0 8px 20px rgba(18, 102, 169, 0.4); transform: translateY(-3px); }

.carousel-btn { position: absolute; top: 45%; transform: translateY(-50%); width: 45px; height: 45px; background: var(--bg-surface); border: 1px solid var(--border-main); color: var(--cyan-accent); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 10; font-size: 18px; }
.carousel-btn:hover { background: var(--orca-blue); color: #ffffff; border-color: var(--orca-blue); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 0; }
.next-btn { right: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-main); cursor: pointer; }
.dot.active { background: var(--cyan-accent); transform: scale(1.3); }

/* --- CTA BANNER --- */
.cta-banner { 
    position: relative; 
    width: 100%; 
    padding: 240px 0 220px; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    z-index: 1; 
}

.cta-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    z-index: -2; 
}

.cta-video-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    z-index: -1; 
    pointer-events: none; 
}

.cta-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(90deg, rgba(2, 12, 27, 0.8) 0%, rgba(2, 12, 27, 0.2) 60%, transparent 100%); 
    z-index: 2; 
    pointer-events: none; 
}

.cta-container { 
    position: relative; 
    z-index: 5; 
    width: 100%; 
}

.cta-content { max-width: 600px; }
.cta-sub { font-family: var(--font-body); font-size: 1.5rem; color: #ffffff; font-weight: 300; letter-spacing: 1px; display: block; margin-bottom: 5px; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
.cta-title { font-family: var(--font-heading); font-size: clamp(4rem, 8vw, 6.5rem); color: #ffffff; line-height: 1; margin-bottom: 35px; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.cta-btn { display: inline-flex; align-items: center; gap: 12px; background: #D32F2F; color: #ffffff !important; font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; padding: 16px 40px; border-radius: 50px; box-shadow: 0 10px 20px rgba(211, 47, 47, 0.4); }
.cta-btn i { transition: transform 0.3s ease; }
.cta-btn:hover { background: var(--orca-blue); transform: translateY(-3px); box-shadow: 0 15px 25px rgba(18, 102, 169, 0.5); }
.cta-btn:hover i { transform: translateX(5px); }

/* --- HIGH-VISIBILITY COMPOSITE WAVES --- */
.wave-divider { 
    position: absolute; 
    left: 0; 
    width: 100%; 
    overflow: hidden; 
    line-height: 0; 
    z-index: 3; 
    pointer-events: none;
}
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; transform: rotate(180deg); }
.ocean-waves { position: relative; width: 100%; height: 15vh; min-height: 100px; max-height: 200px; }
.wave-parallax > use { animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite; }
.wave-parallax > use:nth-child(1) { fill: var(--wave-layer-1); animation-delay: -2s; animation-duration: 9s; }
.wave-parallax > use:nth-child(2) { fill: var(--wave-layer-2); animation-delay: -3s; animation-duration: 12s; }
.wave-parallax > use:nth-child(3) { fill: var(--wave-layer-3); animation-delay: -4s; animation-duration: 16s; }
.wave-bottom .wave-parallax > use:nth-child(4) { fill: var(--wave-layer-4); animation-delay: -5s; animation-duration: 22s; }
.wave-top .wave-parallax > use:nth-child(4) { fill: var(--bg-main); animation-delay: -5s; animation-duration: 22s; }
.internal-hero .wave-bottom .wave-parallax > use:nth-child(4) { fill: var(--wave-layer-internal); }
@keyframes move-forever { 0% { transform: translate3d(-90px, 0, 0); } 100% { transform: translate3d(85px, 0, 0); } }

/* --- FOOTER LAYOUT --- */
.footer { padding: 70px 0 30px; background: var(--bg-surface); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-heading { font-size: 2rem; margin-bottom: 20px; color: var(--gold-accent); }
.footer-links li { margin-bottom: 10px; font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.footer-links a:hover { color: var(--cyan-accent); }

/* ==========================================================================
   INTERNAL CONTENT INFRASTRUCTURE
   ========================================================================== */
.internal-hero { position: relative; width: 100%; height: 45vh; min-height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: #020c1b; }
.internal-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; }
.internal-hero-content { position: relative; z-index: 3; text-align: center; margin-top: 50px; }
.page-title { font-size: clamp(3rem, 6vw, 5rem); color: var(--hero-title-color); text-shadow: var(--hero-title-shadow); line-height: 1; margin-bottom: 15px; letter-spacing: 2px; }
.page-title span { color: var(--cyan-accent); }
.breadcrumbs { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-accent); }
.breadcrumbs a { color: #ffffff; text-shadow: var(--hero-title-shadow); }
.breadcrumbs a:hover { color: var(--cyan-accent); }
.breadcrumbs i { font-size: 10px; color: rgba(255,255,255,0.6); }
.internal-content-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.main-article { font-size: 1.1rem; line-height: 1.8; color: var(--text-muted); }
.main-article h2 { font-size: 2.8rem; color: var(--text-main); margin-bottom: 25px; line-height: 1.1; }
.main-article p { margin-bottom: 25px; }

/* --- BENTO GRID COMPONENTS --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.cat-card.image-card { background: var(--bg-surface); border: 1px solid var(--border-main); border-radius: 12px; text-align: center; overflow: hidden; display: flex; flex-direction: column; padding: 0; position: relative; }
.cat-card.image-card:hover { transform: translateY(-8px); border-color: var(--cyan-accent); box-shadow: 0 15px 35px rgba(0,229,255,0.1); }
.cat-card.image-card::before { content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); transition: 0.8s ease-in-out; z-index: 5; pointer-events: none; }
.cat-card.image-card:hover::before { left: 200%; }
.cat-image-wrapper { position: relative; width: 100%; height: 220px; overflow: hidden; }
.cat-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.cat-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 12, 27, 0.95) 0%, rgba(2, 12, 27, 0.1) 100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; opacity: 0.8; }
.cat-img-overlay i { font-size: 2.2rem; color: var(--cyan-accent); transition: transform 0.4s ease, color 0.4s ease; }
.cat-card.image-card:hover .cat-img { transform: scale(1.15); }
.cat-card.image-card:hover .cat-img-overlay { opacity: 1; }
.cat-card.image-card:hover .cat-img-overlay i { color: var(--gold-accent); transform: translateY(-5px); }
.cat-content { padding: 30px 25px; flex-grow: 1; display: flex; flex-direction: column; }
.cat-content .cat-title { font-family: var(--font-heading); font-size: 2rem; color: var(--text-main); margin-bottom: 12px; letter-spacing: 1px; }

/* --- APP SIDEBAR SYSTEM --- */
.internal-sidebar { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 120px; }
.sidebar-widget { background: var(--bg-surface); border: 1px solid var(--border-main); border-radius: 12px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.quality-widget { border-top: 4px solid var(--cyan-accent); background: linear-gradient(180deg, rgba(18, 102, 169, 0.05) 0%, transparent 100%); position: relative; overflow: hidden; }
.widget-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.widget-header h3 { margin-bottom: 0; font-size: 1.8rem; color: var(--cyan-accent); }
.pulse-shield { color: var(--cyan-accent); font-size: 20px; position: relative; display: flex; align-items: center; justify-content: center; }
.pulse-shield::before { content: ''; position: absolute; width: 30px; height: 30px; background: var(--cyan-accent); border-radius: 50%; opacity: 0.3; animation: pulse 2s infinite ease-out; z-index: -1; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.widget-lead { font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(128, 128, 128, 0.2); color: var(--text-muted); }
.advanced-sidebar-list { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.advanced-sidebar-list li { display: flex; align-items: center; gap: 15px; padding: 8px; border-radius: 8px; transition: background 0.3s ease, transform 0.3s ease; }
.advanced-sidebar-list li:hover { background: rgba(18, 102, 169, 0.08); transform: translateX(5px); }
.icon-box { min-width: 36px; height: 36px; background: var(--bg-surface); border: 1px solid rgba(128, 128, 128, 0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gold-accent); font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.advanced-sidebar-list li:hover .icon-box { background: var(--cyan-accent); color: #fff; border-color: var(--cyan-accent); }
.list-content { display: flex; flex-direction: column; }
.list-content strong { font-size: 0.9rem; color: var(--text-main); letter-spacing: 0.5px; }
.list-content span { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.contact-widget { background: linear-gradient(270deg, var(--bg-surface), rgba(18, 102, 169, 0.15), var(--bg-surface)); background-size: 400% 400%; animation: GradientFlow 8s ease infinite; border-color: var(--orca-blue); text-align: center; }
.contact-widget h3 { color: var(--text-main); font-size: 1.8rem; }
.contact-widget p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
@keyframes GradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* --- RESPONSIVE ADAPTATIONS --- */
@media (max-width: 1024px) {
    .social-sidebar, .rotating-badge { display: none !important; }
    .nav-links, .desktop-quote { display: none !important; } 
    .mobile-nav-controls { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .service-card { flex: 0 0 calc(50% - 12.5px); } 
    .internal-content-wrapper { grid-template-columns: 1fr; }
    .internal-sidebar { position: relative; top: 0; }
}
@media (max-width: 768px) {
    .services-carousel-wrapper { padding: 0 40px; }
    .service-card { flex: 0 0 100%; } 
    .cta-banner { padding: 150px 0 150px; text-align: center; }
    .cta-content { margin: 0 auto; }
    .cta-overlay { background: rgba(2, 12, 27, 0.6); } 
    .ocean-waves { height: 80px; } 
    .internal-hero { height: 35vh; min-height: 300px; }
    .page-title { font-size: 2.5rem; }
}
/* --- HERO VIDEO LOADER --- */
.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5; /* Sits above the video (z-index: 1 or 2), below the text content (z-index: 10) */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active class toggled by JavaScript */
.video-loader.active {
    opacity: 1;
    visibility: visible;
}

.video-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--cyan-accent, #00d4ff); /* Uses your cyan theme */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ==========================================================================
   SECTIGO TRUST SEAL - STACKING & OVERFLOW FIX
   ========================================================================== */

/* 1. Elevate the footer above the wave dividers and CTA banner */
.footer {
    position: relative;
    z-index: 9000; 
}

/* 2. Target Sectigo's dynamically generated popup and force it to the front */
div[id^="tl_popup"] {
    z-index: 99999 !important;
    max-width: none !important;
}