/* ============================================
   🏆 PERBATI SUMSEL — Silicon Valley Design System
   Enterprise-Grade v2026
   ============================================ */

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
    /* —— Color Palette (Light Mode) —— */
    --primary:        hsl(348, 83%, 47%);
    --primary-light:  hsl(348, 90%, 58%);
    --primary-dark:   hsl(348, 80%, 36%);
    --primary-glow:   hsla(348, 83%, 47%, 0.35);

    --accent:         hsl(45, 100%, 51%);
    --accent-light:   hsl(45, 100%, 65%);

    --success:        hsl(145, 63%, 42%);
    --info:           hsl(210, 100%, 50%);

    /* —— Neutral Palette —— */
    --bg:             hsl(220, 20%, 97%);
    --bg-elevated:    hsl(0, 0%, 100%);
    --bg-card:        hsla(0, 0%, 100%, 0.75);
    --bg-glass:       hsla(0, 0%, 100%, 0.55);
    --bg-header:      hsla(220, 10%, 94%, 0.3);
    --border-header:  hsla(220, 10%, 10%, 0.08);

    --surface:        hsl(220, 14%, 96%);
    --border:         hsl(220, 13%, 91%);
    --border-glass:   hsla(0, 0%, 100%, 0.25);

    --text-primary:   hsl(220, 25%, 10%);
    --text-secondary: hsl(220, 10%, 40%);
    --text-muted:     hsl(220, 8%, 58%);
    --text-inverse:   hsl(0, 0%, 100%);

    /* —— Shadows —— */
    --shadow-sm:  0 1px 3px hsla(220, 20%, 10%, 0.06), 0 1px 2px hsla(220, 20%, 10%, 0.04);
    --shadow-md:  0 4px 12px hsla(220, 20%, 10%, 0.08), 0 2px 4px hsla(220, 20%, 10%, 0.04);
    --shadow-lg:  0 12px 40px hsla(220, 20%, 10%, 0.12), 0 4px 12px hsla(220, 20%, 10%, 0.06);
    --shadow-xl:  0 24px 60px hsla(220, 20%, 10%, 0.18), 0 8px 24px hsla(220, 20%, 10%, 0.08);
    --shadow-glow: 0 0 30px var(--primary-glow);

    /* —— Typography —— */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* —— Spacing Scale (4px base) —— */
    --space-1: 0.25rem;  /* 4px  */
    --space-2: 0.5rem;   /* 8px  */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.5rem;   /* 24px */
    --space-6: 2rem;     /* 32px */
    --space-7: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-9: 6rem;     /* 96px */
    --space-10: 8rem;    /* 128px */

    /* —— Border Radius —— */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full: 9999px;

    /* —— Transitions —— */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-base: 350ms;
    --duration-slow: 600ms;

    /* —— Glass —— */
    --glass-blur: blur(10px);
    --glass-saturate: saturate(1.8);
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] {
    --bg:             hsl(220, 20%, 7%);
    --bg-elevated:    hsl(220, 18%, 11%);
    --bg-card:        hsla(220, 18%, 14%, 0.8);
    --bg-glass:       hsla(220, 18%, 12%, 0.65);
    --bg-header:      hsla(220, 18%, 12%, 0.3);
    --border-header:  hsla(0, 0%, 100%, 0.08);

    --surface:        hsl(220, 15%, 14%);
    --border:         hsl(220, 12%, 20%);
    --border-glass:   hsla(255, 15%, 30%, 0.3);

    --text-primary:   hsl(220, 15%, 93%);
    --text-secondary: hsl(220, 10%, 65%);
    --text-muted:     hsl(220, 8%, 48%);

    --shadow-sm:  0 1px 3px hsla(0, 0%, 0%, 0.2);
    --shadow-md:  0 4px 12px hsla(0, 0%, 0%, 0.3);
    --shadow-lg:  0 12px 40px hsla(0, 0%, 0%, 0.4);
    --shadow-xl:  0 24px 60px hsla(0, 0%, 0%, 0.5);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Accessibility: Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--primary);
    color: var(--text-inverse);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top var(--duration-fast);
}
.skip-link:focus {
    top: var(--space-4);
}

/* ---------- Focus Indicators (WCAG 2.1 AA) ---------- */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--primary);
    color: var(--text-inverse);
}

