/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

:root {
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Safe Areas for iOS */
    --safe-top: env(safe-area-inset-top, 20px);
    --safe-bottom: env(safe-area-inset-bottom, 20px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);

    /* Glass blur constant */
    --glass-blur: 20px;
}

/* =============================================
   THEME: Dark (Professional & Sleek)
   ============================================= */
body,
body[data-theme="dark"] {
    /* Page */
    --bg-color: #02011a;
    --bg-mesh-1: rgba(255, 255, 255, 0.03);
    --bg-mesh-2: rgba(255, 255, 255, 0.02);
    --text-primary: #f5f5f7;
    --text-secondary: #84a7fb;
    --accent-color: #e9fd8e;
    --accent-glow: rgba(233, 253, 142, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --logo-gradient: linear-gradient(135deg, #ffffff, #84a7fb);
    --hero-orb-1: #04012e;
    --hero-orb-2: #6780c2;
    /* Notepad (Enhanced Glassmorphism) */
    --np-panel: rgba(10, 10, 20, 0.35);
    --np-panel-soft: rgba(20, 20, 30, 0.5);
    --np-field: transparent;
    --np-line: rgba(255, 255, 255, 0.1);
    --np-text: #f5f5f7;
    --np-text-dim: rgba(245, 245, 247, 0.6);
    --np-accent: #e9fd8e;
    --np-accent-glow: rgba(233, 253, 142, 0.2);
    --np-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    --np-header: transparent;
    --np-header-border: rgba(255, 255, 255, 0.12);
    --np-btn-color: #f5f5f7;
    --np-collapsed-bg: rgba(4, 1, 46, 0.4);
    --np-collapsed-border: linear-gradient(135deg, #6780c2, #84a7fb, #e9fd8e);
    --np-collapsed-shadow: rgba(132, 167, 251, 0.4);
}

/* =============================================
   THEME: Light (Clean & Crisp)
   ============================================= */
body[data-theme="light"] {
    /* Page */
    --bg-color: #f2e8d5;
    --bg-mesh-1: rgba(0, 0, 0, 0.02);
    --bg-mesh-2: rgba(0, 0, 0, 0.01);
    --text-primary: #04012e;
    --text-secondary: #6780c2;
    --accent-color: #84a7fb;
    --accent-glow: rgba(132, 167, 251, 0.15);
    --glass-bg: rgba(242, 232, 213, 0.4);
    --glass-border: rgba(156, 138, 102, 0.2);
    --logo-gradient: linear-gradient(135deg, #04012e, #6780c2);
    --hero-orb-1: #e5e5ea;
    --hero-orb-2: #d2d2d7;
    /* Notepad (Enhanced Glassmorphism) */
    --np-panel: rgba(255, 255, 255, 0.4);
    --np-panel-soft: rgba(255, 255, 255, 0.6);
    --np-field: transparent;
    --np-line: rgba(0, 0, 0, 0.15);
    --np-text: #02011a;
    --np-text-dim: rgba(2, 1, 26, 0.8);
    --np-accent: #6780c2;
    --np-accent-glow: rgba(103, 128, 194, 0.2);
    --np-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    --np-header: transparent;
    --np-header-border: rgba(103, 128, 194, 0.2);
    --np-btn-color: #02011a;
    --np-collapsed-bg: rgba(255, 255, 255, 0.5);
    --np-collapsed-border: linear-gradient(135deg, #6780c2, #84a7fb, #e9fd8e);
    --np-collapsed-shadow: rgba(103, 128, 194, 0.2);
}

/* =============================================
   Marquee Banner
   ============================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #000000;
    color: #7b99e8;
    padding: 0.8rem 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    white-space: nowrap;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 1;
    pointer-events: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-marquee 80s linear infinite;
}

.banner-item {
    display: inline-block;
    padding: 0 6rem;
    font-size: 0.7rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.banner-item:nth-child(3n+1) {
    color: #84a7fb;
}

.banner-item:nth-child(3n+2) {
    color: #d4e84a;
}

.banner-item:nth-child(3n+3) {
    color: #a8c4fa;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    /* Smooth theme and glow transitions */
    transition: background-color 0.8s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

/* Navigation - Glassmorphism & Safe Area */
.glass-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem max(2rem, var(--safe-left)) 1.5rem max(2rem, var(--safe-right));
    padding-top: calc(1.5rem + var(--safe-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-nav.scrolled {
    position: fixed;
    /* Becomes sticky on scroll */
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem max(2rem, var(--safe-left)) 1rem max(2rem, var(--safe-right));
    padding-top: calc(1rem + var(--safe-top));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Hero-state: enlarged nav on home page before scroll */
body.page-home .glass-nav:not(.scrolled) {
    padding: 2.5rem max(3rem, var(--safe-left)) 2.5rem max(3rem, var(--safe-right));
    padding-top: calc(2.5rem + var(--safe-top));
}

body.page-home .glass-nav:not(.scrolled) .nav-logo-img {
    height: clamp(72px, 10vw, 110px);
}

.logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.85;
}

.logo:hover {
    transform: scale(1.04);
    opacity: 1;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    animation: kenteLogoShine 12s linear infinite;
}

.nav-logo-text {
    margin-left: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Mobile Menu Button - Unique Molecular Node Design */
#menuToggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    z-index: 1001;
    padding: 12px;
    opacity: 0.6;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#menuToggle:hover {
    opacity: 1;
    transform: scale(1.05);
}

#menuToggle span {
    display: block;
    width: 28px;
    height: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border-radius: 2px;
}

#menuToggle span:nth-child(1) {
    background-color: #84a7fb;
    width: 28px;
}

#menuToggle span:nth-child(2) {
    background-color: #d4e84a;
    width: 16px;
}

#menuToggle span:nth-child(3) {
    background-color: #84a7fb;
    width: 22px;
}

#menuToggle:hover span {
    filter: brightness(1.2);
    box-shadow: 0 0 10px currentColor;
}

/* Staggered Molecular Connections */
#menuToggle span:nth-child(1) {
    width: 28px;
}

#menuToggle span:nth-child(2) {
    width: 16px;
}

#menuToggle span:nth-child(3) {
    width: 22px;
}

/* Open State: The "Synthetic Bond" X */
.menu-open #menuToggle {
    opacity: 1;
    transform: rotate(180deg);
}

.menu-open #menuToggle span:nth-child(1) {
    transform: translateY(9px) rotate(26.6deg);
    width: 30px;
    background-color: #d4e84a;
}

.menu-open #menuToggle span:nth-child(2) {
    width: 0;
    opacity: 0;
    transform: translateX(10px);
}

.menu-open #menuToggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-26.6deg);
    width: 30px;
    background-color: #d4e84a;
}

/* Atomic Spheres Removed */


/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    color: var(--accent-color);
    letter-spacing: 0.35em;
}

