/* ============================================================
   PULSE PARK — MAIN STYLESHEET
   Base + Global + Components + Sections + Responsive
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
    --bg-color: #fdfdfd;
    --dark-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e8ecf0;

    --accent: #2E5AAC;
    --accent-red: #D32F2F;
    --accent-blue: #2E5AAC;
    --accent-dark: #2E5AAC;

    --text-light: #ffffff;
    --text-muted: #64748b;
    --text-dim: #475569;
    --text-dark: #0f172a;

    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-full: 9999px;

    --header-height: 80px;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Typography scale */
    --fs-h1: 4.5rem;
    --fs-h2: 3.5rem;
    --fs-h3: 2rem;
    --fs-h4: 1.45rem;
    --fs-h5: 1.25rem;
    --fs-h6: 1.1rem;
    --fs-lg: 1.25rem;
    --fs-base: 1rem;
    --fs-sm: 0.95rem;
    --fs-xs: 0.85rem;

    /* Font weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --fw-black: 900;

    /* Line heights */
    --lh-tight: 1.1;
    --lh-snug: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.65;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

img,
video,
svg {
    max-width: 100%;
}

/* ── Base ── */
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

main {
    margin-top: 50px !important;
}

section {
    padding: 100px 0;
    width: 100%;
}

section:nth-of-type(even) {
    background-color: #f7f9fc;
    padding: 100px 0;
}

section:nth-of-type(even) > .container {
    max-width: 1320px;
    margin: 0 auto;
}

/* ── Typography ── */
h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: -2px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: -2px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-snug);
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

h5 {
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    margin-bottom: 12px;
    color: var(--text-dark);
}

h6 {
    font-size: var(--fs-h6);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
}

p {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: var(--text-dim);
    margin-bottom: 16px;
}

.lead-text,
.text-lg {
    font-size: var(--fs-lg);
    line-height: var(--lh-relaxed);
    color: var(--text-dark);
    font-weight: var(--fw-medium);
}

.lead-text {
    margin-bottom: 40px;
    max-width: 90%;
}

.text-small {
    font-size: var(--fs-xs);
    line-height: var(--lh-normal);
    color: var(--text-muted);
}

strong,
.text-bold {
    font-weight: var(--fw-bold);
    color: var(--text-dark);
}

em,
.text-emphasis {
    font-style: italic;
    color: var(--accent);
}

.badge {
    color: var(--accent);
    font-weight: var(--fw-extrabold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: var(--fs-xs);
    margin-bottom: 20px;
    display: inline-block;
}

/* ── Loading Screen ── */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-logo {
    width: 200px;
    animation: loaderPulse 2s infinite ease-in-out;
}

.loader-bar-container {
    width: 250px;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-blue), var(--accent-red));
    animation: loaderProgress 5s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%       { transform: scale(1.05); opacity: 1; }
}

@keyframes loaderProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Navigation ── */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    position: sticky;
    top: 20px;
    z-index: 2000;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    margin: 20px auto;
    width: calc(100% - 40px);
    max-width: 1320px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.brand-logo {
    height: 70px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover {
    color: var(--accent-dark);
}

/* Dropdown */
.dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 12px;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    color: var(--text-dark);
    font-weight: var(--fw-medium);
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(46, 90, 172, 0.1);
    color: var(--accent-dark);
}

