/* ============================================
   ENERGYM - Fitness Lifestyle
   Modern Dark Theme Website
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-bg: #0a0a0a;
    --color-bg-light: #111111;
    --color-bg-card: #161616;
    --color-bg-card-hover: #1a1a1a;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.12);
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-tertiary: rgba(255, 255, 255, 0.4);
    --color-accent: #4db8d9;
    --color-accent-dark: #3a9abd;
    --color-accent-glow: rgba(77, 184, 217, 0.15);
    --color-accent-glow-strong: rgba(77, 184, 217, 0.3);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--color-accent-glow);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elegant: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 80px;
}

/* ---------- Lenis Smooth Scroll ---------- */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ---------- Film Grain / Noise Overlay ---------- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    mix-blend-mode: overlay;
}

/* ---------- Splashscreen ---------- */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    height: 48px;
    width: auto;
    animation: logoPulse 1.8s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

/* ---------- Page reveal after splash ---------- */
body.loading .navbar {
    opacity: 0;
    transform: translateY(-20px);
}

body.loading .hero-scroll-indicator {
    opacity: 0;
}

/* Hero animate elements stay hidden until splash is done */
body.loading [data-animate] {
    opacity: 0 !important;
    transition: none !important;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ---------- Utility ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--color-accent);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    height: 70px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 36px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover img {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

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

.nav-link:hover {
    background: var(--color-surface);
}

.nav-cta {
    background: var(--color-accent);
    color: var(--color-bg) !important;
    font-weight: 600;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--color-accent-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* Hero Left: Text */
.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent-glow);
    border: 1px solid rgba(77, 184, 217, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.hero-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.hero-feature strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-feature span {
    font-size: 0.82rem;
    color: var(--color-text-tertiary);
}

/* Hero Right: Form */
.hero-form-wrapper {
    width: 100%;
}

.hero-form-card {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}

/* Form Elements */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 0.92rem;
    transition: all var(--transition-base);
    outline: none;
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
    background: rgba(77, 184, 217, 0.05);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

/* Floating Labels */
.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 0.92rem;
    color: var(--color-text-tertiary);
    pointer-events: none;
    transition: all var(--transition-base);
    background: transparent;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--color-accent);
    background: var(--color-bg-card);
    padding: 0 6px;
    border-radius: 4px;
}

/* Fix for select label - always float when has value */
.form-group select:not([value=""]):valid ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--color-accent);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    margin-top: 14px;
}

.form-disclaimer a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-tertiary);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: pulseDown 2.5s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
}

