/* ===================================
   PROFESSIONAL PREMIUM GYM WEBSITE
   Enterprise-Level UI Design System
   =================================== */

/* ===================================
   1. DESIGN TOKENS & VARIABLES
   =================================== */

:root {
    /* Primary Brand Colors - Sophisticated Neon Palette */
    --primary-cyan: #36d9ff;
    --primary-magenta: #e254ff;
    --accent-purple: #8b5cf6;
    --accent-gold: #fbbf24;

    /* Neutral Palette - Professional Grays */
    --dark-900: #0a0a0f;
    --dark-800: #12121a;
    --dark-700: #1a1a24;
    --dark-600: #24242e;
    --dark-500: #2e2e38;

    /* Legacy compatibility */
    --dark-bg: #0a0a0f;
    --dark-secondary: #12121a;
    --dark-tertiary: #1a1a24;

    /* Text Colors - Hierarchy */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-shadow: 0 10px 38px 0 rgba(0, 0, 0, 0.4);

    /* Shadows - Layered Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-neon: 0 0 20px rgba(0, 229, 255, 0.4);

    /* Transitions - Professional Timing */
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 500ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing Scale - 8px 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-8: 3rem;
    /* 48px */
    --space-10: 4rem;
    /* 64px */
    --space-12: 6rem;
    /* 96px */

    /* Border Radius - Consistent Curves */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-2xl: 1.5rem;
    /* 24px */
    --radius-full: 9999px;

    /* Typography Scale */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===================================
   2. RESET & BASE STYLES
   =================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background: var(--dark-900);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
}

/* Professional Background with Subtle Grain Texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.08), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 0, 110, 0.06), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04), transparent 50%);
    opacity: 1;
    pointer-events: none;
    z-index: -2;
}

/* Subtle Noise Texture for Premium Feel */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: -1;
}

/* ===================================
   3. TYPOGRAPHY SYSTEM
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   4. CONTAINER & LAYOUT
   =================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

/* ===================================
   5. PROFESSIONAL NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-4) 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    padding: var(--space-3) 0;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(0, 229, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Logo - Professional */
.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: transform var(--transition-base);
}

.nav-brand:hover {
    transform: translateY(-1px);
}

.brand-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

/* Navigation Menu - Enterprise Level */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-2);
    align-items: center;
}

.nav-menu a {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    letter-spacing: 0.01em;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 0, 110, 0.1));
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    opacity: 1;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 60%;
}

/* ===================================
   6. HERO SECTION - PREMIUM
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-12) 0;
}

#hero-container {
    position: absolute;
    inset: 0;
    z-index: var(--z-base);
}

.hero-content {
    position: relative;
    z-index: calc(var(--z-base) + 1);
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-6);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-magenta) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1.1;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 0 46px rgba(54, 217, 255, 0.35);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    font-weight: 400;
    line-height: 1.6;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   7. PROFESSIONAL BUTTONS
   =================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(120deg, rgba(54, 217, 255, 0.9), rgba(226, 84, 255, 0.92));
    color: #050507;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 28px rgba(54, 217, 255, 0.25),
        0 12px 34px rgba(226, 84, 255, 0.18);
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow:
            0 10px 28px rgba(54, 217, 255, 0.25),
            0 0 0 0 rgba(54, 217, 255, 0.3);
    }

    50% {
        box-shadow:
            0 14px 36px rgba(54, 217, 255, 0.32),
            0 0 0 10px rgba(54, 217, 255, 0);
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 40px rgba(54, 217, 255, 0.32),
        0 16px 44px rgba(226, 84, 255, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1.5px solid rgba(54, 217, 255, 0.26);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.2);
}

/* ===================================
   8. GLASS MORPHISM - PREMIUM
   =================================== */

.glass-effect {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(54, 217, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-smooth);
}

.glass-effect:hover {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: rgba(54, 217, 255, 0.25);
    box-shadow:
        0 18px 56px rgba(0, 0, 0, 0.5),
        0 0 34px rgba(54, 217, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* ===================================
   9. SECTION STYLES - PROFESSIONAL
   =================================== */

section {
    padding: var(--space-12) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-8);
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-tertiary);
    max-width: 700px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
}

/* ===================================
   10. FEATURE CARDS - ENTERPRISE
   =================================== */

.features {
    padding: var(--space-12) 0;
    background: var(--dark-800);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    padding: var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-5);
    display: inline-block;
    transition: transform var(--transition-smooth);
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.3));
}

.feature-card:hover i {
    transform: translateY(-8px) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5));
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-tertiary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===================================
   11. STATISTICS - PREMIUM
   =================================== */

.statistics {
    padding: var(--space-12) 0;
    background: var(--dark-900);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
}

.stat-item {
    text-align: center;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-smooth);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 229, 255, 0.15);
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-item p {
    color: var(--text-tertiary);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ===================================
   12. LOADING & ANIMATIONS
   =================================== */

#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--dark-900);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-smooth);
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Reveal Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(5px);
}

.reveal-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.7s ease-out;
}

/* ===================================
   13. RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    :root {
        --space-12: 4rem;
    }

    .hero {
        min-height: 90vh;
    }
}

@media (max-width: 768px) {
    :root {
        --space-12: 3rem;
        --space-10: 3rem;
        --space-8: 2rem;
    }

    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }
}

/* ===================================
   14. UTILITY CLASSES
   =================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-auto {
    margin-top: auto;
}

.mb-auto {
    margin-bottom: auto;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: var(--space-4);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.pointer-events-none {
    pointer-events: none;
}

.transition-all {
    transition: all var(--transition-base);
}

.transition-smooth {
    transition: all var(--transition-smooth);
}