/* ---------- Containers ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-5);
    margin: 0 auto;
}

/* ============================================
   HEADER & NAVIGATION — Glassmorphism
   ============================================ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 108px;
    background: var(--bg-header);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border-bottom: 1px solid var(--border-header);
    transition: background var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                backdrop-filter var(--duration-base) var(--ease-out),
                height var(--duration-base) var(--ease-out);
}

.header.scrolled {
    height: 83px;
    box-shadow: var(--shadow-md);
}

.navbar {
    height: 100%;
}

.navbar .container {
    height: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: all var(--duration-base) var(--ease-out);
}

.header.scrolled .logo-img {
    height: 75px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.logo a:hover {
    transform: scale(1.04);
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* ---------- Nav Menu ---------- */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast), background var(--duration-fast);
    position: relative;
    letter-spacing: 0.01em;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: transparent;
}

/* ---------- Login Button ---------- */
.login-btn {
    background: var(--primary) !important;
    color: var(--text-inverse) !important;
    padding: var(--space-2) var(--space-5) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    transition: all var(--duration-fast) var(--ease-out) !important;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.login-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px var(--primary-glow) !important;
}

/* ---------- Dark Mode Toggle ---------- */
.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--surface);
    transform: rotate(20deg);
    color: var(--primary);
}

[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun  { display: inline; }
:root .theme-toggle .fa-sun  { display: none; }
:root .theme-toggle .fa-moon { display: inline; }

/* ---------- Hamburger Menu ---------- */
.toggle-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: var(--space-2);
    z-index: 1001;
}

.toggle-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-inverse);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    transform-origin: center;
}

.header.scrolled .toggle-menu span {
    background: var(--text-primary);
}

.toggle-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.toggle-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.toggle-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

html:not([data-theme="dark"]) .toggle-menu.active span {
    background: var(--primary) !important;
}

/* ============================================
   HERO SECTION — Animated Gradient Mesh
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero-bg.jpg') no-repeat center top / cover;
    text-align: center;
    color: var(--text-inverse);
    overflow: hidden;
}

.hero-bg-mobile {
    position: absolute;
    inset: 0;
    background: url('../images/hero-mobile.jpg') no-repeat center center / contain;
    background-color: #0c0d11;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientMesh {
    0%, 100% { background-position: 0% 50%; }
    25%      { background-position: 100% 0%; }
    50%      { background-position: 100% 100%; }
    75%      { background-position: 0% 100%; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        hsla(220, 40%, 12%, 0.6) 0%,
        hsla(260, 35%, 18%, 0.6) 25%,
        hsla(340, 45%, 20%, 0.5) 50%,
        hsla(220, 40%, 15%, 0.6) 75%,
        hsla(200, 35%, 10%, 0.7) 100%
    );
    background-size: 400% 400%;
    animation: gradientMesh 12s ease infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-6);
}

@media (min-width: 769px) {
    .hero-content {
        margin-top: 200px; /* Push down on desktop to balance layout */
    }
}

/* Staggered entrance animation */
.hero-text > * {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.8s var(--ease-out) forwards;
}
.hero-text > *:nth-child(1) { animation-delay: 0.2s; }
.hero-text > *:nth-child(2) { animation-delay: 0.4s; }
.hero-text > *:nth-child(3) { animation-delay: 0.6s; }
.hero-text > *:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-3);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: var(--space-4);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    margin: var(--space-4) 0;
    line-height: 1;
    letter-spacing: -0.03em;
}

.text-red {
    color: var(--primary-light);
    display: inline-block;
    text-shadow: 0 0 40px var(--primary-glow);
}

.text-blue {
    color: hsl(210, 100%, 65%);
    display: inline-block;
    text-shadow: 0 0 40px hsla(210, 100%, 50%, 0.3);
}

