/* =====================================================================
   SKETS International — Design System (brand blue · 3D · motion)
   Palette taken from the SKETS logo: deep royal blue + sky blue.
   Legacy variable/class names (--green-*, .text-green, .btn-safety) are
   kept as aliases so existing markup picks up the new palette.
   ===================================================================== */

:root {
    /* exact tones sampled from the SKETS logo */
    --navy-deep: #073A6E;
    --navy-primary: #0A4F93;
    --navy-secondary: #0C5CA6;
    --blue-deep: #0A4F93;
    --blue: #1570B8;
    --sky: #1E88C8;
    --sky-light: #6BB8E8;
    --ice: #EEF6FC;

    /* legacy aliases */
    --green-primary: var(--sky);
    --green-secondary: var(--blue);
    --amber: #FFC14D;

    --white: #FFFFFF;
    --bg-light: #F2F8FD;
    --text-body: #4A5E73;
    --text-heading: #0A3D73;

    --grad-brand: linear-gradient(135deg, var(--sky) 0%, var(--sky) 30%, var(--blue-deep) 100%);
    --grad-brand-h: linear-gradient(90deg, var(--sky), var(--blue-deep), var(--sky), var(--sky-light), var(--sky));
    --grad-dark: radial-gradient(1000px 500px at 85% -10%, rgba(107,184,232,0.45), transparent 60%),
                 radial-gradient(800px 450px at -10% 110%, rgba(30,136,200,0.45), transparent 60%),
                 linear-gradient(135deg, var(--blue-deep) 0%, var(--sky) 100%);
    --grad-light: radial-gradient(900px 500px at 85% 10%, rgba(30,136,200,0.16), transparent 60%),
                  radial-gradient(700px 400px at 0% 100%, rgba(10,79,147,0.10), transparent 60%),
                  linear-gradient(180deg, #FFFFFF 0%, #EEF6FC 100%);

    --font-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Manrope', sans-serif;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 12px rgba(10, 33, 66, 0.06);
    --shadow-md: 0 14px 34px rgba(10, 33, 66, 0.12);
    --shadow-lg: 0 30px 60px -12px rgba(10, 33, 66, 0.25);
    --shadow-glow: 0 10px 34px -6px rgba(30, 136, 200, 0.55);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
h1, h2, .h1-display, .h2-display { font-family: var(--font-display); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--sky); color: #fff; }

.text-green { color: var(--sky) !important; }
.text-amber { color: var(--amber) !important; }
.text-navy { color: var(--text-heading) !important; }
.bg-navy { background: var(--navy-primary) !important; }
.bg-navy-secondary { background: var(--grad-dark) !important; }
.bg-light-custom { background-color: var(--bg-light) !important; }

/* Animated gradient text for highlighted words inside headings */
h1 .text-green, h2 .text-green, .text-gradient {
    background: var(--grad-brand-h);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h1 .text-green { animation: gradientShift 6s linear infinite; }
@keyframes gradientShift { to { background-position: 300% 0; } }

/* ---- Eyebrow pill ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(30,136,200,0.10);
    border: 1px solid rgba(30,136,200,0.25);
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
}
.eyebrow::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sky);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.55); opacity: 0.55; }
}
.eyebrow.on-dark { color: var(--sky-light); background: rgba(107,184,232,0.10); border-color: rgba(107,184,232,0.28); }
.eyebrow.justify-content-center { display: inline-flex; }
.text-center > .eyebrow, .text-center .eyebrow { margin-left: auto; margin-right: auto; }

h1, .h1-display { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.7rem); }
h2, .h2-display { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.75rem); }
.section-lead { color: var(--text-body); font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); }

.section-py { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); position: relative; }

/* Light sections get a soft dotted grid + floating glow */
.bg-light-custom { position: relative; overflow: hidden; }
.bg-light-custom::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(10,79,147,0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.bg-light-custom > .container { position: relative; z-index: 1; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
    font-weight: 700;
    border-radius: 999px;
    padding: 0.8rem 1.7rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn i.bi-arrow-right { display: inline-block; transition: transform 0.35s var(--ease-spring); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }
.btn:active { transform: scale(0.96) !important; }

/* light sweep */
.btn::after {
    content: "";
    position: absolute; top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--ease-out);
    z-index: -1;
    pointer-events: none;
}
.btn:hover::after { left: 130%; }

.btn-safety {
    background: var(--grad-brand);
    background-size: 160% 160%;
    background-position: 0% 0%;
    color: #fff;
    box-shadow: 0 8px 22px -6px rgba(30,136,200,0.65), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-safety:hover, .btn-safety:focus {
    color: #fff;
    background-position: 100% 100%;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-amber { background: var(--amber); color: var(--navy-primary); }
.btn-amber:hover { background: #f0ac2a; color: var(--navy-primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline-light-custom {
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
    background: rgba(255,255,255,0.06);
}
.btn-outline-light-custom:hover { border-color: var(--sky-light); background: rgba(107,184,232,0.14); color: var(--white); transform: translateY(-3px); }
.btn-outline-navy { border-color: rgba(10,79,147,0.35); color: var(--blue); background: rgba(255,255,255,0.7); }
.btn-outline-navy:hover { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-glow); }

/* =====================================================================
   Preloader
   ===================================================================== */
#preloader {
    position: fixed; inset: 0; z-index: 2000;
    background: var(--grad-light);
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    animation: preloaderFailsafe 0.6s ease 3s forwards; /* hides even if JS never runs */
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
#preloader .pl-emblem {
    width: 150px;
    animation: plFloat 1.6s var(--ease-out) infinite alternate;
    filter: drop-shadow(0 14px 24px rgba(10,79,147,0.25));
}
#preloader .pl-bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(10,79,147,0.12); overflow: hidden; }
#preloader .pl-bar span { display: block; height: 100%; width: 40%; background: var(--grad-brand); border-radius: 3px; animation: plBar 1.1s ease-in-out infinite; }
@keyframes plFloat { from { transform: perspective(400px) rotateY(-18deg) translateY(4px); } to { transform: perspective(400px) rotateY(18deg) translateY(-6px); } }
@keyframes plBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.98);
    transition: padding .3s ease, box-shadow .3s ease, background .3s ease;
    padding: 10px 0;
    border-bottom: 1px solid rgba(10,79,147,0.08);
}
.site-header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--sky), transparent);
    opacity: 0; transition: opacity .3s ease;
}
.site-header.scrolled { padding: 5px 0; background: rgba(255, 255, 255, 0.97); box-shadow: 0 10px 30px -12px rgba(10,61,115,0.25); }
.site-header.scrolled::after { opacity: 0.8; }