@keyframes pulseDown {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   SECTIONS - COMMON
   ============================================ */
.section {
    padding: 120px 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ---------- Marquee Ticker ---------- */
.marquee {
    width: 100%;
    overflow: hidden;
    padding: 28px 0;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    user-select: none;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
}

.marquee-content {
    flex-shrink: 0;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    white-space: nowrap;
    padding: 0 8px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* Section Dividers */
.section-about {
    background: var(--color-bg);
}

.section-courses {
    background: var(--color-bg-light);
}

.section-pricing {
    background: var(--color-bg);
}

.section-facilities {
    background: var(--color-bg-light);
}

.section-contact {
    background: var(--color-bg);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -16px;
    left: -16px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    z-index: -1;
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.stat-unit {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

/* ============================================
   COURSES SECTION
   ============================================ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.course-card:hover {
    border-color: var(--color-border-light);
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.course-card:hover::before {
    opacity: 1;
}

.course-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.course-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.course-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.course-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.price-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-md);
}

.price-card.featured {
    border-color: var(--color-accent);
    background: linear-gradient(180deg, rgba(77, 184, 217, 0.08) 0%, var(--color-bg-card) 100%);
    box-shadow: var(--shadow-glow);
    transform: scale(1.04);
}

.price-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.price-card.featured {
    padding-top: 52px;
}

.price-popular {
    position: absolute;
    top: 12px;
    right: 16px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    line-height: 1.4;
}

.price-tag {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.price-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin-bottom: 4px;
}

.price-amount .currency {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 8px;
    color: var(--color-text-secondary);
}

.price-amount .value {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.price-amount .cents {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 8px;
}

.price-period {
    font-size: 0.82rem;
    color: var(--color-text-tertiary);
    margin-bottom: 28px;
    display: block;
}

.price-features {
    text-align: left;
    margin-bottom: 28px;
    flex-grow: 1;
}

.price-features li {
    position: relative;
    padding-left: 24px;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.price-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234db8d9' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Pricing Extras */
.pricing-extras {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.extra-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-base);
}

.extra-card:hover {
    border-color: var(--color-border-light);
}

.extra-card.highlight {
    border-color: rgba(77, 184, 217, 0.3);
    background: var(--color-accent-glow);
}

.extra-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.extra-card p {
    font-size: 0.82rem;
    color: var(--color-text-tertiary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.extra-card strong {
    font-size: 0.95rem;
    color: var(--color-accent);
}

/* ============================================
   FACILITIES SECTION
   ============================================ */
.facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 48px;
}

.facility-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: default;
}

.facility-card.large {
    grid-row: 1 / 3;
    aspect-ratio: auto;
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-elegant);
}

.facility-card:hover img {
    transform: scale(1.05);
}

.facility-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}

.facility-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.facility-info p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Services Row */
.services-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
}

.service-item:hover {
    border-color: var(--color-border-light);
}

.service-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.service-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-text p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-glow);
    border-radius: var(--radius-sm);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-text-secondary);
}

.contact-item a:hover {
    color: var(--color-accent);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.contact-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.contact-socials a svg {
    width: 20px;
    height: 20px;
}

.contact-socials a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-glow);
    transform: translateY(-2px);
}

.contact-map {
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.contact-map iframe {
    filter: grayscale(1) invert(1) contrast(0.9) brightness(0.7);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--color-text-tertiary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text-tertiary);
    padding: 5px 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Elements start hidden and animate in */
[data-animate] {
    opacity: 0;
    transition: opacity var(--transition-elegant), transform var(--transition-elegant);
    will-change: opacity, transform;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-in"] {
    transform: scale(0.97);
}

/* Animated state */
[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ---------- Text Reveal (Line-by-Line) ---------- */
.line-wrap {
    display: block;
    overflow: hidden;
    position: relative;
}

.line-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

[data-animate].animated .line-inner {
    transform: translateY(0);
}

[data-animate].animated .line-wrap:nth-child(2) .line-inner {
    transition-delay: 0.12s;
}

[data-animate].animated .line-wrap:nth-child(3) .line-inner {
    transition-delay: 0.24s;
}

[data-animate].animated .line-wrap:nth-child(4) .line-inner {
    transition-delay: 0.36s;
}

/* Staggered children */
.courses-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.courses-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.courses-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.courses-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.courses-grid [data-animate]:nth-child(6) { transition-delay: 0.4s; }

.pricing-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.pricing-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.pricing-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }

.about-stats [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.about-stats [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.about-stats [data-animate]:nth-child(4) { transition-delay: 0.3s; }

/* Form success animation */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    width: 64px;
    height: 64px;
    color: var(--color-accent);
    margin-bottom: 20px;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 130px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-features {
        align-items: center;
    }

    .hero-form-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-card.featured {
        transform: scale(1);
    }

    .price-card.featured:hover {
        transform: translateY(-4px);
    }

    .pricing-extras {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .facility-card.large {
        grid-row: auto;
        aspect-ratio: 16/9;
    }

    .services-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--color-border);
    }

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

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
        width: 100%;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        text-align: center;
    }

    .section {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-features {
        align-items: flex-start;
        text-align: left;
    }

    .hero-text {
        text-align: left;
    }

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

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

    .pricing-extras {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-map {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    body::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 110px 16px 60px;
    }

    .hero-form-card {
        padding: 28px 20px;
    }

    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

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

    .service-item img {
        width: 100%;
        height: 160px;
    }
}

/* ============================================
   MAGICLINE - DYNAMIC PRICING
   ============================================ */

.pricing-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 0;
    color: var(--color-text-tertiary);
    font-size: 0.95rem;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pricing-error {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-tertiary);
    padding: 60px 0;
}

/* Form input error state */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e05555;
    box-shadow: 0 0 0 3px rgba(224, 85, 85, 0.15);
}

