@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --primary-black: #0D0D0D;
    --secondary-black: #1A1A1A;
    --accent-red: #FF0033;
    --text-white: #F5F5F5;
    --text-gray: #AAAAAA;
    --text-dark-gray: #333333;
    --text-medium-gray: #555555;

    /* Alpha values for dynamic background elements - These are FULL RGBA strings */
    --db-color-red-alpha: rgba(255, 0, 51, 0.65); /* Original, not directly used by new JS */
    --db-color-white-alpha: rgba(255, 255, 255, 0.55); /* Original, not directly used by new JS */
    --db-color-dark-alpha: rgba(0, 0, 0, 0.45); /* Original, not directly used by new JS */


    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --box-bg-alpha: 0.92;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--primary-black);
    transition: background-color 0.5s ease;
}

html.light-theme-overall {
    background-color: var(--text-white);
}

body {
    background-color: transparent !important;
    color: var(--text-white);
    transition: color 0.5s ease;
    position: relative;
}

body.light-text-scheme {
    color: var(--text-dark-gray);
}

/* --- Preloader --- */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary-black);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader .dot-loader {
    width: 15px; height: 15px; background-color: var(--accent-red);
    border-radius: 50%; margin: 0 5px;
    animation: preloader-bounce 1.4s infinite ease-in-out both;
}
.preloader .dot-loader:nth-child(1) { animation-delay: -0.32s; }
.preloader .dot-loader:nth-child(2) { animation-delay: -0.16s; }
@keyframes preloader-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}
.loaded .preloader { opacity: 0; visibility: hidden; }


/* General keyframes from original, not directly used by new pulse background but kept for compatibility */
@keyframes moveLeftToRight {
    0% { transform: translateX(0px); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; transform: translateX(calc(100vw + 200px));  }
    100% { transform: translateX(calc(100vw + 200px)); opacity: 0; }
}

@keyframes moveRightToLeft {
    0% { transform: translateX(0px); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; transform: translateX(calc(-100vw - 200px)); }
    100% { transform: translateX(calc(-100vw - 200px)); opacity: 0; }
}

@keyframes gentlePulse {
    0% { transform: scaleY(0.9) scaleX(0.98); }
    50% { transform: scaleY(1.1) scaleX(1.02); }
    100% { transform: scaleY(0.9) scaleX(0.98); }
}


