/* ================================================
   ULTRA-PREMIUM KARATE WEBSITE
   TingTing-Inspired Immersive Experience
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== CSS VARIABLES - CLEAN & PREMIUM ===== */
:root {
    /* Premium Karate Colors */
    --karate-red: #DC2626;
    --karate-red-dark: #991B1B;
    --karate-gold: #F59E0B;
    --karate-black: #0A0A0A;
    --karate-white: #FFFFFF;
    
    /* Neutral Palette */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-dark: #0A0A0A;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.1);
    
    /* Text */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;
    
    /* Gradients */
    --gradient-red: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-dark: linear-gradient(180deg, #0A0A0A 0%, #1F2937 100%);
    --gradient-light: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-red: 0 20px 40px -10px rgba(220, 38, 38, 0.4);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== PREMIUM NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    transition: all 0.3s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--karate-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--karate-red);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-btn {
    padding: 0.75rem 1.5rem;
    background: var(--karate-red);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.cta-btn:hover {
    background: var(--karate-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
}

/* ===== HERO SECTION - IMMERSIVE ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    overflow: hidden;
    padding: 6rem 0 3rem;
}

/* Animated Background Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
}


/* Hero layout: left image | center content | right image */
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-image {
    flex-shrink: 0;
    width: 200px;
    max-height: 320px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s var(--ease-out) 0.1s backwards;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-right {
    animation: fadeInUp 1s var(--ease-out) 0.15s backwards;
}

@media (max-width: 992px) {
    .hero-image {
        width: 140px;
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-image-left,
    .hero-image-right {
        width: 180px;
        max-height: 200px;
    }
    
    .hero-image-left {
        order: 1;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image-right {
        order: 3;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
    min-width: 0;
    animation: fadeInUp 1s var(--ease-out) 0.2s backwards;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.05); }
}

/*.hero-content {*/
/*    position: relative;*/
/*    z-index: 2;*/
/*    text-align: center;*/
/*    max-width: 900px;*/
/*    margin: 0 auto;*/
/*    animation: fadeInUp 1s var(--ease-out);*/
/*}*/

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 9999px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    animation: fadeInUp 1s var(--ease-out) 0.2s backwards;
}

.hero-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hero-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

.hero-badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Hero Title */
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    animation: fadeInUp 1s var(--ease-out) 0.3s backwards;
}

.hero-title-highlight {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s var(--ease-out) 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--ease-out) 0.5s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--karate-red);
    color: white;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background: var(--karate-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--gray-50);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    animation: fadeInUp 1s var(--ease-out) 0.6s backwards;
}

/* ===== TRUSTED BY SECTION ===== */
.trusted-section {
    padding: 2rem 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

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

.trusted-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s var(--ease-out);
}

.trusted-logos:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.trusted-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s var(--ease-out);
}

.trusted-logo:hover {
    transform: scale(1.1);
}

/* ===== SECTION HEADERS ===== */
.section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--karate-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== FEATURES GRID ===== */
.features-section {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--karate-red);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-red);
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--bg-dark);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ===== NOTICE BOX - MODERN ===== */
.notice-section {
    background: white;
}

.notice-container {
    max-width: 800px;
    margin: 0 auto;
}

.notice-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.notice-header {
    background: var(--gradient-red);
    padding: 2rem;
    text-align: center;
    color: white;
}

.notice-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.notice-content {
    padding: 2rem;
    max-height: 500px;
    overflow-y: auto;
}

.notice-content::-webkit-scrollbar {
    width: 6px;
}

.notice-content::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.notice-content::-webkit-scrollbar-thumb {
    background: var(--karate-red);
    border-radius: 3px;
}

.notice-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--karate-red);
    transition: all 0.3s var(--ease-out);
}

.notice-item:hover {
    transform: translateX(8px);
    background: var(--gray-100);
}

.notice-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.notice-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.notice-item a {
    color: var(--karate-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s var(--ease-out);
}

.notice-item a:hover {
    gap: 0.5rem;
}

.notice-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===== EVENTS SECTION ===== */
.events-section {
    background: var(--bg-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.event-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--gray-100);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-content {
    padding: 2rem;
}

.event-type {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--karate-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.event-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ===== FOOTER SECTION ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-section p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-top: 1rem;
    opacity: 0.9;
    transition: opacity 0.3s var(--ease-out);
}

.footer-logo:hover {
    opacity: 1;
}

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

.footer-section ul li {
    margin-bottom: 0.875rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease-out);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--karate-red);
    transform: translateX(4px);
}

.footer-section ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.social-link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s var(--ease-out);
}

.social-link:hover {
    color: var(--karate-red);
    padding-left: 2rem;
}

.social-link:hover::before {
    opacity: 1;
    left: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ===== MESSAGES CONTAINER ===== */
.messages-container {
    position: fixed;
    top: 80px;
    right: 2rem;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s var(--ease-out);
    backdrop-filter: blur(20px);
    border: 1px solid;
}

.alert-success {
    background: rgba(34, 197, 94, 0.95);
    border-color: rgba(34, 197, 94, 0.3);
    color: white;
}

.alert-error {
    background: rgba(220, 38, 38, 0.95);
    border-color: rgba(220, 38, 38, 0.3);
    color: white;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.95);
    border-color: rgba(245, 158, 11, 0.3);
    color: white;
}

.alert-info {
    background: rgba(59, 130, 246, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        max-width: 400px;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        align-items: flex-start;
        border-right: 1px solid var(--gray-200);
        transition: left 0.3s var(--ease-out);
        height: calc(100vh - 70px);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .hamburger span {
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .cta-btn {
        display: none;
    }
    
    .features-grid,
    .stats-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 5rem 0 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul li {
        justify-content: center;
    }
    
    .footer-section ul li a {
        display: inline;
    }
    
    .social-links {
        align-items: center;
    }
    
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    .messages-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s var(--ease-out);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Nav dropdown / submenu */
.nav-item-has-dropdown {
    position: relative;
}
.nav-item-has-dropdown > .nav-link::after {
    content: ' ▾';
    font-size: 0.7em;
}
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease-out);
    z-index: 100;
}
.nav-item-has-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-submenu li {
    margin: 0;
}
.nav-submenu .nav-link {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary);
}
.nav-submenu .nav-link:hover {
    background: var(--gray-50);
    color: var(--karate-red);
}
.nav-submenu .nav-link::after {
    display: none;
}
@media (max-width: 1024px) {
    .nav-item-has-dropdown > .nav-link::after {
        display: none;
    }
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1rem;
        margin-top: 0.25rem;
    }
    .nav-submenu .nav-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}