/* Main Content Spacing */
main {
    padding-bottom: calc(2rem + var(--safe-bottom));
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Full screen background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
    overflow: hidden;
}


.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    /* Never bleeds past the hero section bottom */
    z-index: 1;
    /* Blank areas when image doesn't fill full width */
    background-color: #000;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    filter: brightness(1.08) saturate(1.2) contrast(1.05);
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(5, 8, 28, 0.12) 0%, rgba(5, 8, 28, 0.22) 100%),
        radial-gradient(ellipse at 50% 45%, transparent 25%, rgba(5, 8, 28, 0.28) 100%);
    z-index: 2;
    display: block;
}

.hero-content {
    /* Clamp to the actual rendered image width — JS sets --hero-img-w on .hero */
    max-width: min(var(--hero-img-w, 90%), 90%);
    width: 90%;
    z-index: 3;
    text-align: center;
    padding: 1rem 1.5rem 2rem;
    position: relative;
    color: #ffffff;
}

.hero-content .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
    font-weight: 300;
}

.hero-logo-img {
    height: clamp(140px, 20vw, 280px);
    width: auto;
    max-width: 82vw;
    object-fit: contain;
}

/* Two-phase logo reveal — sits above the hero card in the flex column */
.hero-logo-wrap {
    height: clamp(140px, 20vw, 280px);
    aspect-ratio: 1024 / 648;
    max-width: 82vw;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    z-index: 3;
}

/* Kente shimmer — masked to the exact logo alpha so colour stays inside the logo only */
.hero-logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
            #F5B910 0%,
            #D4212D 25%,
            #00A35B 50%,
            #D4212D 75%,
            #F5B910 100%);
    background-size: 200% auto;
    -webkit-mask-image: url('Logo_transparent.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('Logo_transparent.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    animation: diamondShine 4s linear infinite;
    pointer-events: none;
    z-index: 10;
}

.hero-logo-letters,
.hero-logo-icons {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Phase 1: letters sweep left → right */
.hero-logo-letters {
    animation: lettersReveal 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Phase 2: starts exactly when letters finish — no overlap */
.hero-logo-icons {
    animation: iconsReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}

@keyframes lettersReveal {
    from {
        clip-path: inset(55% 100% 0 0);
        opacity: 0.4;
    }

    to {
        clip-path: inset(55% 0% 0 0);
        opacity: 1;
    }
}

@keyframes iconsReveal {
    from {
        clip-path: inset(0 0 45% 100%);
        opacity: 0;
    }

    to {
        clip-path: inset(0 0 45% 0%);
        opacity: 1;
    }
}

/* ── Kente colour wash — Gold→Red→Green, colours the logo pixels directly ─────── */
/* Gold(hue 5°) → Red(hue -43°) → Green(hue 109°) → back to neutral             */
@keyframes kenteLogoShine {
    0% {
        filter: grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) brightness(1);
    }

    8% {
        filter: grayscale(0.5) sepia(0.5) saturate(4) hue-rotate(5deg) brightness(1.12);
    }

    16%,
    28% {
        filter: grayscale(1) sepia(1) saturate(8) hue-rotate(5deg) brightness(1.25);
    }

    40%,
    52% {
        filter: grayscale(1) sepia(1) saturate(8) hue-rotate(-43deg) brightness(1.15);
    }

    64%,
    76% {
        filter: grayscale(1) sepia(1) saturate(8) hue-rotate(109deg) brightness(1.1);
    }

    88% {
        filter: grayscale(0.5) sepia(0.5) saturate(4) hue-rotate(5deg) brightness(1.12);
    }

    100% {
        filter: grayscale(0) sepia(0) saturate(1) hue-rotate(0deg) brightness(1);
    }
}

.hero-logo-wrap {
    /* Fires after both reveal phases complete (2s), cycles every 15s */
    animation: kenteLogoShine 15s linear infinite 2s;
}

/* Suppress the Kente shimmer when bg-glow mode handles its own logo effect */
body.bg-glow .hero-logo-wrap::after {
    display: none;
}

/* Suppress the periodic shine when the bg-glow mode has its own effect */
body.bg-glow .hero-logo-wrap {
    animation: none;
}

body.bg-glow .hero-logo-img,
body.bg-glow .footer-logo-img {
    filter: drop-shadow(-10px 0 20px rgba(132, 167, 251, 0.4)) drop-shadow(10px 0 20px rgba(132, 167, 251, 0.4));
    animation: logoBrandedPulse 4s ease-in-out infinite !important;
    opacity: 1 !important;
}

@keyframes logoBrandedPulse {

    0%,
    100% {
        filter: drop-shadow(-8px 0 15px rgba(132, 167, 251, 0.2)) drop-shadow(8px 0 15px rgba(132, 167, 251, 0.2));
    }

    50% {
        filter: drop-shadow(-25px 0 50px rgba(233, 253, 142, 0.6)) drop-shadow(25px 0 50px rgba(233, 253, 142, 0.6)) drop-shadow(0 0 30px rgba(132, 167, 251, 0.4));
    }
}





.hero::before {
    background: var(--hero-orb-1);
    top: -200px;
    left: -200px;
    transition: background 0.5s ease;
}

.hero::after {
    background: var(--hero-orb-2);
    bottom: -200px;
    right: -200px;
    transition: background 0.5s ease;
}

.hero-logo-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 0.85;
    margin-bottom: 2rem;
    position: relative;

    --diamond-glow: #ffffff;
    --diamond-refract: #d4e84a;
    background: linear-gradient(110deg,
            #84a7fb 15%,
            #ffffff 35%,
            #e9fd8e 50%,
            #ffffff 65%,
            #84a7fb 85%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    opacity: 0;
    transform: translateY(20px);
    animation:
        heroTextReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

body.bg-glow .hero-logo-text {
    animation:
        heroTextReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s,
        diamondShine 2.5s linear infinite;
}

/* High-Fidelity Diamond Sparkle Glints */
.hero-logo-text::before,
.hero-logo-text::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, #ffffff 20%, var(--diamond-refract) 40%, transparent 70%);
    /* 4-pointed star polygon */
    clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 8px var(--diamond-refract));
}

.hero-logo-text::before {
    animation: randomGlints 4s linear infinite;
}

.hero-logo-text::after {
    animation: randomGlints 5s linear infinite reverse;
    animation-delay: 2s;
}

/* Light Mode: Animate half as often (double duration) */
body[data-theme="light"] .hero-logo-text {
    animation:
        heroTextReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s,
        diamondShine 5s linear infinite;
}

body[data-theme="light"] .hero-logo-text::before {
    animation-duration: 8s;
}

body[data-theme="light"] .hero-logo-text::after {
    animation-duration: 10s;
    animation-delay: 4s;
}