/* --- General Content Containers --- */
.hero-section, .content-section, .main-footer {
    position: relative;
    z-index: 1;
    background-color: transparent !important;
}
.main-header {
    background-color: rgba(13, 13, 13, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0; position: fixed; width: 100%; top: 0; left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.main-header.scrolled {
    background-color: rgba(20, 20, 20, 0.9) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

/* ... (rest of your CSS: General Styles, Text Theming, Header, Hero, Content Section, Grid, Footer, Animations, Responsive) ... */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 20px 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin-bottom: 1rem; font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1.5rem; font-size: 1rem; }
a { text-decoration: none; transition: color 0.3s ease, text-shadow 0.3s ease; }
body:not(.light-text-scheme) h1, body:not(.light-text-scheme) h2, body:not(.light-text-scheme) h3, body:not(.light-text-scheme) h4, body:not(.light-text-scheme) .section-subtitle { color: var(--text-white); }
body:not(.light-text-scheme) p { color: var(--text-gray); }
body:not(.light-text-scheme) a { color: var(--accent-red); }
body:not(.light-text-scheme) a:hover { color: var(--text-white); }
body:not(.light-text-scheme) ul li { color: var(--text-gray); }
body.light-text-scheme h1, body.light-text-scheme h2, body.light-text-scheme h3, body.light-text-scheme h4, body.light-text-scheme .section-subtitle, body.light-text-scheme .privacy-subheading { color: var(--primary-black); }
body.light-text-scheme p { color: var(--text-dark-gray); }
body.light-text-scheme a { color: var(--accent-red); }
body.light-text-scheme a:hover { color: #B30023; }
body.light-text-scheme ul { list-style: disc; margin-left: 20px; padding-left: 10px; margin-bottom: 1.5rem; }
body.light-text-scheme ul li { margin-bottom: 0.75rem; color: var(--text-dark-gray); }
.accent-text, .red-dot-text { color: var(--accent-red); font-weight: bold; }
.red-dot-text::before { content: "•"; color: var(--accent-red); margin-right: 0.3em; font-size: 1.2em; display: inline-block; vertical-align: baseline; }
body:not(.light-text-scheme) .accent-text, body:not(.light-text-scheme) .red-dot-text, .text-theme-on-dark-apparent .accent-text, .text-theme-on-dark-apparent .red-dot-text { text-shadow: -0.8px -0.8px 0 var(--text-white), 0.8px -0.8px 0 var(--text-white), -0.8px 0.8px 0 var(--text-white), 0.8px 0.8px 0 var(--text-white), 0 0 7px rgba(255, 255, 255, 0.3); }
body.light-text-scheme .accent-text, body.light-text-scheme .red-dot-text, .text-theme-on-light-apparent .accent-text, .text-theme-on-light-apparent .red-dot-text { text-shadow: -0.8px -0.8px 0 var(--primary-black), 0.8px -0.8px 0 var(--primary-black), -0.8px 0.8px 0 var(--primary-black), 0.8px 0.8px 0 var(--primary-black), 0 0 7px rgba(0, 0, 0, 0.2); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0; padding-bottom: 0; }
.logo { display: flex; align-items: center; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-white); }
.logo img { width: 30px; height: 30px; margin-right: 10px; }
.main-nav ul { list-style: none; display: flex; }
.main-nav ul li { margin-left: 28px; }
.main-nav ul li a { font-family: var(--font-heading); color: var(--text-gray); font-weight: 400; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.8px; position: relative; padding: 8px 0; }
.main-nav ul li a::after { content: ''; position: absolute; bottom: 0px; left: 0; width: 0; height: 2px; background-color: var(--accent-red); transition: width 0.3s ease; }
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--text-white); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-white); font-size: 1.8rem; cursor: pointer; }
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 20px 60px; }
.hero-section::before { content: ''; position: absolute; top: 50%; left: 50%; width: clamp(300px, 60vw, 700px); height: clamp(300px, 60vw, 700px); background: radial-gradient(circle, rgba(255,0,51,0.12) 0%, rgba(255,0,51,0) 65%); transform: translate(-50%, -50%); border-radius: 50%; z-index: -2; opacity: 0.8; animation: pulse-hero-bg 12s infinite alternate ease-in-out; }
@keyframes pulse-hero-bg { 0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; } 100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.9; } }
.hero-content { position: relative; max-width: 850px; z-index: 2; }
.hero-content .subtext { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 2.5rem; line-height: 1.6; }
.hero-content .subtext span { display: block; margin-top: 0.5rem; }
.cta-button { display: inline-block; background-color: var(--accent-red); color: var(--text-white) !important; text-shadow: none !important; padding: 14px 35px; border-radius: 50px; text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease; border: 2px solid var(--accent-red); box-shadow: 0 4px 15px rgba(255,0,51,0.3); }
.cta-button:hover { transform: translateY(-4px) scale(1.03); background-color: transparent; color: var(--accent-red) !important; }
.content-section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 3.5rem; font-size: clamp(2rem, 4vw, 2.8rem); position: relative; padding-bottom: 1.2rem; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 4px; background-color: var(--accent-red); border-radius: 2px; }
.section-subtitle { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 1.7rem); margin-bottom: 1.5rem; font-weight: 600; position: relative; padding-left: 25px; }
.section-subtitle::before { content: "•"; color: var(--accent-red); font-size: 2.2rem; position: absolute; left: -8px; top: 50%; transform: translateY(-52%); line-height: 1; }
.grid-item, .mission-philosophy, .mission-statement { padding: 2rem; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.grid-item { border-left: 4px solid var(--accent-red); }
.grid-item:hover { transform: translateY(-5px); }
.mission-philosophy { margin-bottom: 2rem; border-left: 5px solid var(--accent-red); }
.mission-statement { margin-top: 2.5rem; border: 1px dashed var(--accent-red); }
.grid-item h3, .mission-philosophy h3, .mission-statement h3 { margin-bottom: 1rem; }
.mission-statement h3 { text-align: center; }
.sbs-values ul { list-style: none; padding-left: 0; }
.sbs-values li { padding: 0.8rem 0; font-size: 1.1rem; position: relative; padding-left: 25px; }
body:not(.light-text-scheme) .sbs-values li { border-bottom: 1px dashed rgba(255,255,255,0.15); }
body.light-text-scheme .sbs-values li { border-bottom: 1px dashed rgba(0,0,0,0.15); }
.sbs-values li:last-child { border-bottom: none; }
.sbs-values li::before { content: "•"; color: var(--accent-red); font-size: 1.5rem; position: absolute; left: 0; top: 50%; transform: translateY(-50%); line-height: 1; }
body:not(.light-text-scheme) .sbs-values li strong { color: var(--text-white); }
body.light-text-scheme .sbs-values li strong { color: var(--primary-black); }
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2.5rem; }
.main-footer { text-align: center; padding: 2.5rem 0; margin-top: 60px; font-size: 0.9rem; }
.main-footer::before { content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%); width: 90px; height: 4px; background: linear-gradient(90deg, transparent, var(--accent-red), transparent); border-radius: 2px; }
.text-theme-on-dark-apparent { background-color: rgba(13, 13, 13, var(--box-bg-alpha)) !important; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 2rem; }
.text-theme-on-dark-apparent, .text-theme-on-dark-apparent h1, .text-theme-on-dark-apparent h2, .text-theme-on-dark-apparent h3, .text-theme-on-dark-apparent h4, .text-theme-on-dark-apparent .section-subtitle { color: var(--text-white) !important; }
.text-theme-on-dark-apparent p { color: var(--text-gray) !important; }
.text-theme-on-dark-apparent a { color: var(--accent-red) !important; }
.text-theme-on-dark-apparent a:hover { color: var(--text-white) !important; }
.text-theme-on-dark-apparent ul li { color: var(--text-gray) !important; }
.text-theme-on-dark-apparent .sbs-values li { border-bottom: 1px dashed rgba(255,255,255,0.15) !important; }
.text-theme-on-dark-apparent .sbs-values li strong { color: var(--text-white) !important; }
.text-theme-on-light-apparent { background-color: rgba(245, 245, 245, var(--box-bg-alpha)) !important; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; padding: 2rem; }
.text-theme-on-light-apparent, .text-theme-on-light-apparent h1, .text-theme-on-light-apparent h2, .text-theme-on-light-apparent h3, .text-theme-on-light-apparent h4, .text-theme-on-light-apparent .section-subtitle, .text-theme-on-light-apparent .privacy-subheading { color: var(--primary-black) !important; }
.text-theme-on-light-apparent p { color: var(--text-dark-gray) !important; }
.text-theme-on-light-apparent a { color: var(--accent-red) !important; }
.text-theme-on-light-apparent a:hover { color: #B30023 !important; }
.text-theme-on-light-apparent ul li { color: var(--text-dark-gray) !important; }
.text-theme-on-light-apparent .sbs-values li { border-bottom: 1px dashed rgba(0,0,0,0.15) !important; }
.text-theme-on-light-apparent .sbs-values li strong { color: var(--primary-black) !important; }
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-zoom { opacity: 0; transform: scale(0.85); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-zoom.visible { opacity: 1; transform: scale(1); }
@media (max-width: 768px) { .main-header .container { flex-direction: column; align-items: flex-start; } .menu-toggle { display: block; position: absolute; top: calc(0.8rem + 6px) ; right: 20px; } .main-nav { width: 100%; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; } .main-nav.active { max-height: 500px; } .main-nav ul { flex-direction: column; width: 100%; padding-top: 1rem; } .main-nav ul li { margin-left: 0; width: 100%; text-align: left; } .main-nav ul li a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); } .main-nav ul li a::after { display: none; } .main-nav ul li:last-child a { border-bottom: none; } .hero-section { padding-top: 100px; } .content-grid { grid-template-columns: 1fr; } .section-title { margin-bottom: 2.5rem; padding-bottom: 1rem; } .section-subtitle { padding-left: 20px; } .section-subtitle::before { left: -5px; } }