.site-header .navbar-brand img { height: var(--logo-h, 62px); width: auto; transition: height .3s ease, transform .4s var(--ease-spring); }
.site-header .navbar-brand:hover img { transform: scale(1.04); }
.site-header.scrolled .navbar-brand img { height: calc(var(--logo-h, 62px) * 0.8); }

/* Desktop nav menu: explicit, self-contained visibility rules (does not
   depend on Bootstrap's .collapse/.navbar-expand-lg interplay, which is
   fragile when a second utility framework — Tailwind's CDN build — is
   loaded on the same page and injects its own stylesheet after Bootstrap's). */
.desktop-nav-menu { display: none; width: 100%; align-items: center; }
@media (min-width: 992px) { .desktop-nav-menu { display: flex !important; } }

.mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px !important; }
@media (min-width: 992px) { .mobile-nav-toggle { display: none !important; } }

.site-header .nav-link {
    color: var(--text-heading) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem !important;
    position: relative;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--sky) !important; background: rgba(30,136,200,0.08); }
.site-header .nav-link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 3px;
    width: 5px; height: 5px;
    background: var(--sky);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    box-shadow: 0 0 10px var(--sky);
    transition: transform 0.35s var(--ease-spring);
}
.site-header .nav-link.dropdown-toggle::after { border: 0; margin: 0; vertical-align: 0; }
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after { transform: translateX(-50%) scale(1); }