.dropdown a svg {
    margin-top: 2px;
}

    /* ── Active nav link ── */
    .nav-active {
        color: var(--accent) !important;
    }

    /* ── Mobile nav toggle (hidden on desktop) ── */
    .menu-toggle {
        display: none;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.92);
        color: #0f172a;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: border-color 0.25s ease, color 0.25s ease;
        flex-shrink: 0;
    }

    .menu-toggle:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

    /* ── Overlay backdrop ── */
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 2400;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    /* ── Sidebar brand header (hidden on desktop) ── */
    .mobile-sidebar-brand {
        display: none;
    }

    /* ── Sidebar CTA (hidden on desktop, shown inside sidebar) ── */
    .sidebar-cta {
        display: none;
    }

    /* ── Mobile: sidebar drawer ── */
    @media (max-width: 900px) {

        /* Glass nav becomes a flex row pill */
        .glass-nav {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            position: fixed;
            top: 8px;
            left: 0;
            right: 0;
            margin: 0 auto;
            width: calc(100% - 12px);
            border-radius: 16px;
            z-index: 2500;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            background: transparent;
        }

        /* Replicate glass blur via ::before so fixed children work correctly */
        .glass-nav::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.72);
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
            z-index: -1;
        }

        .glass-nav .brand-logo { height: 68px; }

        .glass-nav .logo {
            order: 3;
            margin-left: auto;
        }

        .menu-toggle {
            display: inline-flex;
            order: 1;
        }

        .glass-nav .nav-actions { display: none; }

        /* ── Sidebar panel ── */
        .glass-nav .nav-links {
            position: fixed;
            top: 0;
            left: 0;
            width: min(84vw, 320px);
            height: 100dvh;
            margin: 0;
            background: #ffffff;
            padding: 0;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 0;                              /* ← no gaps between items */
            transform: translate3d(-104%, 0, 0);
            transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                        visibility 0s linear 0.28s;
            visibility: hidden;
            z-index: 2600;
            align-items: stretch;
        }

        /* Sidebar brand header */
        .mobile-sidebar-brand {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
            flex-shrink: 0;
        }

        .mobile-sidebar-brand img {
            height: 160px;
            width: 100%;
            object-fit: contain;
            display: block;
            padding: 16px 24px;
        }

        .sidebar-close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 34px;
            height: 34px;
            border: none;
            background: rgba(15, 23, 42, 0.06);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #1e293b;
            transition: background 0.18s, color 0.18s;
            flex-shrink: 0;
        }

        .sidebar-close-btn:hover {
            background: rgba(15, 23, 42, 0.12);
        }

        /* ── Sidebar nav items — seamless, no gaps ── */
        .glass-nav .nav-links > a.nav-item,
        .glass-nav .nav-links .dropdown.nav-item {
            border-bottom: 1px solid rgba(15, 23, 42, 0.06);
            margin: 0;
        }

        .glass-nav .nav-links > a.nav-item {
            display: flex;
            align-items: center;
            padding: 14px 20px;
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f172a;
            text-decoration: none;
            transition: background 0.18s, color 0.18s;
        }

        .glass-nav .nav-links > a.nav-item:hover,
        .glass-nav .nav-links > a.nav-item.nav-active {
            background: rgba(46, 90, 172, 0.06);
            color: var(--accent);
        }

        /* Dropdown parent row */
        .glass-nav .nav-links .dropdown.nav-item > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f172a;
            text-decoration: none;
            transition: background 0.18s, color 0.18s;
        }

        .glass-nav .nav-links .dropdown.nav-item > a:hover {
            background: rgba(46, 90, 172, 0.06);
            color: var(--accent);
        }

        .glass-nav .nav-links .dropdown.nav-item > a svg {
            transition: transform 0.22s ease;
            transform-origin: center;
            flex-shrink: 0;
        }

        .glass-nav .nav-links .dropdown.nav-item.mobile-expanded > a svg {
            transform: rotate(180deg);
        }

        /* Dropdown sub-items — flush, indented */
        .glass-nav .nav-links .dropdown {
            padding-bottom: 0;
            margin-bottom: 0;
        }

        .glass-nav .nav-links .dropdown-content {
            position: static;
            opacity: 0;
            visibility: hidden;
            transform: none;
            box-shadow: none;
            border: none;
            border-top: 0;
            background: rgba(248, 250, 252, 0.8);
            border-radius: 0;
            min-width: 0;
            padding: 0;
            gap: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.22s ease, opacity 0.2s ease;
        }

        .glass-nav .nav-links .dropdown.nav-item.mobile-expanded .dropdown-content {
            opacity: 1;
            visibility: visible;
            max-height: 220px;
            border-top: 1px solid rgba(15, 23, 42, 0.06);
        }

        .glass-nav .nav-links .dropdown-content a {
            display: flex;
            align-items: center;
            padding: 12px 20px 12px 36px;
            border-radius: 0;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--text-dim);
            border-bottom: 1px solid rgba(15, 23, 42, 0.05);
            transition: background 0.18s, color 0.18s;
        }

        .glass-nav .nav-links .dropdown-content a:last-child {
            border-bottom: none;
        }

        .glass-nav .nav-links .dropdown-content a:hover {
            background: rgba(46, 90, 172, 0.08);
            color: var(--accent);
        }

        /* Sidebar CTA */
        .sidebar-cta {
            display: block;
            padding: 16px 20px;
            margin-top: auto;
            border-top: 1px solid rgba(15, 23, 42, 0.08);
        }

        .sidebar-cta .btn-primary {
            width: 100%;
            justify-content: center;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            min-height: 60px;
            font-size: 0.95rem;
            font-weight: 800;
            line-height: 1.2;
            white-space: nowrap;
            -webkit-text-fill-color: #ffffff;
            transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
        }

        .glass-nav .nav-links .sidebar-cta .btn-primary,
        .glass-nav .nav-links .sidebar-cta .btn-primary:hover {
            color: #ffffff;
        }

        .glass-nav .nav-links .sidebar-cta .btn-primary:hover {
            background: #0f172a;
            transform: translateY(-1px);
            box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
        }

        .glass-nav .nav-links .sidebar-cta .btn-primary .nav-auth-icon {
            width: 18px;
            height: 18px;
            min-width: 18px;
            max-width: none;
            flex: 0 0 18px;
            stroke: currentColor;
        }

        /* Body lock when sidebar open */
        body.mobile-nav-open {
            overflow: hidden;
        }

        body.mobile-nav-open .glass-nav::before {
            filter: blur(5px);
        }

        body.mobile-nav-open .glass-nav .logo,
        body.mobile-nav-open .glass-nav .menu-toggle {
            filter: blur(5px);
            pointer-events: none;
        }

        body.mobile-nav-open .mobile-nav-overlay {
            display: block;
            opacity: 1;
        }

        body.mobile-nav-open .glass-nav .nav-links {
            top: 0;
            left: 0;
            bottom: 0;
            box-shadow: 6px 0 32px rgba(0, 0, 0, 0.14);
            transform: translate3d(0, 0, 0);
            visibility: visible;
            border-right: 1px solid rgba(15, 23, 42, 0.07);
            transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                        visibility 0s linear 0s;
        }
    }