@keyframes heroTextReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Raleway', var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 5.5vw, 4.8rem);
    line-height: 1.12;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: -2.5rem;
    margin-bottom: 2.8rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;

    /* Clean, solid branded theme color */
    color: #84a7fb;
    -webkit-text-fill-color: #84a7fb;

    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));

    opacity: 0;
    transform: translateY(18px);
    animation:
        heroTitleFadeIn 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.3s;
}

@keyframes heroTitleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.bg-glow .hero-title {
    animation:
        heroTitleFadeIn 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.3s;
}



.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
    max-width: 650px;
    margin: 0 auto 2.8rem;
    transition: all 0.8s ease;
}



.ghost-button {
    display: inline-block;
    padding: 0.85rem 2.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.2em;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--text-primary) 20%, transparent);
    transition: all 0.4s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.ghost-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
}

.ghost-button.clicked-shine::before {
    animation: buttonClickShine 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes buttonClickShine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.ghost-button:hover {
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--text-primary) 50%, transparent);
    background: color-mix(in srgb, var(--text-primary) 5%, transparent);
}

/* Premium Hero CTA Group */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.6rem;
    background: #000000;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Hero CTA — bold, filled, unmissable on any photo */
.hero-cta-group .hero-cta {
    background: #ffffff;
    border: none;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #07101f;
    letter-spacing: 0.25em;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 1.1rem 3rem;
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-cta-group .hero-cta:hover {
    background: #d4e84a;
    color: #07101f;
    box-shadow: 0 10px 40px rgba(212, 232, 74, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.hero-cta-group .hero-cta:active {
    transform: scale(0.98);
}

.hero-cta-group .hero-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-cta-group .hero-cta:hover::before {
    opacity: 1;
    animation: liquid-swirl 3s linear infinite;
}

@keyframes liquid-swirl {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.nav-cta {
    padding: 0.5rem 1.4rem;
    font-size: 0.65rem;
    z-index: 10;
    margin-right: auto;
    background-color: #3a6fd8;
    border-color: #3a6fd8;
    color: #ffffff !important;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.nav-cta:hover {
    background-color: #2e5ebd;
    border-color: #2e5ebd;
    box-shadow: 0 4px 15px rgba(58, 111, 216, 0.4);
    transform: translateY(-1px);
}

.text-yellow {
    color: #d4e84a;
}

.text-red {
    color: #84a7fb;
}

@media (max-width: 480px) {
    .nav-cta {
        padding: 0.4rem 1rem;
        font-size: 0.6rem;
    }
}

.hero-cta:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Removed glint effects for small button */

.hero-cta-text {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.hero-cta-arrow {
    display: none;
}

.hero-cta:hover .hero-cta-text {
    transform: none;
}

.hero-cta:active {
    transform: scale(0.98);
}

/* Service CTA - Compact version of Hero CTA */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.8rem 2.2rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--text-primary) 15%, transparent);
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 1.5rem;
}

.service-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            color-mix(in srgb, var(--text-primary) 4%, transparent) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
}

.service-cta.clicked-shine::after {
    animation: ctaGlint 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.service-cta-text {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.service-cta-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-cta:hover {
    border-color: color-mix(in srgb, var(--text-primary) 40%, transparent);
    padding-right: 1.8rem;
}

.service-cta:hover::before {
    opacity: 1;
}

.service-cta:hover .service-cta-text {
    transform: translateX(-4px);
}

.service-cta:hover .service-cta-arrow {
    width: 20px;
    opacity: 0.7;
}

.service-cta:active {
    transform: scale(0.98);
}

/* Services */
.services-wrapper {
    position: relative;
    overflow: hidden;
}

.services-section {
    position: relative;
    padding: 10rem 1.5rem;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* ── Services background images per section ──────────────────────────────────────── */
.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Mobile friendly */
    will-change: transform;
    transform: translateZ(0);
}

@media (min-width: 1024px) {
    .section-bg {
        background-attachment: fixed;
        /* Desktop parallax */
    }
}

/* Background images per section */

/* Additional Services / Extras (Parallax) */
.section-bg-extras {
    background-image: url('specialPhotos/parallax-bg.jpg');
}

@media (orientation: portrait) {
    .section-bg-extras {
        background-image: url('specialPhotos/parallax-bg.jpg');
    }
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--bg-color) 85%, transparent);
    z-index: 1;
}

.services-section .services-stack {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* ── Side-by-Side Split Layout ─────────────────────────────────────────────── */
.split-layout-row {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .split-layout-row {
        flex-direction: row;
        align-items: stretch;
        gap: 3rem;
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
    }

    .split-layout-row.reverse {
        flex-direction: row-reverse;
    }

    .split-layout-row>* {
        flex: 1;
        min-width: 0;
    }
}

.preview-card {
    position: relative;
    width: 100%;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    background: var(--bg-color);
}

.preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Parallax section cards inherit theme text */
.parallax-section .service-card {
    color: var(--text-primary);
}

/* Glass card — matches the regular service cards on bright background */
.premium-glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(120%) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Parallax section — all text inherits from theme now that bg is bright */
.parallax-section .service-card .service-desc,
.parallax-section .service-card .service-features,
.parallax-section .service-card .service-features li,
.parallax-section .offers-subtitle,
.parallax-section .offer-name,
.parallax-section .offer-detail,
.parallax-section .offer-rate-plan,
.parallax-section .offer-rate-value {
    color: var(--text-secondary) !important;
    text-shadow: none;
}

.parallax-section .offer-label {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

.parallax-section .offers-header {
    border-bottom: 1px solid var(--glass-border) !important;
}

.parallax-section .offer-divider {
    background: var(--glass-border) !important;
}

.parallax-section .ghost-button {
    color: var(--text-secondary);
    border-color: color-mix(in srgb, var(--text-primary) 20%, transparent);
}

.parallax-section .ghost-button:hover {
    color: var(--text-primary);
    background: color-mix(in srgb, var(--text-primary) 5%, transparent);
    border-color: color-mix(in srgb, var(--text-primary) 40%, transparent);
}

.services-section .services-stack {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the cards */
}

.services-intro-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
}

.services-intro-section .services-heading-block {
    margin-bottom: 0;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.services-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(110deg,
            #3a6fd8 0%,
            #84a7fb 20%,
            #d4e84a 38%,
            #84a7fb 55%,
            #3a6fd8 72%,
            #2c5fc8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diamondShine 5s linear infinite;
}

/* Premium Services heading block */
.services-heading-block {
    text-align: center;
    margin-bottom: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Decorative brand line under the title */
.services-heading-block::after {
    content: '';
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3a6fd8, #d4e84a);
    box-shadow: none;
    display: block;
    margin-top: 1.5rem;
    transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 2px;
}

.services-heading-block.visible::after {
    width: 140px;
}

.services-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    opacity: 0.8;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Services Layout */
.services-stack {
    display: flex;
    flex-direction: column;
    gap: 15rem;
    margin-top: 0;
    perspective: 1200px;
}

.service-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    justify-content: space-between;
    will-change: transform, opacity;
    transform-style: preserve-3d;
}

.service-card {
    position: relative;
    padding: 3rem;
    border-radius: 20px;
    background: rgba(240, 240, 240, 0.15);
    box-shadow: 0 30px 60px rgba(150, 150, 150, 0.15);
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    will-change: transform;
    transform: translateZ(0);
    z-index: 10;

    /* Centering and Aspect Ratio Constraint */
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    min-height: 650px;
    /* Ensure never wider than tall at max-width */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure cards with long content can still grow */
.service-card.expanded,
.service-card:has(.service-features:hover) {
    height: auto;
}

.service-info,
.service-media {
    position: relative;
    z-index: 1;
}

@keyframes snakeRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .service-row {
        flex-direction: row;
        justify-content: center;
    }

    .service-info {
        flex: 1;
        max-width: 100%;
    }
}

/* ── Standalone image cards (Removed) ──────────────────────────────────────── */

.service-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;

    background: linear-gradient(110deg,
            #3a6fd8 0%,
            #84a7fb 20%,
            #d4e84a 38%,
            #84a7fb 55%,
            #3a6fd8 72%,
            #2c5fc8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diamondShine 5s linear infinite;
}



/* Luxury Package Sparkle Glints */
#cardLuxury .service-info h3::before,
#cardLuxury .service-info h3::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #ffffff 20%, var(--diamond-refract) 40%, transparent 70%);
    /* 4-pointed star polygon */
    clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 6px var(--diamond-refract));
}

#cardLuxury .service-info h3::before {
    animation: randomGlints 4s linear infinite;
}