/* === Pulse-line background (authoritative) =================== */
.dynamic-background{
    position:fixed;
    inset:0;
    z-index:0 !important;
    pointer-events:none;
    overflow:hidden;
}

.pulse-squiggle{
    position:absolute;
    /* left is set by JS */
    width:max-content; /* sized by JS */
    height:auto; /* Determined by SVG content height */
    /* --poly-total-length, --segment-length and --dur are set by JS */
}

.pulse-bar{ /* Optional blurred background/glow for the line */
    width:100%;
    height:100%;
    background:var(--col, rgba(255,0,51,0.65));
    border-radius:9999px;
    box-shadow: 0 0 10px var(--col-glow, rgba(255,0,51,0.25));
    filter:blur(1px);
    will-change: opacity, transform;
    animation: fadePulse var(--dur) linear forwards;
}

.pulse-wave{
    display:block;
    height:100%; 
    width:100%; 
    overflow:visible;
    will-change: opacity, transform;
    animation: fadePulse var(--dur) linear forwards;
}

.pulse-wave polyline{
    fill:none;
    stroke-linejoin:round;
    stroke-linecap:round;
    /* stroke, stroke-width, stroke-dasharray set by JS using CSS vars */
    /* --poly-total-length, --segment-length are inherited or set on polyline */
    stroke-dashoffset: calc(var(--segment-length) * -1); /* Initial state for animate-stroke */
    will-change: stroke-dashoffset;
    animation: animate-stroke var(--dur) linear forwards;
}

/* For overall visibility cycle and subtle pulse of the line element */
@keyframes fadePulse{
    0%   { opacity:0; transform:scaleX(0.97) scaleY(0.85); }
    15%  { opacity:1; transform:scaleX(1.00) scaleY(1.00); }
    50%  { opacity:1; transform:scaleX(1.03) scaleY(1.15); }
    85%  { opacity:1; transform:scaleX(1.00) scaleY(1.00); }
    100% { opacity:0; transform:scaleX(0.97) scaleY(0.85); }
}

/* For a traveling segment of the polyline stroke */
@keyframes animate-stroke {
    0% {
        /* The segment's head is at the beginning of the path (path coord 0).
           The segment has length S. Its tail is at -S.
           stroke-dashoffset shifts the start of the dash pattern.
           To make the S-dash start at -S, offset must be -S. */
        stroke-dashoffset: calc(var(--segment-length) * -1);
    }
    100% {
        /* The segment's tail is at the end of the path (path coord L).
           Its head is at L+S.
           To make the S-dash start at L, offset must be L. */
        stroke-dashoffset: var(--poly-total-length);
    }
}