/* ── Buttons ── */
.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav-auth-btn .nav-auth-label {
    display: inline-block;
    line-height: 1.1;
}

.nav-auth-btn .nav-auth-arrow {
    display: inline-block;
    line-height: 1;
    font-size: 1.05rem;
    font-weight: 800;
    color: currentColor;
    transform: translateY(-0.5px);
}

.nav-auth-btn .nav-auth-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: none;
    display: inline-block;
    flex: 0 0 18px;
    color: #ffffff;
    stroke: #ffffff;
    overflow: visible;
}

.nav-auth-btn .nav-auth-icon path {
    stroke: #ffffff;
}

.glass-nav .nav-links .sidebar-cta .btn-primary .nav-auth-arrow {
    color: currentColor;
}

.btn-primary:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--text-dark);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-primary:hover .btn-icon {
    background-color: var(--accent);
    color: var(--text-dark);
}

.btn-icon-only {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--text-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-icon-only:hover {
    transform: scale(1.05);
}

/* ── Glass Cards ── */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    color: var(--text-dark);
}

.hover-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 90vh;
    padding: 200px 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: #000 var(--hero-bg-img, url('./heroFromUser.jpg')) center / cover no-repeat;
    transform: scale(1.1);
    transition: transform 0.2s ease-out;
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: -1;
}

.hero-title {
    color: var(--text-light);
    font-size: 6.5rem;
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.hero-title span {
    background: linear-gradient(to right, var(--accent) 0%, var(--accent-blue) 50%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.hero-right-overlay {
    position: absolute;
    top: 250px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 150px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: var(--fw-semibold);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.hero-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
}

.scroll-down-hint p {
    writing-mode: vertical-rl;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: rotate(180deg);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 24px 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-text {
    max-width: 400px;
}

.main-text h3 {
    color: var(--text-light);
    font-size: var(--fs-h3);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-snug);
    margin-bottom: 12px;
}

.main-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ── About Section ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-content h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.about-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    height: 500px;
    padding: 10px;
    background: var(--card-bg);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-md) - 6px);
}

/* Mission box */
.mission-box {
    display: flex;
    gap: 20px;
    background: var(--dark-bg);
    border-color: rgba(255, 255, 255, 0.05);
}

.mission-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(46, 90, 172, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mission-box h4 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
}

.mission-box p {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: var(--text-dim);
    margin-bottom: 0;
}

/* ── Facilities / Services Section ── */
.services-section {
    width: 100%;
}

.services-header {
    margin-bottom: 50px;
}