#cardLuxury .service-info h3::after {
    animation: randomGlints 5s linear infinite reverse;
    animation-delay: 2.5s;
}

.service-row:nth-child(1) .service-info h3 {
    animation-delay: 0s;
}

.service-row:nth-child(2) .service-info h3 {
    animation-delay: 1.5s;
}

.service-row:nth-child(3) .service-info h3 {
    animation-delay: 3s;
}

.service-row:nth-child(4) .service-info h3 {
    animation-delay: 4.5s;
}

.service-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
    opacity: 1;
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.service-features li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.02em;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    opacity: 0.7;
}

.service-features li.no-bullet::before {
    display: none;
}

.service-features li.no-bullet {
    padding-left: 0;
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.8;
}

.service-link {
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.8rem 2rem;
}

/* Service Media & Local Canvases */
.service-media {
    width: 100%;
    min-height: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slideshow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slideshow-wrapper .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), transform 5s ease;
    /* Slower, more dynamic transform */
    transform: scale(1.1);
    filter: brightness(0.8) saturate(1.1);
    pointer-events: none;
    z-index: 0;
}

.slideshow-wrapper .slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.service-image-card:hover .slideshow-wrapper .slide.active {
    transform: scale(1.1);
    /* Zoom in on hover */
}

.service-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

/* Slideshow Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(2, 1, 26, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f7;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    /* Hidden until hover */
    transition: all 0.3s ease;
}

.service-media:hover .slide-nav {
    opacity: 1;
}

.slide-nav:hover {
    background: rgba(132, 167, 251, 0.15);
    border-color: #84a7fb;
    color: #84a7fb;
    transform: translateY(-50%) scale(1.05);
}

.slide-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-arrow {
    left: 1rem;
}

.next-arrow {
    right: 1rem;
}

/* Allow clicking images to expand */
.slideshow-wrapper .slide {
    cursor: zoom-in;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-content {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

@keyframes breathOfLife {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.03);
        filter: brightness(1.1);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #d4e84a;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    text-shadow: 0 0 15px rgba(212, 232, 74, 0.7);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 232, 74, 0.3);
    color: #d4e84a;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-nav:hover {
    background: rgba(212, 232, 74, 0.15);
    border-color: #d4e84a;
    box-shadow: 0 0 20px rgba(212, 232, 74, 0.35);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

.lightbox-close:hover {
    color: #ffffff;
}

.card-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    border-radius: 20px;
    pointer-events: auto;
    /* Allow interactions */
    cursor: pointer;
}

.card-canvas.active {
    opacity: 1;
}

.placeholder-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* =============================================
   CTA / Contact — Terminal-style footer
   ============================================= */
.contact-cta {
    padding: 6rem 2rem 4rem;
    position: relative;
}

/* Two-column contact layout */
.contact-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Form Column */
.contact-form-column {
    text-align: left;
}

.contact-form-column .cta-heading {
    text-align: left;
}

.contact-form-column .cta-subtext {
    text-align: left;
    margin-bottom: 2rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    opacity: 0.7;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-input::placeholder {
    color: var(--text-primary);
    opacity: 0.35;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2.4rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    background: #3a6fd8;
    border: none;
    color: #ffffff;
    letter-spacing: 0.2em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 0.5rem;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(58, 111, 216, 0.3);
}

.contact-submit-btn:hover {
    background: #2e5ebd;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 111, 216, 0.45);
    color: #ffffff;
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-submit-btn:hover::before {
    opacity: 1;
    animation: liquid-swirl 3s linear infinite;
}

.contact-submit-btn:active {
    transform: scale(0.98);
}

.contact-submit-btn.success {
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    color: #02011a;
}

/* Right Column: Info */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Contact Pills (Phone / Email) */
.contact-quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-pill:hover {
    border-color: #84a7fb;
    box-shadow: 0 4px 20px rgba(132, 167, 251, 0.2);
    transform: translateY(-2px);
    color: #84a7fb;
}

.contact-pill svg {
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.contact-pill:hover svg {
    opacity: 1;
}

/* Location Block */
.contact-location-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(132, 167, 251, 0.2);
}

.contact-location-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #84a7fb;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(132, 167, 251, 0.3);
}

.contact-location-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    opacity: 0.7;
    line-height: 1.6;
}

/* Map */
.contact-map-wrapper {
    margin-top: 2rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(132, 167, 251, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.contact-map-wrapper:hover {
    border-color: #84a7fb;
    box-shadow: 0 0 25px rgba(132, 167, 251, 0.2);
}

.contact-map-wrapper iframe {
    border-radius: 12px;
    filter: grayscale(0.5) contrast(1.1) brightness(0.9);
    transition: filter 0.5s ease;
    display: block;
    width: 100%;
}

.cta-terminal {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Ambient glow & light beam behind the terminal panel */
.cta-terminal::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -60px;
    /* Reduced extension so it doesn't bleed into next section */
    background:
        /* The main diffuse aura around the box */
        radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent-color) 15%, transparent) 0%, transparent 70%),
        /* A softer, shorter pillar of light */
        linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--accent-color) 12%, transparent) 50%, transparent 95%);
    filter: blur(35px);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    /* Hidden until powered */
    transition: opacity 1s ease;
}