/* ---------- Glowing CTA Button ---------- */
.btn-hero {
    background: var(--primary);
    color: var(--text-inverse);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all var(--duration-base) var(--ease-out);
    margin-top: var(--space-6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-hero::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: var(--primary);
    opacity: 0;
    z-index: -1;
    filter: blur(16px);
    transition: opacity var(--duration-base);
}

.btn-hero:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-hero:hover::after {
    opacity: 0.5;
}

/* ---------- Generic Buttons ---------- */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--duration-base) var(--ease-out);
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 2px 12px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-inverse);
    border: 2px solid hsla(0, 0%, 100%, 0.3);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: hsla(0, 0%, 100%, 0.12);
    border-color: hsla(0, 0%, 100%, 0.6);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--text-inverse);
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}
.btn-light:hover {
    background: var(--accent-light);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   SCROLL REVEAL SYSTEM
   ============================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.92); }

[data-reveal="left"].revealed,
[data-reveal="right"].revealed {
    transform: translateX(0);
}
[data-reveal="scale"].revealed {
    transform: scale(1);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: var(--space-10) 0;
    background: var(--bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.about-text p {
    margin-bottom: var(--space-5);
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.commitment-list {
    list-style: none;
}

.commitment-list li {
    padding: var(--space-3) 0;
    color: var(--text-secondary);
    display: flex;
    gap: var(--space-3);
    align-items: center;
    font-size: 1.02rem;
    transition: transform var(--duration-fast) var(--ease-out);
}

.commitment-list li:hover {
    transform: translateX(4px);
}

.commitment-list i {
    color: var(--success);
    font-size: 1rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(145, 63%, 42%, 0.1);
    border-radius: var(--radius-full);
    padding: var(--space-1);
}

/* ---------- Stats Grid ---------- */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.stat-box {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform var(--duration-base) var(--ease-out);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.stat-label {
    color: var(--text-muted);
    margin-top: var(--space-2);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news {
    padding: var(--space-10) 0;
    background: linear-gradient(rgba(10, 10, 15, 0.7), rgba(10, 10, 15, 0.85)), url('../images/news-bg.png') no-repeat center center / cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.news .section-header h2 {
    color: var(--text-inverse);
}

.news .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.news .news-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.news .news-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.news .news-content h3 {
    color: var(--text-inverse);
}

.news .news-content p {
    color: rgba(255, 255, 255, 0.65);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-7);
}

.news-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--duration-base) var(--ease-out);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, hsl(260, 50%, 55%) 0%, hsl(340, 60%, 50%) 100%);
    position: relative;
    overflow: hidden;
}

.news-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(0, 0%, 0%, 0.3), transparent);
}

.placeholder-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image-small i {
    font-size: 3rem;
    color: hsla(0, 0%, 100%, 0.3);
}

.news-content {
    padding: var(--space-5);
}

.news-meta {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.news-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--duration-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.read-more:hover {
    gap: var(--space-3);
    color: var(--primary-dark);
}

/* ============================================
   EVENTS SECTION
   ============================================ */

.events {
    padding: var(--space-10) 0;
    background: var(--bg);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-7);
}

.event-item {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--duration-base) var(--ease-out);
}

.event-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.event-date {
    min-width: 76px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-inverse);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.event-date .month {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 600;
    letter-spacing: 1px;
}

.event-date .day {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.event-details p {
    margin: var(--space-2) 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.event-details i {
    color: var(--primary);
    margin-right: var(--space-2);
    width: 16px;
    text-align: center;
}

.event-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--duration-fast);
    white-space: nowrap;
    align-self: center;
    padding: var(--space-2) var(--space-5);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
}

.event-link:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

/* ============================================
   MEMBERSHIP CTA
   ============================================ */

.membership-cta {
    background: linear-gradient(135deg, rgba(20, 3, 3, 0.9) 0%, rgba(139, 0, 0, 0.8) 50%, rgba(40, 0, 0, 0.9) 100%), url('../images/bg-boxing-2.jpg') no-repeat center center / cover;
    color: var(--text-inverse);
    padding: var(--space-9) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.membership-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, hsla(0, 0%, 100%, 0.08) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }

/* ============================================
   FOOTER — Premium Dark
   ============================================ */

.footer {
    background: hsl(220, 25%, 8%);
    color: hsl(220, 10%, 60%);
    padding: var(--space-9) 0 var(--space-5);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-7);
    margin-bottom: var(--space-7);
}