.form-api-error {
    color: #e05555;
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
}

/* ============================================
   SIGNUP MODAL
   ============================================ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #111;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(24px) scale(0.98);
    transition: transform var(--transition-elegant);
    box-shadow: var(--shadow-lg);
}

.modal-backdrop.open .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: #111;
    z-index: 1;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-logo {
    height: 28px;
    width: auto;
}

.modal-step-label {
    font-size: 0.82rem;
    color: var(--color-text-tertiary);
    letter-spacing: 0.02em;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-secondary);
}

.modal-close-btn:hover {
    border-color: var(--color-border-light);
    color: var(--color-text);
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

.modal-progress-track {
    height: 2px;
    background: var(--color-border);
}

.modal-progress-bar {
    height: 100%;
    background: var(--color-accent);
    width: 25%;
    transition: width var(--transition-smooth);
}

.modal-body {
    padding: 28px 24px 32px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Modal Step Layout */
.modal-step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-step-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    position: sticky;
    bottom: 0;
    background: #111;
    padding: 16px 0 4px;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    border-top: 1px solid var(--color-border);
    z-index: 1;
}

.modal-actions .btn {
    flex: 1;
}

/* Bundle Selection */
.bundle-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.bundle-option {
    display: flex;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.bundle-option input[type="radio"] {
    display: none;
}

.bundle-option:hover {
    border-color: var(--color-border-light);
}

.bundle-option.selected {
    border-color: var(--color-accent);
    background: var(--color-accent-glow);
    box-shadow: var(--shadow-glow);
}

.bundle-option-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.bundle-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
}

.bundle-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.bundle-per {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-tertiary);
}

.bundle-term {
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    white-space: nowrap;
}

/* Module Selection */
.modules-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.module-option {
    display: block;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.module-option input[type="checkbox"] {
    display: none;
}

.module-option:hover {
    border-color: var(--color-border-light);
}

.module-option.selected {
    border-color: var(--color-accent);
    background: var(--color-accent-glow);
}

.module-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.module-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.module-text {
    flex: 1;
}

.module-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.module-text span {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
}

.module-text p {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    margin-top: 4px;
}

.module-check {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.module-check svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.module-option.selected .module-check {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.module-option.selected .module-check svg {
    opacity: 1;
    color: var(--color-bg);
}

/* Personal Data Form */
.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

/* Order Summary */
.order-summary {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.summary-info {
    font-weight: 400;
    color: var(--color-text-secondary);
    font-size: 0.82rem;
}

/* SEPA Section */
.sepa-section {
    margin-bottom: 24px;
}

.sepa-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sepa-mandate-text {
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    line-height: 1.6;
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--color-accent);
}

/* Legal Confirmations */
.legal-confirmations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.confirm-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.confirm-row.error {
    border-color: #e05555;
    background: rgba(224, 85, 85, 0.05);
}

.confirm-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.confirm-row a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Contract Error */
.contract-error {
    background: rgba(224, 85, 85, 0.1);
    border: 1px solid rgba(224, 85, 85, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #e05555;
    margin-top: 16px;
}

/* Submit Spinner */
.spinner {
    width: 18px;
    height: 18px;
    animation: spin 0.8s linear infinite;
}

/* Success Step */
.modal-success-step {
    padding: 20px 0;
}

@media (max-width: 600px) {
    .modal-body {
        padding: 20px 16px 28px;
    }

    .bundle-option-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .bundle-term {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .navbar,
    .hero-video-wrapper,
    .hero-scroll-indicator,
    .contact-map {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        padding: 32px 0;
    }
}