.cta-terminal.powered::before {
    opacity: 1;
}

/* Secondary concentrated ray of light cascading from the button specifically */
.cta-terminal::after {
    content: '';
    position: absolute;
    bottom: -40px;
    /* Reduced to prevent bleed */
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 120px;
    /* Shorter ray */
    background: conic-gradient(from 140deg at 50% 0%, transparent 0deg, color-mix(in srgb, var(--accent-color) 20%, transparent) 40deg, transparent 80deg);
    filter: blur(40px);
    pointer-events: none;
    z-index: -2;
    opacity: 0;
    /* Hidden until powered */
    transition: opacity 1s ease 0.3s;
    /* Slight delay for the ray */
}

.cta-terminal.powered::after {
    opacity: 1;
}

@keyframes rgbShadow {
    0% {
        box-shadow: 0 0 25px rgba(255, 0, 85, 0.5);
        border-color: rgba(255, 0, 85, 0.8);
    }

    25% {
        box-shadow: 0 0 25px rgba(170, 0, 255, 0.5);
        border-color: rgba(170, 0, 255, 0.8);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 170, 255, 0.5);
        border-color: rgba(0, 170, 255, 0.8);
    }

    75% {
        box-shadow: 0 0 25px rgba(0, 255, 170, 0.5);
        border-color: rgba(0, 255, 170, 0.8);
    }

    100% {
        box-shadow: 0 0 25px rgba(255, 0, 85, 0.5);
        border-color: rgba(255, 0, 85, 0.8);
    }
}

.cta-terminal.powered {
    animation: rgbShadow 4s linear infinite;
    transition: box-shadow 0.6s ease;
}

.cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;

    background: linear-gradient(110deg,
            #3a6fd8 0%,
            #84a7fb 20%,
            #d4e84a 38%,
            #84a7fb 55%,
            #3a6fd8 72%,
            #2c5fc8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diamondShine 5s linear infinite;
}

.cta-subtext {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* Glow intensify on hover */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 4px color-mix(in srgb, var(--accent-color) 60%, transparent);
    }

    50% {
        box-shadow: 0 0 6px color-mix(in srgb, var(--accent-color) 80%, transparent),
            0 0 8px color-mix(in srgb, var(--accent-color) 40%, transparent);
    }
}

/* Premium Email CTA */
.email-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.2rem 3.8rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6780c2;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
        linear-gradient(90deg, #6780c2, #84a7fb, #e9fd8e) border-box;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 1.5rem auto 0;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .email-cta {
        padding: 1rem 1.8rem;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
}

.email-cta:hover {
    color: #ffffff;
    background: linear-gradient(90deg, #6780c2, #84a7fb, #e9fd8e) border-box;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(103, 128, 194, 0.3);
}

.email-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, color-mix(in srgb, var(--text-primary) 4%, transparent) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.email-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
}

.email-cta.clicked-shine::after {
    animation: ctaGlint 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.email-cta-icon {
    display: flex;
    align-items: center;
    margin-right: 1.25rem;
    opacity: 0.8;
}

.email-cta-text {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.email-cta-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.email-cta:hover {
    border-color: color-mix(in srgb, var(--text-primary) 60%, transparent);
    padding-right: 2.5rem;
    box-shadow: 0 0 30px color-mix(in srgb, var(--text-primary) 5%, transparent);
}

.email-cta:hover::before {
    opacity: 1;
}

.email-cta:hover .email-cta-text {
    transform: translateX(-6px);
}

.email-cta:hover .email-cta-arrow {
    width: 28px;
    opacity: 0.7;
}

/* Powered state for email-cta */
.cta-terminal.powered .email-cta {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.email-cta:active {
    transform: scale(0.98);
}

/* Service card website link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.25rem;
    padding: 0.5rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-color);
    border: 1px solid color-mix(in srgb, var(--accent-color) 35%, transparent);
    border-radius: 100px;
    background: color-mix(in srgb, var(--accent-color) 8%, transparent);
    transition: all 0.25s ease;
}

.card-link:hover {
    background: color-mix(in srgb, var(--accent-color) 18%, transparent);
    border-color: var(--accent-color);
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent-color) 30%, transparent);
    transform: translateY(-2px);
}

.card-link:active {
    transform: scale(0.97);
}

.card-link svg {
    flex-shrink: 0;
}

/* Footer */
footer {
    padding: 4rem 1.5rem calc(5rem + var(--safe-bottom));
    border-top: 1px solid var(--glass-border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    letter-spacing: 0.05em;
    font-family: var(--font-body);
    line-height: 1.8;
}

.heritage-text {
    color: var(--accent-color);
    font-weight: 600;
    white-space: nowrap;
}

.rights-split {
    margin: 0 0.5rem;
    opacity: 0.3;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.footer-logo span {
    display: block;
    line-height: 0.85;
    max-width: 100px;
    text-align: center;
    position: relative;
    /* For glints */
    --diamond-glow: #ffffff;
    --diamond-refract: #d4e84a;
    background: linear-gradient(110deg,
            var(--text-primary) 15%,
            #d1d5db 35%,
            var(--diamond-glow) 45%,
            var(--diamond-refract) 50%,
            var(--diamond-glow) 55%,
            #d1d5db 65%,
            var(--text-primary) 85%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diamondShine 4s linear infinite;
}

.footer-logo span::before,
.footer-logo span::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    opacity: 0;
    pointer-events: none;
}

.footer-logo span::before {
    top: -8px;
    left: -10px;
    animation: randomGlints 6s infinite;
}

.footer-logo span::after {
    bottom: -8px;
    right: -10px;
    animation: randomGlints 8s infinite;
    animation-delay: 3s;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* =============================================
   Learn More Section
   ============================================= */
.learn-more-section {
    padding: 10rem 1.5rem 8rem;
    max-width: 800px;
    margin: 0 auto;
}

.learn-card {
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.knowledge-quote {
    position: relative;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.35em;
    line-height: 1.8;
    color: var(--text-primary);
    text-transform: uppercase;
    opacity: 0.5;
    margin: 0;
    padding: 0 1rem;
}

.quote-mark {
    display: none;
}

.knowledge-quote cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.7;
}

.learn-divider {
    width: 40px;
    height: 1px;
    margin: 6rem auto;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    opacity: 0.15;
}

.learn-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.4;
    margin-bottom: 2.5rem;
}

.learn-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
}

.learn-links li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
    border-radius: 0;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.6;
}

.learn-links li a:hover {
    opacity: 1;
    border-color: var(--text-primary);
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--text-primary) 3%, transparent);
}

.learn-links li a svg {
    opacity: 0.5;
    transition: transform 0.4s ease;
}

.learn-links li a:hover svg {
    transform: translate(2px, -2px);
    opacity: 1;
}



/* =============================================
   Advanced Animations & Layers
   ============================================= */

/* Canvas Particle System Layer */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Under everything else */
    opacity: 0.45;
    pointer-events: none;
}