.site-header .dropdown-menu {
    border: 1px solid rgba(30,136,200,0.15);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    margin-top: 12px;
    background: rgba(255,255,255,0.96);
    opacity: 0;
    transform: perspective(600px) rotateX(-14deg) translateY(10px);
    transform-origin: top center;
    transition: opacity 0.28s ease, transform 0.35s var(--ease-out);
    display: block;
    visibility: hidden;
    pointer-events: none;
}
.site-header .dropdown-menu.show { opacity: 1; transform: perspective(600px) rotateX(0) translateY(0); visibility: visible; pointer-events: auto; }
.site-header .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out), padding 0.25s ease;
}
.site-header .dropdown-item:hover { background: var(--ice); color: var(--blue); transform: translateX(4px); }

.offcanvas.bg-navy { background: var(--grad-dark) !important; }
.offcanvas .nav-link { color: rgba(255,255,255,0.85); font-weight: 600; padding: 0.7rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color .2s ease, padding .25s ease; }
.offcanvas .nav-link:hover { color: var(--sky-light); padding-left: 0.9rem; }

/* =====================================================================
   Aurora + 3D grid backdrop (hero, page header, dark CTAs)
   ===================================================================== */
.fx-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.fx-aurora span {
    position: absolute;
    border-radius: 50%;
    opacity: 0.55;
    background: radial-gradient(circle at center, var(--c) 0%, transparent 68%); /* soft edge without an expensive blur filter */
    animation: auroraFloat 18s ease-in-out infinite alternate;
    will-change: transform;
}
.fx-aurora span:nth-child(1) { width: 620px; height: 620px; --c: #2A8AD6; top: -160px; right: -80px; }
.fx-aurora span:nth-child(2) { width: 520px; height: 520px; --c: #174F96; bottom: -160px; left: -120px; animation-duration: 22s; animation-delay: -6s; }
.fx-aurora span:nth-child(3) { width: 380px; height: 380px; --c: #5BB4EE; top: 40%; left: 45%; opacity: 0.25; animation-duration: 26s; animation-delay: -12s; }
@keyframes auroraFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 40px) scale(1.15); }
    100% { transform: translate(40px, -30px) scale(0.92); }
}

.fx-grid3d {
    position: absolute; left: -50%; right: -50%; bottom: -10%;
    height: 60%;
    overflow: hidden;
    transform: perspective(500px) rotateX(62deg);
    transform-origin: center bottom;
    mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}
