:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --accent: #EC4899;
    --dark: #1F2937;
    --light: #F9FAFB;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
}

.brand-icon {
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 120px;
}

.hero-image-wrapper {
    position: relative;
    height: 500px;
}

.fitness-visual {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    margin: 50px auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: morph 8s ease-in-out infinite;
}

.fitness-visual::before {
    content: '💪';
    position: absolute;
    font-size: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

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

.btn-primary {
    background: var(--accent);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #DB2777;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Class Cards */
.class-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
    position: relative;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.class-card.featured {
    border: 3px solid var(--primary);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.3);
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.class-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.class-details {
    display: flex;
    gap: 0.5rem;
}

.class-details .badge {
    background: var(--primary);
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.schedule-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: #F9FAFB;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.schedule-item .time {
    font-weight: 600;
    color: var(--primary);
}

.schedule-item .class-name {
    color: var(--dark);
}

/* Membership Cards */
.membership-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    height: 100%;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.membership-card.featured {
    border: 3px solid var(--primary);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

.membership-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.best-value-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

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

.price-box .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.price-box .period {
    font-size: 1.2rem;
    color: #6B7280;
}

.membership-features {
    list-style: none;
    padding: 0;
}

.membership-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--dark);
}

.membership-features li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
}

.join-form .form-control {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
}

.join-form .btn-light {
    border-radius: 50px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-box {
        min-width: 90px;
        padding: 1rem;
    }
    
    .fitness-visual {
        width: 300px;
        height: 300px;
    }
    
    .fitness-visual::before {
        font-size: 100px;
    }
    
    .membership-card.featured {
        transform: scale(1);
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}