.services-header h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.services-header p {
    font-size: var(--fs-lg);
    color: var(--text-dark);
    font-weight: var(--fw-medium);
    opacity: 0.8;
    white-space: nowrap;
    line-height: var(--lh-snug);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.service-card {
    position: relative;
    border-radius: var(--radius-md);
    height: 480px;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.service-card.dark {
    background-color: var(--dark-bg);
}

.service-card:nth-child(1) { background-image: url('./padel_court.jpg'); }
.service-card:nth-child(2) { background-image: url('./pickleball_court.jpg'); }
.service-card:nth-child(3) { background-image: url('./football_5aside.jpg'); }
.service-card:nth-child(4) { background-image: url('./football_79aside.jpg'); }

/* Overflow cards (5+) use placeholder images */
.service-card:nth-child(5) { background-image: url('https://images.unsplash.com/photo-1596464716127-f2a82984de30?q=80&w=800&auto=format&fit=crop'); }
.service-card:nth-child(6) { background-image: url('https://images.unsplash.com/photo-1612872087720-bb876d0cb3e5?q=80&w=800&auto=format&fit=crop'); }
.service-card:nth-child(7) { background-image: url('https://images.unsplash.com/photo-1627883204993-41bbd0ce9a0c?q=80&w=800&auto=format&fit=crop'); }
.service-card:nth-child(8) { background-image: url('https://images.unsplash.com/photo-1544367567-0f2fcb046eb9?q=80&w=800&auto=format&fit=crop'); }

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: var(--fw-black);
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-badge.soon   { background: var(--accent-red); }
.card-badge.future { background: var(--accent-blue); }

.icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.services-grid .icon-wrap {
    width: 42px;
    height: 42px;
    color: #fff;
}

.services-grid .icon-wrap svg {
    width: 18px;
    height: 18px;
}

.icon-wrap.dark-icon {
    background: var(--text-dark);
    color: var(--text-light);
}

.service-info {
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.service-info h4 {
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
    margin-bottom: 0;
}

.services-grid .btn-icon-only {
    width: 40px;
    height: 40px;
}

.services-grid .btn-icon-only svg {
    width: 16px;
    height: 16px;
}

/* ── Kids / Pulse Play Section ── */
.kids-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.kids-text-content {
    order: 2;
}

.kids-image {
    order: 1;
}

.kids-text-content h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: -1px;
    margin-bottom: 24px;
}

/* ── Future Additions Section ── */
.future-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.future-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 60px 20px;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.future-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
    transition: background 0.3s ease;
}

.future-item:hover::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
}

.future-item * {
    z-index: 2;
    position: relative;
}

.future-item.has-bg {
    background-size: cover;
    background-position: center;
}

.future-item.beach-volleyball { background-image: url('./beach_volleyball.jpg'); }
.future-item.squash-court     { background-image: url('./squash_court.jpg'); }
.future-item.olympic-pool     { background-image: url('./olympic_pool.jpg'); }
.future-item.multi-sport      { background-image: url('./multi_sport_court.jpg'); }

.future-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.future-item h4 {
    color: var(--text-light);
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
}

.future-subtext {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.75);
    line-height: var(--lh-snug);
    margin-bottom: 0;
}

/* ── Vision Section ── */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.vision-content h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.vision-content .badge {
    color: var(--accent-blue);
}

/* ── CTA Section ── */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(46, 90, 172, 0.3);
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(46,90,172,0.05) 0%, transparent 60%);
    z-index: 1;
}

.cta-text,
.cta-banner .btn-primary {
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: -2px;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta-text p {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--fw-medium);
    line-height: var(--lh-snug);
    margin-bottom: 0;
}

/* ── Footer ── */
.site-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-dark);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo-main {
    height: 120px;
    width: auto;
    display: block;
    margin-bottom: 25px;
    border-radius: var(--radius-sm);
}

.footer-brand p {
    color: #555;
    font-size: 0.95rem;
    max-width: 350px;
    margin-bottom: 0;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 25px;
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: #555;
    margin-bottom: 0;
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--fs-xs);
    color: rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(46, 90, 172, 0.1);
    color: var(--accent);
    flex-shrink: 0;
}