/* Make sure main content is above canvas */
main,
nav,
footer,
.floating-notepad {
    position: relative;
    z-index: 10;
}

/* Dynamic Power Line Overlay */
/* Lottie Container */
.lottie-container {
    display: none;
}

/* =============================================
   Animations (Intersection Observer)
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Responsive: Tablets+ (2×2 grid)
   ============================================= */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-terminal {
        padding: 4rem 3rem;
    }
}

/* =============================================
   Floating Notepad Component
   ============================================= */
.floating-notepad {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 360px;
    max-width: calc(100vw - 4rem);
    height: 460px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: var(--np-panel);
    border: 1px solid rgba(103, 128, 194, 0.15);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-notepad.collapsed {
    height: 42px !important;
    width: 42px !important;
    /* Perfectly circular single-button state */
    border-radius: 21px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(4, 1, 46, 0.3) !important;
    backdrop-filter: blur(10px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

/* Blue/Purple Soapy Glow Effect */
.floating-notepad.has-glow {
    box-shadow: 0 0 40px rgba(103, 128, 194, 0.4),
        inset 0 0 20px rgba(162, 0, 255, 0.2);
    border-color: rgba(103, 128, 194, 0.6);
}

/* Hide ALL controls except the toggle eye when collapsed */
.floating-notepad.collapsed .notepad-btn:not(.toggle-btn) {
    display: none;
}

/* Hide body and footer entirely when collapsed */
.floating-notepad.collapsed .notepad-body,
.floating-notepad.collapsed .notepad-footer {
    display: none;
}


/* Slim down the header in collapsed mode and center the single button */
.floating-notepad.collapsed .notepad-header {
    height: 42px;
    padding: 0;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.notepad-header {
    padding: 0.6rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
    background: transparent;
    border-bottom: 1px solid rgba(103, 128, 194, 0.1);
    gap: 0.4rem;
    height: 50px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.notepad-header .header-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.notepad-body {
    flex: 1;
    background: rgba(0, 4, 10, 0.4);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.3s ease;
}

.notepad-input-group {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(103, 128, 194, 0.1);
    flex: 1;
    /* Unit size */
    display: flex;
    align-items: center;
}

.notepad-message-group {
    flex: 3;
    /* 3x Unit size */
    display: flex;
    flex-direction: column;
    margin-top: 0.75rem;
}

.notepad-section-tag {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--np-text-dim);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.notepad-email-input,
.notepad-phone-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--np-accent);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
    letter-spacing: 0.05em;
}

.notepad-email-input::placeholder,
.notepad-phone-input::placeholder {
    color: var(--np-text-dim);
    opacity: 0.6;
}

.notepad-actions {
    margin-top: auto;
    padding-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.notepad-send-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 1.4rem;
    background: var(--accent-color);
    color: #02011a;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(233, 253, 142, 0.2);
}

.notepad-send-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(233, 253, 142, 0.4);
    filter: brightness(1.05);
}

.notepad-send-btn:active {
    transform: scale(0.96);
}

.notepad-send-btn.success {
    background: var(--accent-color) !important;
    color: #02011a !important;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.gallery-dropdown-btn {
    transition: transform 0.3s ease;
}

.gallery-dropdown-btn.active svg {
    transform: rotate(180deg);
}

.notepad-send-btn:hover svg {
    transform: translate(2px, -2px) scale(1.1);
}

.notepad-body textarea {
    width: 100%;
    flex: 1;
    background: transparent;
    border: none;
    color: var(--np-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    resize: none;
    outline: none;
    padding: 0;
}

.notepad-body textarea::placeholder {
    color: var(--np-text-dim);
    opacity: 0.5;
}

.music-toggle.playing svg {
    animation: vinylSpin 3s linear infinite;
    color: var(--accent-color);
}

@keyframes vinylSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.notepad-footer {
    padding: 0.4rem 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--np-panel-soft);
    min-height: 28px;
    flex-shrink: 0;
    border-top: 1px solid var(--np-line);
    transition: background 0.3s ease;
}

/* Notepad control buttons */
.notepad-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--np-btn-color);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    opacity: 0.7;
}

.notepad-btn:hover {
    color: #e9fd8e;
    opacity: 1;
    transform: translateY(-1px);
    /* Subtle hover outline */
    border-color: rgba(103, 128, 194, 0.3);
}

/* "Enabled" state with glowing outlines */
.notepad-btn.active-mode {
    border-color: #e9fd8e !important;
    box-shadow: 0 0 10px rgba(233, 253, 142, 0.4);
    opacity: 1;
    color: #e9fd8e;
}

.notepad-btn.clear:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.notepad-btn.copy:hover {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.notepad-btn.copy.copied {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.5);
}

.notepad-btn.minimize-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--np-accent);
    border-color: color-mix(in srgb, var(--np-accent) 60%, transparent);
}

/* Theme Toggle icon handling */
.theme-toggle svg {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle:hover svg {
    transform: scale(1.15) rotate(15deg);
}

@keyframes atomPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.5);
    }
}

/* Resize handles — all 4 corners */
.gt-resizer {
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 1001;
}

.gt-nw {
    top: 0;
    left: 0;
    cursor: nwse-resize;
}

.gt-ne {
    top: 0;
    right: 0;
    cursor: nesw-resize;
}

.gt-sw {
    bottom: 0;
    left: 0;
    cursor: nesw-resize;
}

.gt-se {
    bottom: 0;
    right: 0;
    cursor: nwse-resize;
}

@keyframes textShimmer {
    0% {
        background-position: 200% center;
    }

    20% {
        background-position: -200% center;
    }

    100% {
        background-position: -200% center;
    }
}

@keyframes ambientOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Base style cleaning */
::selection {
    background: var(--accent-color);
    color: #fff;
}



@keyframes ambientOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* =============================================
   BIOLUMINESCENT MODE (GLOW)
   ============================================= */