.fx-grid3d::before {
    content: "";
    position: absolute; left: 0; right: 0; top: -64px; bottom: 0;
    background-image:
        linear-gradient(var(--grid-line, rgba(107,184,232,0.22)) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line, rgba(107,184,232,0.22)) 1px, transparent 1px);
    background-size: 64px 64px;
    animation: gridMove 3.5s linear infinite;
    will-change: transform;
}
@keyframes gridMove { to { transform: translateY(64px); } }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
    position: relative;
    min-height: min(calc(100vh - 74px), 900px);
    display: flex;
    align-items: center;
    background: var(--grad-light) !important;
    color: var(--text-heading);
    overflow: hidden;
    padding: 60px 0 80px;
}
.hero h1 { color: var(--text-heading); }
.hero .hero-lead { color: var(--text-body); max-width: 640px; }
.hero .fx-aurora span { opacity: 0.22; }
.hero .fx-aurora span:nth-child(1) { --c: #1E88C8; }
.hero .fx-aurora span:nth-child(2) { --c: #0A4F93; opacity: 0.14; }
.hero .fx-aurora span:nth-child(3) { --c: #6BB8E8; opacity: 0.24; }
.hero .fx-grid3d { --grid-line: rgba(10,79,147,0.12); }
@media (max-width: 991.98px) { .hero { min-height: auto; padding: 70px 0 60px; } }
.hero .container { position: relative; z-index: 2; }

#hero3d {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin: 0 auto;
    perspective: 1000px;
}
.hero-emblem {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.4s var(--ease-out);
}
.hero-emblem img {
    width: 38%;
    filter: drop-shadow(0 22px 30px rgba(10,79,147,0.35));
    animation: emblemFloat 6s ease-in-out infinite;
    transform: translateZ(60px);
}
@keyframes emblemFloat {
    0%, 100% { transform: translateZ(60px) translateY(0) rotateY(-8deg); }
    50% { transform: translateZ(60px) translateY(-16px) rotateY(8deg); }
}
.hero-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(30,136,200,0.35);
    transform-style: preserve-3d;
}
.hero-ring::before {
    content: "";
    position: absolute; top: -6px; left: 50%;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--sky);
    box-shadow: 0 0 18px 4px rgba(30,136,200,0.8);
}
.hero-ring.r1 { width: 62%; height: 62%; margin: -31% 0 0 -31%; animation: ringSpin1 14s linear infinite; }
.hero-ring.r2 { width: 82%; height: 82%; margin: -41% 0 0 -41%; border-style: dashed; border-color: rgba(30,136,200,0.3); animation: ringSpin2 22s linear infinite; }
.hero-ring.r3 { width: 100%; height: 100%; margin: -50% 0 0 -50%; border-color: rgba(10,79,147,0.25); animation: ringSpin3 30s linear infinite; }
@keyframes ringSpin1 { from { transform: rotateX(70deg) rotateZ(0); } to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes ringSpin2 { from { transform: rotateX(60deg) rotateY(20deg) rotateZ(360deg); } to { transform: rotateX(60deg) rotateY(20deg) rotateZ(0); } }
@keyframes ringSpin3 { from { transform: rotateY(65deg) rotateZ(0); } to { transform: rotateY(65deg) rotateZ(360deg); } }

.hero-chip {
    position: absolute;
    display: flex; align-items: center; gap: 10px;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(30,136,200,0.18);
    box-shadow: 0 20px 40px -14px rgba(10,61,115,0.35);
    color: var(--text-heading);
    font-weight: 700;
    font-size: 0.85rem;
    animation: chipFloat 5s ease-in-out infinite;
    z-index: 3;
}
.hero-chip i {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-brand); font-size: 1rem; color: #fff;
}
.hero-chip small { display: block; font-weight: 500; color: var(--text-body); font-size: 0.72rem; }
.hero-chip.c1 { top: 10%; left: -4%; }
.hero-chip.c2 { bottom: 16%; right: -6%; animation-delay: -2.5s; }
.hero-chip.c3 { bottom: 2%; left: 8%; animation-delay: -1.2s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 575.98px) { .hero-chip { font-size: 0.75rem; padding: 0.5rem 0.7rem; } .hero-chip.c1 { left: 0; } .hero-chip.c2 { right: 0; } }

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2.6rem;
}
.trust-strip .trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--text-heading);
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(30,136,200,0.18);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease-spring), background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.trust-strip .trust-item:hover { transform: translateY(-3px); border-color: rgba(30,136,200,0.45); box-shadow: var(--shadow-md); }
.trust-strip .trust-item i { color: var(--sky); font-size: 1.05rem; }

.scroll-cue {
    position: absolute; left: 50%; bottom: 22px; z-index: 3;
    width: 26px; height: 42px; margin-left: -13px;
    border: 2px solid rgba(10,79,147,0.3); border-radius: 14px;
}
.scroll-cue::before {
    content: ""; position: absolute; left: 50%; top: 8px;
    width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
    background: var(--sky-light);
    animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 991.98px) { .scroll-cue { display: none; } }

/* =====================================================================
   Stats strip — floating glass cards
   ===================================================================== */