.toast.error { border-left-color: #D32F2F; }
.toast.error .toast-icon { background: rgba(211, 47, 47, 0.1); color: #D32F2F; }

.toast-message {
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── 1200px ── */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title { font-size: 4.875rem; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.75rem; }
    h3 { font-size: 1.75rem; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .glass-nav {
        width: calc(100% - 28px);
        margin: 14px auto;
        padding: 14px 20px;
    }

    section,
    section:nth-of-type(even) {
        padding: 80px 0;
    }
}

/* ── 992px ── */
@media (max-width: 992px) {
    .about-grid,
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-content h2,
    .kids-text-content h2,
    .vision-content h2 {
        font-size: 2.4rem;
    }

    .kids-grid {
        grid-template-columns: 1fr;
    }

    .kids-text-content { order: 1; }
    .kids-image        { order: 2; }

    .future-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .image-wrapper {
        height: 400px;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 1.6rem; }
}

/* ── 768px ── */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    main {
        margin-top: 24px !important;
    }

    section,
    section:nth-of-type(even) {
        padding: 64px 0;
    }

    .hero-title { font-size: 3.375rem; }

    .glass-nav {
        top: 10px;
        width: calc(100% - 20px);
        padding: 14px;
        border-radius: 18px;
    }

    .brand-logo { height: 56px; }
    .nav-links  { gap: 12px; }

    .hero-right-overlay { display: none; }

    .hero-bottom-info {
        flex-direction: column;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-header {
        margin-bottom: 28px;
    }

    .services-header h2 {
        font-size: 1.9rem;
        margin-bottom: 10px;
    }

    .services-header p {
        font-size: 0.96rem;
        line-height: 1.55;
        white-space: normal;
    }

    .about-text-content h2,
    .kids-text-content h2 {
        font-size: 1.9rem;
        margin-bottom: 12px;
    }

    .about-text-content .lead-text,
    .kids-text-content .lead-text {
        font-size: 0.96rem;
        line-height: 1.6;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .main-text h3 {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }

    .main-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .cta-text h2 {
        font-size: 2.5rem;
    }

    .toast-container {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    .toast {
        margin-bottom: 8px;
        width: 100%;
    }

    h1 { font-size: 2.75rem; letter-spacing: -1px; }
    h2 { font-size: 2.2rem;  letter-spacing: -0.8px; }
    h3 { font-size: 1.65rem; letter-spacing: -0.5px; }
    h4 { font-size: 1.25rem; }
}

/* ── 600px ── */
@media (max-width: 600px) {
    .future-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── 480px ── */
@media (max-width: 480px) {
    .main-text h3 {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .main-text p {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .hero-actions {
        gap: 14px;
        padding: 14px 16px;
    }

    .about-text-content h2,
    .kids-text-content h2 {
        font-size: 1.55rem;
        margin-bottom: 8px;
    }

    .about-text-content .lead-text,
    .kids-text-content .lead-text {
        font-size: 0.88rem;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .services-header {
        margin-bottom: 20px;
    }

    .services-header h2 {
        font-size: 1.55rem;
        margin-bottom: 8px;
    }

    .services-header p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .cta-text h2 {
        font-size: 2rem;
    }

    h1 { font-size: 1.9rem; letter-spacing: -0.5px; }
    h2 { font-size: 1.9rem; letter-spacing: -0.5px; }
    h3 { font-size: 1.45rem; }
    h4 { font-size: 1.1rem; }

    /* Cross-page small utilities */
    .btn-primary {
        min-height: 48px;
        font-size: 0.95rem;
    }

    .tournament-grid,
    .blog-grid,
    .policy-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .policy-card,
    .highlight-box,
    .acceptance-box,
    .important-note,
    .t-card,
    .blog-card-full,
    .news-entry,
    .modal-content,
    .terms-content-card,
    .report-modal-content {
        border-radius: 16px;
    }
}

/* ── 360px ── */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    section,
    section:nth-of-type(even) {
        padding: 48px 0;
    }

    .glass-nav {
        width: calc(100% - 16px);
        padding: 10px;
        border-radius: 14px;
    }

    .brand-logo { height: 48px; }
    .nav-links  { gap: 8px; }

    .hero-title { font-size: 2.4rem; }

    .cta-text h2 { font-size: 1.65rem; }

    .toast { padding: 12px 14px; }

    h1 { font-size: 1.7rem; letter-spacing: -0.3px; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.95rem; }

    .policy-card,
    .highlight-box,
    .acceptance-box,
    .important-note,
    .blog-content-wrap,
    .featured-content,
    .news-detail-container,
    .detail-content,
    .modal-content,
    .terms-content-card,
    .report-modal-content {
        padding: 12px;
        border-radius: 14px;
    }

    .news-entry,
    .t-card,
    .blog-card-full {
        border-radius: 14px;
    }
}