body.bg-glow {
    --glow-main: #6780c2;
    --glow-secondary: #e9fd8e;
    --glow-fade: rgba(103, 128, 194, 0.3);
    --particle-color: var(--glow-main);
    --accent-glow: var(--glow-fade);
    background: radial-gradient(circle at 50% 50%, #000814 0%, #050505 100%);
    transition: background 0.8s ease;
}

/* Brand Blue Glow for Light Theme */
body[data-theme="light"].bg-glow {
    --glow-main: #3a6fd8;
    --glow-secondary: #84a7fb;
    --glow-fade: rgba(58, 111, 216, 0.3);
    background: radial-gradient(circle at 50% 50%, #eef2fc 0%, #f5f7fc 100%);
}

body.bg-glow .hero-title {
    color: var(--glow-main);
    text-shadow: 0 0 25px var(--glow-fade);
    opacity: 0.9;
    transition: all 0.8s ease;
}

body.bg-glow .hero-logo-text {
    color: var(--glow-main);
    opacity: 0.9;
    transition: all 0.8s ease;
}

body.bg-glow .hero-subtitle {
    color: var(--glow-secondary);
    opacity: 0.7;
    transition: all 0.8s ease;
}

/* Removed glow theme styling for hero-cta */

body.bg-glow .nav-logo-svg {
    filter: none !important;
    opacity: 1 !important;
}

body.bg-glow .nav-logo-svg path,
body.bg-glow .nav-logo-svg line,
body.bg-glow .nav-logo-svg circle {
    stroke: var(--glow-main) !important;
    filter: drop-shadow(0 0 6px var(--glow-main));
    stroke-width: 1.8;
    opacity: 1 !important;
}

body.bg-glow .nav-logo-svg circle[r="1.5"] {
    fill: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    opacity: 1 !important;
}

body.bg-glow .glass-nav {
    border-bottom-color: var(--glow-fade);
    box-shadow: 0 4px 30px color-mix(in srgb, var(--glow-main) 5%, transparent);
}

body.bg-glow #menuToggle span {
    background-color: var(--glow-main);
    transition: background-color 0.8s ease;
}

/* Compress notepad to 3 buttons when fully minimized */
.floating-notepad.collapsed .notepad-btn.copy,
.floating-notepad.collapsed .notepad-btn.clear,
.floating-notepad.collapsed .notepad-btn.minimize-btn {
    display: none !important;
}

/* =========================================
   Detailing Pricing & Promo Cards
   ========================================= */

.price-display,
.promo-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    width: 100%;
}

.glass-card {
    background: color-mix(in srgb, var(--text-primary) 5%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--text-primary) 15%, transparent);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

body[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.4);
}

.price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    min-width: 240px;
    position: relative;
    overflow: hidden;
}

.price-tag::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--text-primary) 10%, transparent), transparent 70%);
    pointer-events: none;
}

.price-tag:hover,
.promo-tag:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.08);
}

.price-label {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.promo-tag {
    padding: clamp(1.5rem, 6vw, 3rem);
    text-align: left;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(8, 14, 30, 0.9);
    border: 2px solid #3a6fd8;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    animation: kenteGlow 4s infinite;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.promo-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #84a7fb, #d4e84a, #3a6fd8);
    border-radius: 4px 0 0 4px;
}

@keyframes kenteGlow {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(58, 111, 216, 0.5), inset 0 0 15px rgba(58, 111, 216, 0.2);
        border-color: #3a6fd8;
    }

    50% {
        box-shadow: 0 0 35px rgba(212, 232, 74, 0.5), inset 0 0 15px rgba(212, 232, 74, 0.2);
        border-color: #d4e84a;
    }
}

.promo-tag h4 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #84a7fb;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid #d4e84a;
    padding-bottom: 0.8rem;
    line-height: 1.2;
}

.promo-tag p,
.promo-tag li {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    font-weight: 600;
    line-height: 1.6;
    color: #a8c4fa;
    margin-bottom: 1.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promo-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
}

.highlight {
    color: #84a7fb;
    font-weight: 800;
    text-transform: uppercase;
}

body[data-theme="light"] .highlight {
    color: #3a6fd8;
}

@keyframes diamondShine {
    0% {
        background-position: 200% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes randomGlints {

    0%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
        top: 5%;
        left: 10%;
    }

    5% {
        opacity: 1;
        transform: scale(1.6) rotate(90deg);
    }

    10% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }

    25% {
        opacity: 0;
        top: 35%;
        left: 80%;
    }

    30% {
        opacity: 1;
        transform: scale(1.2) rotate(45deg);
    }

    35% {
        opacity: 0;
        transform: scale(0) rotate(90deg);
    }

    50% {
        opacity: 0;
        top: 65%;
        left: 20%;
    }

    55% {
        opacity: 1;
        transform: scale(1.8) rotate(-45deg);
    }

    60% {
        opacity: 0;
        transform: scale(0) rotate(-90deg);
    }

    75% {
        opacity: 0;
        top: 15%;
        left: 60%;
    }

    80% {
        opacity: 1;
        transform: scale(1.4) rotate(120deg);
    }

    85% {
        opacity: 0;
        transform: scale(0) rotate(240deg);
    }
}


/* Footer Glow Mode */
body.bg-glow footer {
    border-top-color: var(--glow-fade);
    box-shadow: 0 -10px 40px color-mix(in srgb, var(--glow-main) 8%, transparent);
    transition: all 0.8s ease;
}

body.bg-glow .footer-logo-img {
    filter: none;
    opacity: 1 !important;
}

body.bg-glow .footer-logo span {
    text-shadow: 0 0 10px rgba(103, 128, 194, 0.4);
}


/* Intensified Footer Car Icon Glow */
body.bg-glow .footer-logo-img path,
body.bg-glow .footer-logo-img line,
body.bg-glow .footer-logo-img circle {
    stroke: var(--glow-main) !important;
    filter: drop-shadow(0 0 6px var(--glow-main));
    stroke-width: 1.5px;
    opacity: 0.9 !important;
}

body.bg-glow .footer-logo-img circle[r="1.5"] {
    fill: #ffffff !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* Gallery Section Styles - Bright, matches services area */
.gallery-section {
    padding: 8rem 0;
    overflow: hidden;
    position: relative;
    background: var(--bg-color);
    color: var(--text-primary);
}

.gallery-section .services-title {
    text-shadow: none;
}

.gallery-section .services-tagline {
    color: var(--text-secondary);
}

.gallery-section .services-heading-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-treadmill-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 2rem 0;
    background: transparent;
}

.gallery-treadmill-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    /* Soft fade on edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-treadmill-track {
    display: flex;
    width: max-content;
    animation: treadmill 60s linear infinite;
    will-change: transform;
}

.gallery-treadmill-track:hover {
    animation-play-state: paused;
}

.treadmill-card {
    flex-shrink: 0;
    width: 350px;
    aspect-ratio: 16/9;
    margin-right: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--glass-border);
}

.treadmill-card:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 2;
    border-color: rgba(132, 167, 251, 0.4);
    box-shadow: 0 18px 40px rgba(58, 111, 216, 0.2);
}

.treadmill-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes treadmill {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.view-all-gallery-container {
    text-align: center;
    margin-top: 4rem;
}

.view-all-gallery-btn {
    padding: 1rem 3rem;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid color-mix(in srgb, var(--text-primary) 20%, transparent);
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-weight: 300;
}

.view-all-gallery-btn:hover {
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--text-primary) 50%, transparent);
    background: color-mix(in srgb, var(--text-primary) 5%, transparent);
    transform: translateY(-2px);
}

/* Testimonials Styles */
/* Testimonials Styles */
.testimonials-section {
    padding: 8rem 2rem;
    background: radial-gradient(circle at top center, rgba(132, 167, 251, 0.03) 0%, transparent 60%);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    margin: 4rem auto 0;
}