.stats-strip { background: var(--grad-dark); color: var(--white); position: relative; overflow: hidden; }
.stats-strip::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 200px at 50% 0%, rgba(30,136,200,0.25), transparent 70%);
}
.stats-strip .container { position: relative; }
.stat-block {
    text-align: center;
    padding: 1.6rem 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    border: 1px solid rgba(107,184,232,0.16);
    transition: transform .5s var(--ease-out), border-color .3s ease, box-shadow .5s ease;
    transform-style: preserve-3d;
}
.stat-block:hover { transform: translateY(-6px); border-color: rgba(107,184,232,0.45); box-shadow: 0 20px 40px -14px rgba(30,136,200,0.45); }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3.3rem);
    font-weight: 700;
    background: linear-gradient(180deg, #ffffff 10%, var(--sky-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.stat-label { font-weight: 600; color: rgba(255,255,255,0.68); font-size: 0.9rem; letter-spacing: 0.02em; }

/* =====================================================================
   Cards — 3D tilt + spotlight glare
   ===================================================================== */
.card-elevated {
    --mx: 50%; --my: 50%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,79,147,0.10);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s ease;
}
.card-elevated::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(30,136,200,0.14), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.card-elevated::after {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(300px circle at var(--mx) var(--my), rgba(30,136,200,0.9), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.card-elevated:hover::before, .card-elevated:hover::after { opacity: 1; }
.card-elevated:hover { box-shadow: var(--shadow-lg); border-color: rgba(30,136,200,0.25); }
.card-elevated:not(.is-tilting):hover { transform: translateY(-8px); }
.card-elevated > * { position: relative; z-index: 1; }
.card-elevated > .fx-aurora { position: absolute; z-index: 0; }
.card-elevated > .fx-aurora span { opacity: 0.35; }
.card-elevated.text-white, .card-elevated.bg-navy-secondary { border-color: rgba(107,184,232,0.18); overflow: hidden; }
.card-elevated.bg-navy-secondary::before { background: radial-gradient(500px circle at var(--mx) var(--my), rgba(30,136,200,0.25), transparent 50%); }

.card-elevated.is-tilting { will-change: transform; transition: transform 0.12s linear, box-shadow 0.5s var(--ease-out), border-color 0.3s ease; }
.tilt-pop { transform: translateZ(40px); }

.service-card { padding: 2.2rem; height: 100%; }
.icon-wrap {
    width: 62px; height: 62px;
    border-radius: 18px;
    background: var(--grad-brand);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.55rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 12px 24px -8px rgba(30,136,200,0.7), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -4px 0 rgba(0,0,0,0.12);
    position: relative;
    transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}
.icon-wrap::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 50%);
    pointer-events: none;
}
.service-card:hover .icon-wrap,
.why-item:hover .icon-wrap,
.process-step:hover .step-number { transform: translateZ(30px) rotateY(180deg) scale(1.05); }
.service-card:hover .icon-wrap i, .why-item:hover .icon-wrap i { transform: rotateY(180deg); }
.icon-wrap i { transition: transform 0.5s var(--ease-spring); display: inline-block; }

.service-card ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.service-card ul li { padding: 0.3rem 0; padding-left: 1.6rem; position: relative; font-size: 0.94rem; }
.service-card ul li::before {
    content: "\f26b"; font-family: "bootstrap-icons";
    position: absolute; left: 0; color: var(--sky);
}

.why-item { padding: 1.6rem 1rem; border-radius: var(--radius-lg); transition: background .4s ease, transform .5s var(--ease-out); }
.why-item:hover { background: #fff; box-shadow: var(--shadow-md); transform: translateY(-6px); }

.course-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.course-card .course-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.course-card .course-img-wrap::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6,21,41,0.55));
    opacity: 0.6; transition: opacity .4s ease;
}
.course-card:hover .course-img-wrap::after { opacity: 1; }
.course-card .course-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.course-card:hover .course-img-wrap img { transform: scale(1.08); }
.course-card .badge-category {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: rgba(255,255,255,0.92); color: var(--blue);
    font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em;
    padding: 0.42rem 0.85rem; border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.course-card .badge-cert {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: var(--grad-brand); color: #fff;
    font-size: 1rem; line-height: 1;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(30,136,200,0.8);
}
.course-card .course-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course-card .course-meta { display: flex; gap: 14px; font-size: 0.85rem; color: var(--text-body); margin: 0.6rem 0 1rem; flex-wrap: wrap; }
.course-card .course-meta span { display: flex; align-items: center; gap: 5px; }
.course-card .course-meta i { color: var(--sky); }

/* ---- Testimonial cards ---- */
.testimonial-card { padding: 2.2rem; height: 100%; }
.testimonial-card .stars { color: var(--amber); font-size: 0.95rem; margin-bottom: 0.8rem; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; margin-top: 1.2rem; }
.testimonial-card .person img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--sky); }
.testimonial-card .quote-mark { position: absolute; top: 18px; right: 22px; font-size: 3.2rem; line-height: 1; color: rgba(30,136,200,0.15); z-index: 0; }