@media (min-width: 1200px) {
    .footer .container {
        max-width: 1440px;
    }
    .footer-content {
        grid-template-columns: 1.1fr 1fr 1.5fr 1.4fr;
        gap: 200px;
    }
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: hsl(0, 0%, 95%);
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: var(--space-4);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--space-3);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-section a {
    color: hsl(220, 10%, 60%);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--duration-fast), padding-left var(--duration-fast);
}

.footer-section a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-section li i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* ---------- Social Links ---------- */
.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(0, 0%, 100%, 0.06);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--duration-base) var(--ease-out);
    font-size: 1.05rem;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--primary-glow);
    padding-left: 0;
}

/* ---------- Newsletter ---------- */
.newsletter-form {
    display: flex;
    gap: var(--space-2);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: var(--radius-md);
    background: hsla(0, 0%, 100%, 0.06);
    color: hsl(0, 0%, 90%);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--duration-fast);
}

.newsletter-form input::placeholder {
    color: hsl(220, 10%, 45%);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: hsla(0, 0%, 100%, 0.1);
}

.newsletter-form button {
    padding: var(--space-3) var(--space-5);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* ---------- Footer Bottom ---------- */
.footer-bottom {
    border-top: 1px solid hsla(0, 0%, 100%, 0.08);
    padding-top: var(--space-5);
    text-align: center;
    font-size: 0.85rem;
    color: hsl(220, 10%, 40%);
}

/* ============================================
   RESPONSIVE DESIGN — Mobile First
   ============================================ */

@media (max-width: 1024px) {
    .header {
        height: 88px !important;
    }

    .header.scrolled {
        height: 58px !important;
    }

    .logo-img {
        height: 60px !important;
    }

    .header.scrolled .logo-img {
        height: 45px !important;
    }

    .toggle-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--bg-elevated);
        flex-direction: column;
        gap: 0;
        padding: var(--space-10) var(--space-5) var(--space-5);
        transition: right var(--duration-base) var(--ease-out);
        box-shadow: var(--shadow-xl);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }

    .nav-menu a {
        display: block;
        padding: var(--space-4) var(--space-4) !important;
        color: var(--text-primary) !important;
        font-size: 1rem;
        border-radius: 0 !important;
        background: none !important;
    }

    .nav-menu a:hover {
        background: var(--surface) !important;
        color: var(--primary) !important;
    }

    .login-btn {
        display: none !important;
    }

    .theme-toggle {
        border-color: var(--border);
        color: var(--text-secondary);
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: hsla(0, 0%, 0%, 0.5);
        z-index: 998;
        backdrop-filter: blur(4px);
    }

    .nav-overlay.active {
        display: block;
    }

    .hero {
        min-height: 680px;
        background-color: #0c0d11;
        align-items: flex-end;
    }

    .about,
    .news,
    .events {
        padding: 30px 0 !important;
    }

    .membership-cta {
        padding: 40px 0 !important;
    }

    .hero-content {
        padding-top: 0;
        padding-left: var(--space-4);
        padding-right: var(--space-4);
        padding-bottom: 125px; /* Shift content 100px upwards on tablet */
        width: 100%;
    }

    .hero-bg-mobile {
        opacity: 1;
        top: 88px; /* Position exactly below the 88px mobile header navbar */
        left: 0;
        right: 0;
        bottom: 0;
        background-position: center top;
        background-size: 100% auto;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 6px;
        letter-spacing: 2.5px;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .hero-heading {
        font-size: 1.8rem;
        margin: 8px 0;
        line-height: 1.1;
    }

    .btn-hero {
        padding: 9px 20px;
        font-size: 0.85rem;
        margin-top: 12px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .event-item {
        flex-direction: column;
    }

    .event-link {
        align-self: flex-start;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
        align-items: flex-end;
    }

    .hero-content {
        padding-top: 0;
        padding-bottom: 120px; /* Shift content 100px upwards on phones */
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 4px;
    }

    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .hero-heading {
        font-size: 1.4rem;
        margin: 6px 0;
        line-height: 1.1;
    }

    .btn-hero {
        padding: 7px 14px;
        font-size: 0.75rem;
        margin-top: 8px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

/* Fix for landscape on mobile and foldable devices */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        align-items: center;
        background-color: transparent;
    }
    .hero-bg-mobile {
        opacity: 0 !important;
    }
    .hero-content {
        padding-bottom: 0;
        margin-top: 120px;
    }
}
