/* Global Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    transition: color var(--transition-fast);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1508700115892-45ecd05ae2ad?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    filter: blur(5px);
    z-index: -1;
    transform: scale(1.1);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.hero-content h1 span {
    display: block;
    color: var(--color-accent-primary);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-accent-primary);
    color: var(--color-bg);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.4);
}

/* Classes Section */
.classes h2,
.locations h2,
.instagram h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-accent-secondary-real);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.class-card {
    background: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-medium);
    position: relative;
}

.class-card:hover {
    transform: translateY(-10px);
}

.class-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.class-info {
    padding: var(--spacing-md);
}

.class-info h3 {
    color: var(--color-accent-primary);
    margin-bottom: var(--spacing-xs);
}

/* Locations */
.location-card {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Instagram Carousel */
.carousel {
    position: relative;
    height: 300px;
    /* Reduced height for better aspect ratio with multiple items */
    width: 100%;
    margin: 0 auto;
    /* max-width removed to allow full container width */
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    /* Default: 5 items visible */
    padding: 0 5px;
    /* Gap between images */
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed to cover for better grid look */
    border-radius: 4px;
}

/* Responsive Slide Counts */
@media (max-width: 1200px) {
    .carousel-slide {
        width: 25%;
    }

    /* 4 items */
}

@media (max-width: 900px) {
    .carousel-slide {
        width: 33.333%;
    }

    /* 3 items */
}

@media (max-width: 600px) {
    .carousel-slide {
        width: 50%;
    }

    /* 2 items */
}

@media (max-width: 400px) {
    .carousel-slide {
        width: 100%;
    }

    /* 1 item */
}

.carousel-button {
    /* Reset absolute positioning */
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-text-secondary);
    /* Add border for visibility on light/dark bg */
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
    background: var(--color-accent-primary);
    color: white;
    border-color: var(--color-accent-primary);
    transform: scale(1.1);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-bottom: 10px;
}

/* FAB */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* WhatsApp Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast);
    z-index: 2000;
}

.fab:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--color-surface);
    padding: var(--spacing-md) 0;
    text-align: center;
    color: var(--color-text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* In a real app, implement hamburger menu */
    }
}