/* ---- Process steps ---- */
.process-step { text-align: center; padding: 1.5rem; perspective: 600px; }
.process-step .step-number {
    width: 68px; height: 68px; margin: 0 auto 1rem;
    border-radius: 20px; background: var(--grad-brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.35rem;
    box-shadow: 0 14px 28px -10px rgba(30,136,200,0.8), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: transform 0.6s var(--ease-spring);
}

/* ---- Final CTA ---- */
.final-cta { background: var(--grad-dark); color: var(--white); position: relative; overflow: hidden; }
.final-cta .container { z-index: 2; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); position: relative; overflow: hidden; }
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--sky), transparent);
}
.site-footer::after {
    content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(10,79,147,0.22), transparent 65%);
    bottom: -300px; right: -200px; pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer h6 { color: var(--white); font-weight: 700; margin-bottom: 1.2rem; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.1em; }
.site-footer a.footer-link { display: block; color: rgba(255,255,255,0.65); padding: 0.35rem 0; transition: color .25s ease, transform .3s var(--ease-out); }
.site-footer a.footer-link:hover { color: var(--sky-light); transform: translateX(4px); }
.site-footer .social-icons a {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(107,184,232,0.15);
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: 8px; transition: transform .35s var(--ease-spring), background .25s ease, box-shadow .25s ease;
}
.site-footer .social-icons a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-4px) rotate(-6deg); box-shadow: var(--shadow-glow); }
.site-footer .form-control { background: rgba(255,255,255,0.06); border-color: rgba(107,184,232,0.2); color: #fff; border-radius: 999px; padding-left: 1.2rem; }
.site-footer .form-control::placeholder { color: rgba(255,255,255,0.45); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.2rem 0; font-size: 0.85rem; position: relative; z-index: 1; }

/* ---- Floating buttons (right side, inside the thumb zone on phones) ----
   WhatsApp sits bottom-right where the thumb rests; back-to-top stacks above it. */
:root { --fab-gap: 24px; --fab-bottom: calc(var(--fab-gap) + env(safe-area-inset-bottom, 0px)); }

#backToTop {
    position: fixed; right: calc(var(--fab-gap) + 5px); bottom: calc(var(--fab-bottom) + 72px); z-index: 1030;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad-brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-glow);
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.8);
    transition: all .4s var(--ease-spring); border: none;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
#backToTop:hover { transform: translateY(-4px) scale(1.06); }
#backToTop svg { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); }
#backToTop svg circle { fill: none; stroke: rgba(107,184,232,0.9); stroke-width: 2.5; stroke-linecap: round; }

/* ---- Floating WhatsApp button ---- */
.whatsapp-float {
    position: fixed;
    right: var(--fab-gap); bottom: var(--fab-bottom); z-index: 1031;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, bottom 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.1) translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55); }
.whatsapp-float:active { transform: scale(0.92); }
.whatsapp-float-ping {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: whatsappPulse 2.2s var(--ease-out) infinite;
    z-index: -1;
}
@keyframes whatsappPulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.9); opacity: 0; } }

@media (max-width: 575.98px) {
    :root { --fab-gap: 16px; }
    .whatsapp-float { width: 56px; height: 56px; font-size: 1.6rem; }   /* 56px = comfortable thumb target */
    #backToTop { width: 42px; height: 42px; right: calc(var(--fab-gap) + 7px); bottom: calc(var(--fab-bottom) + 68px); }
}

/* Pages with a fixed "Register Now" bar at the bottom on mobile: lift the buttons above it */
@media (max-width: 991.98px) {
    body:has(.mobile-cta-bar) .whatsapp-float { bottom: calc(var(--fab-bottom) + 76px); }
    body:has(.mobile-cta-bar) #backToTop { bottom: calc(var(--fab-bottom) + 148px); }
}

/* =====================================================================
   Cursor glow (desktop pointer devices only, toggled by JS)
   ===================================================================== */