.premium-testimonial-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--text-primary) 3%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-primary) 8%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--text-primary) 15%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.premium-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: color-mix(in srgb, var(--text-primary) 15%, transparent);
}

.premium-testimonial-card.success-story-card {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
    background: color-mix(in srgb, var(--accent-color) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-color) 15%, transparent);
    align-items: center;
}

.testimonial-text {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-family: var(--font-body);
    font-style: italic;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    opacity: 0.9;
    position: relative;
}

/* Elegant quote mark */
.premium-testimonial-card:not(.success-story-card) .testimonial-text::before {
    content: "“";
    font-size: 4rem;
    font-family: serif;
    position: absolute;
    top: -1.5rem;
    left: -1rem;
    opacity: 0.1;
    color: var(--text-primary);
    pointer-events: none;
}

.testimonial-author {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-top: auto;
}

.success-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* ── Special Offers Card ────────────────────────────────────────────────────── */
#cardOffers {
    margin-top: 0;
}

.offers-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--text-primary) 10%, transparent);
}

.offers-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    background: linear-gradient(110deg,
            #3a6fd8 0%, #84a7fb 20%, #d4e84a 38%,
            #84a7fb 55%, #3a6fd8 72%, #2c5fc8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diamondShine 5s linear infinite;
}

.offers-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin: 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 0 2rem;
}

@media (max-width: 767px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offer-divider {
        width: 100%;
        height: 1px;
        margin: 1.5rem 0;
    }
}

.offer-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.offer-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.offer-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
}

.offer-detail {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.offer-rates {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.offer-rates li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text-primary) 8%, transparent);
}

.offer-rates li:last-child {
    border-bottom: none;
}

.offer-rate-plan {
    color: var(--text-secondary);
}

.offer-rate-value {
    font-weight: 700;
    color: var(--text-primary);
}

.offer-divider {
    width: 1px;
    align-self: stretch;
    background: color-mix(in srgb, var(--text-primary) 10%, transparent);
}

/* Special Logo Glyphs in Title */
.hero-title .special-a,
.hero-title .special-c,
.hero-title .special-i {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    vertical-align: middle;
    background: currentColor;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    margin: 0 -0.1em;
    position: relative;
    /* Ensure the gradient shine still applies */
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.special-a {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 90 L10 90 Z M50 65 A 6 6 0 1 1 49.9 65 Z' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L90 90 L10 90 Z M50 65 A 6 6 0 1 1 49.9 65 Z' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.special-c {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M85 25 A 40 40 0 1 0 85 75 M80 75 L80 85 L90 85 L90 75 Z' fill='none' stroke='black' stroke-width='14'/%3E%3Crect x='78' y='72' width='14' height='14' fill='black'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M85 25 A 40 40 0 1 0 85 75 M80 75 L80 85 L90 85 L90 75 Z' fill='none' stroke='black' stroke-width='14'/%3E%3Crect x='78' y='72' width='14' height='14' fill='black'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

.special-i {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='42' y='25' width='16' height='75'/%3E%3Ccircle cx='50' cy='10' r='8'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='42' y='25' width='16' height='75'/%3E%3Ccircle cx='50' cy='10' r='8'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

/* Nav Theme Toggle Styling */
.nav-theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 10px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    z-index: 1000;
}

.nav-theme-toggle:hover {
    transform: scale(1.2);
    color: #d4e84a;
}

.nav-theme-toggle svg {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
}

/* Nav Music Controls — grouped pair, ghost transparent by default */
.nav-music-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 10px;
    opacity: 0.25;
    transition: opacity 0.4s ease;
}

.nav-music-group:hover {
    opacity: 0.75;
}

.nav-music-group:has(.playing) {
    opacity: 0.6;
}

.nav-music-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.25s ease;
    z-index: 1000;
}

.nav-music-toggle:hover {
    transform: scale(1.15);
    color: #d4e84a;
}

.nav-music-toggle.playing {
    color: #d4e84a;
}

.nav-music-toggle.playing svg {
    animation: vinylSpin 3s linear infinite;
}

@media (max-width: 768px) {
    .nav-theme-toggle {
        margin-right: 10px;
        padding: 5px;
    }
}

/* Menu Theme Toggle Styling */
.menu-theme-item {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
}

.menu-theme-toggle:hover {
    background: rgba(212, 232, 74, 0.1);
    border-color: #d4e84a;
    transform: translateY(-3px);
}

.theme-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-icon-wrap {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.menu-theme-toggle:hover .theme-icon-wrap {
    transform: rotate(15deg) scale(1.2);
}

body[data-theme="light"] .menu-theme-toggle {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .menu-theme-toggle:hover {
    background: rgba(58, 111, 216, 0.1);
    border-color: #3a6fd8;
}

/* ── Full-Screen Grid Modal ────────────────────────────────────────────────── */
.grid-modal {
    position: fixed;
    inset: 0;
    z-index: 99;
    /* Below the main lightbox */
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.grid-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.grid-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.grid-modal-title {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.grid-modal-close {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.grid-modal-close:hover {
    color: var(--accent-color);
}

.grid-modal-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}

.grid-modal-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.grid-modal-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.grid-modal-scroll-area::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.grid-modal-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .grid-modal-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-thumbnail {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.grid-thumbnail:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* =============================================
   Scroll-to-Top Button
   ============================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
    z-index: 990;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: #3a6fd8;
    border-color: #3a6fd8;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(58, 111, 216, 0.45);
}

.scroll-top-btn:active {
    transform: scale(0.94);
    box-shadow: 0 2px 10px rgba(58, 111, 216, 0.3);
}

/* =============================================
   Services Overview — main page brief cards
   ============================================= */
.services-overview-section {
    padding: 8rem 2rem 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-brief-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1080px;
    width: 100%;
    margin-top: 4rem;
}

@media (max-width: 900px) {
    .services-brief-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 680px;
    }
}

@media (max-width: 560px) {
    .services-brief-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
}

.svc-brief-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.svc-brief-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.13);
    border-color: rgba(132, 167, 251, 0.45);
}

.svc-brief-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.svc-brief-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.svc-brief-card:hover .svc-brief-img img {
    transform: scale(1.06);
}

.svc-brief-body {
    padding: 1.6rem 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.svc-brief-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    background: linear-gradient(110deg,
            #3a6fd8 0%, #84a7fb 20%, #d4e84a 38%,
            #84a7fb 55%, #3a6fd8 72%, #2c5fc8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diamondShine 5s linear infinite;
}

.svc-brief-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 1.6rem;
    flex: 1;
}

.svc-brief-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 0.65rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background: #3a6fd8;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(58, 111, 216, 0.3);
}

.svc-brief-btn:hover {
    background: #2e5ebd;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58, 111, 216, 0.45);
    color: #ffffff;
}