#cursorGlow {
    position: fixed; top: 0; left: 0; z-index: 1;
    width: 480px; height: 480px; margin: -240px 0 0 -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,136,200,0.10), transparent 60%);
    pointer-events: none;
    transition: opacity .4s ease;
    opacity: 0;
}
body.has-cursor-glow #cursorGlow { opacity: 1; }

/* =====================================================================
   Scroll reveal — 3D variants
   ===================================================================== */
.reveal-up {
    opacity: 0;
    transform: perspective(1200px) translateY(60px) rotateX(14deg) scale(0.97);
    transform-origin: center top;
    transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal-up.in-view { opacity: 1; transform: perspective(1200px) translateY(0) rotateX(0) scale(1); }

.reveal-left { opacity: 0; transform: perspective(1200px) translateX(-70px) rotateY(12deg); transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.reveal-left.in-view { opacity: 1; transform: perspective(1200px) translateX(0) rotateY(0); }

.reveal-right { opacity: 0; transform: perspective(1200px) translateX(70px) rotateY(-12deg); transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.reveal-right.in-view { opacity: 1; transform: perspective(1200px) translateX(0) rotateY(0); }

.reveal-zoom { opacity: 0; transform: scale(0.88); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.reveal-zoom.in-view { opacity: 1; transform: scale(1); }

/* once revealed, hand transforms back to hover/tilt effects */
.card-elevated.reveal-up.in-view, .reveal-up.in-view > .card-elevated { transition-delay: 0s; }

/* ---- Hero entrance ---- */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-animate > * { opacity: 0; animation: heroFadeUp 1s var(--ease-out) forwards; }
.hero-animate > *:nth-child(1) { animation-delay: 0.15s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.3s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.45s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.6s; }
.hero-animate > *:nth-child(5) { animation-delay: 0.75s; }

@keyframes heroVisualIn { from { opacity: 0; transform: scale(0.8) rotateY(-30deg); } to { opacity: 1; transform: scale(1) rotateY(0); } }
.hero-visual { animation: heroVisualIn 1.4s var(--ease-out) 0.3s both; }

/* Split-word heading animation (words wrapped by JS) */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%) rotateX(-60deg); transform-origin: bottom; animation: wordUp 0.9s var(--ease-out) forwards; animation-delay: calc(0.25s + var(--i) * 0.07s); }
@keyframes wordUp { to { transform: translateY(0) rotateX(0); } }

/* ---- Image frames ---- */
.img-3d { border-radius: var(--radius-lg); transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.img-frame { position: relative; }
.img-frame::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px;
    border-radius: var(--radius-lg);
    background: var(--grad-brand);
    opacity: 0.18;
    z-index: 0;
    transition: transform .6s var(--ease-out);
}
.img-frame:hover::before { transform: translate(8px, 8px); }
.img-frame > img { position: relative; z-index: 1; }

/* ---- Scroll progress bar ---- */
#scrollProgress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--grad-brand-h);
    background-size: 200% 100%;
    box-shadow: 0 0 12px rgba(30,136,200,0.8);
    z-index: 1100;
}

/* ---- Breadcrumb / page header ---- */
.page-header {
    background: var(--grad-dark);
    color: var(--white);
    padding: 110px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute; left: -50%; right: -50%; bottom: -20%;
    height: 90%;
    background-image:
        linear-gradient(rgba(107,184,232,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107,184,232,0.18) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(420px) rotateX(64deg);
    transform-origin: center bottom;
    mask-image: linear-gradient(to top, #000, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, #000, transparent 80%);
    pointer-events: none;
}
@keyframes gridMoveSm { to { background-position: 0 56px, 0 0; } }
.page-header::after {
    content: "";
    position: absolute; width: 520px; height: 520px; border-radius: 50%;
    top: -260px; right: -120px;
    background: radial-gradient(circle, rgba(30,136,200,0.45), transparent 65%);
    animation: auroraFloat 16s ease-in-out infinite alternate;
    will-change: transform;
    pointer-events: none;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; }
.page-header .breadcrumb { --bs-breadcrumb-divider: '/'; --bs-breadcrumb-divider-color: rgba(255,255,255,0.4); margin-bottom: 0.8rem; animation: heroFadeUp 0.6s var(--ease-out) both; display: inline-flex; padding: 0.4rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(107,184,232,0.18); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.65); transition: color .2s ease; }
.page-header .breadcrumb a:hover { color: #fff; }
.page-header .breadcrumb .active { color: var(--sky-light); }
.page-header h1 { animation: heroFadeUp 0.9s var(--ease-out) 0.12s both; }
.page-header p { animation: heroFadeUp 0.9s var(--ease-out) 0.24s both; }

/* ---- Forms ---- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #DCE7F1;
    padding: 0.75rem 1rem;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(30,136,200,0.16);
}
label.form-label { font-weight: 600; color: var(--text-heading); font-size: 0.92rem; }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }

/* ---- Accordion (Policies/FAQ) ---- */
.accordion-item { border: 1px solid #E1EBF4; border-radius: var(--radius-md) !important; margin-bottom: 12px; overflow: hidden; transition: box-shadow .3s ease, transform .3s ease; }
.accordion-item:hover { box-shadow: var(--shadow-md); }
.accordion-button { font-weight: 700; color: var(--text-heading); padding: 1.15rem 1.3rem; }
.accordion-button:not(.collapsed) { background: linear-gradient(90deg, rgba(30,136,200,0.12), rgba(30,136,200,0.02)); color: var(--blue); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* ---- Verification result box ---- */
.verify-box { max-width: 640px; margin: 0 auto; }
.verify-result { border-radius: var(--radius-lg); padding: 2rem; animation: heroFadeUp .6s var(--ease-out) both; }
.verify-result.valid { background: rgba(30,136,200,0.08); border: 1.5px solid var(--sky); }
.verify-result.invalid { background: rgba(220,53,69,0.06); border: 1.5px solid #dc3545; }

/* ---- Bootstrap tint overrides so leftover utilities match the brand ---- */
.text-primary { color: var(--blue) !important; }
.bg-primary { background-color: var(--blue) !important; }
.btn-primary { background: var(--grad-brand); border: none; }
.nav-pills .nav-link.active { background: var(--grad-brand); }
.page-link { color: var(--blue); }
.active > .page-link, .page-link.active { background: var(--blue); border-color: var(--blue); }

/* ---- Focus visibility for accessibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--sky-light);
    outline-offset: 2px;
}

/* ---- Utility ---- */
.rounded-xl { border-radius: var(--radius-lg) !important; }
.shadow-soft { box-shadow: var(--shadow-md) !important; }

/* ---- Page load fade-in ---- */

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .reveal-up, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; filter: none; }
    .hero-animate > *, .split-words .w > span { opacity: 1; transform: none; }
    #scrollProgress, #cursorGlow, #hero3d, .fx-grid3d { display: none; }
    html { scroll-behavior: auto; }
}

/* ---- Highlighted words on blue backgrounds ---- */
.page-header .text-green, .final-cta .text-green, .bg-navy-secondary .text-green, .stats-strip .text-green {
    background: none; -webkit-text-fill-color: #CDEBFF; color: #CDEBFF !important; animation: none;
}
.gallery-tile img { transition: transform .8s var(--ease-out); }
.gallery-tile:hover img { transform: scale(1.08); }

/* ---- Inner page banner subtitle ---- */
.page-header-sub { color: rgba(255,255,255,0.85); max-width: 720px; font-size: 1.08rem; animation: heroFadeUp 0.9s var(--ease-out) 0.24s both; }

/* ---- Animations switched off from the admin panel ---- */
html.fx-off *, html.fx-off *::before, html.fx-off *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
html.fx-off .reveal-up, html.fx-off .reveal-left, html.fx-off .reveal-right, html.fx-off .reveal-zoom { opacity: 1; transform: none; filter: none; }
html.fx-off .hero-animate > *, html.fx-off .split-words .w > span { opacity: 1; transform: none; }
html.fx-off .fx-grid3d, html.fx-off #cursorGlow { display: none; }