/* styles.css */
:root {
    --accent: #c10f5f; 
    --accent-glow: rgba(255, 0, 166, 0.4);
    --dark: #09090b;
    --light: #ffffff;
    --text-main: #27272a;
    --text-muted: #71717a;
    --gray-bg: #f4f4f5;
} 

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #fafafa;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Navbar */
header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 24px 8px 14px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo { display: flex; align-items: center; text-decoration: none; line-height: 0; }
.logo img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.6), rgba(9, 9, 11, 0.95)),
                url('../../hero.jpg') center/cover;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 0 20px; color: var(--light); position: relative;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.hero-logo {
    width: clamp(180px, 30vw, 280px);
    height: auto;
    margin-bottom: 22px;
    padding: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 55%, rgba(255,255,255,0) 72%);
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45));
    animation: float 5s ease-in-out infinite;
}

.badge {
    background: rgba(16, 185, 129, 0.15); backdrop-filter: blur(10px); color: var(--accent);
    padding: 8px 20px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; margin-bottom: 25px;
    border: 1px solid rgba(16, 185, 129, 0.4); text-transform: uppercase; letter-spacing: 2px;
    animation: float 4s ease-in-out infinite;
}

.hero h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 800; line-height: 1.05; margin-bottom: 20px; max-width: 900px; letter-spacing: -1px; }
.hero p { font-size: clamp(1rem, 4vw, 1.15rem); color: #d4d4d8; max-width: 550px; margin-bottom: 40px; padding: 0 10px; }

.btn {
    display: inline-block; background: var(--accent); color: var(--light); padding: 16px 36px; border-radius: 50px;
    text-decoration: none; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 10px 30px var(--accent-glow);
    text-align: center;
}
.btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6); }

/* Marquee */
/* Marquee */
.marquee-container {
    background: var(--accent); 
    color: var(--dark); 
    padding: 12px 0; 
    overflow: hidden; 
    white-space: nowrap; 
    position: relative;
    transform: rotate(-2deg) scale(1.05); 
    margin-top: -20px; 
    z-index: 10; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex; /* Added Flexbox */
}

.marquee-content { 
    display: flex; 
    flex-shrink: 0; /* Prevents the text from squishing */
    min-width: 100%; /* Ensures the track spans the full screen */
    justify-content: space-around;
    font-family: 'Outfit', sans-serif; 
    font-weight: 800; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    animation: marquee 35s linear infinite; /* Adjusted speed */
}

.marquee-content span { 
    margin: 0 20px; 
}

@keyframes marquee { 
    0% { transform: translateX(0); } 
    /* Pulls exactly the width of one track, then snaps back seamlessly */
    100% { transform: translateX(-100%); } 
}

section { padding: 100px 5%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(2.2rem, 6vw, 3rem); color: var(--dark); letter-spacing: -1px; line-height: 1.2; margin-bottom: 10px; }

/* Flagship Courses */
.flagship-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.flagship-card {
    border-radius: 24px; 
    padding: 50px 40px 40px 40px; 
    color: var(--light); 
    position: relative; 
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end;
    min-height: 320px; 
    cursor: pointer;
}
.flagship-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.1) 100%); z-index: 1; }
.flagship-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.flagship-card:hover img { transform: scale(1.05); }
.flagship-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s ease; }

.card-content { position: relative; z-index: 2; }
.flagship-tag { display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 6px 14px; border-radius: 30px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; border: 1px solid rgba(255,255,255,0.2); }
.flagship-card h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 10px; line-height: 1.1; }
.flagship-card p { font-size: 0.95rem; opacity: 0.9; line-height: 1.5; max-width: 600px; }
.card-link { margin-top: 15px; font-weight: bold; color: var(--accent); transition: color 0.3s; }

/* Calendar Styles */
.info-section {
    color: var(--light);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(55vw 38vw at 82% 16%, rgba(139, 92, 246, 0.16), transparent 60%),
        radial-gradient(45vw 35vw at 12% 88%, rgba(6, 182, 212, 0.12), transparent 62%),
        var(--dark);
}
/* Ambient glowing blobs behind the calendar */
.info-section::before,
.info-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}
.info-section::before {
    width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
    top: -8%; left: -10%;
    background: radial-gradient(circle, rgba(193, 15, 95, 0.42) 0%, rgba(193, 15, 95, 0) 68%);
}
.info-section::after {
    width: 52vw; height: 52vw; max-width: 700px; max-height: 700px;
    bottom: -14%; right: -12%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.32) 0%, rgba(59, 130, 246, 0) 70%);
}
.info-section > * { position: relative; z-index: 1; }
.info-section h2 { color: var(--light); }
.calendar-wrapper { max-width: 1600px; margin: 0 auto; }
.week-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.day-col {
    border-radius: 18px;
    padding: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.03);        /* fallback so no day is ever black */
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.day-col:hover { transform: translateY(-4px); }

.day-col:nth-child(1) { background: linear-gradient(145deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.02)); border: 1px solid rgba(244, 63, 94, 0.3); }
.day-col:nth-child(1) .day-header { border-bottom-color: rgba(244, 63, 94, 0.5); color: #fb7185; }
.day-col:nth-child(1) .class-time { color: #fb7185; }

.day-col:nth-child(2) { background: linear-gradient(145deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.02)); border: 1px solid rgba(245, 158, 11, 0.3); }
.day-col:nth-child(2) .day-header { border-bottom-color: rgba(245, 158, 11, 0.5); color: #fbbf24; }
.day-col:nth-child(2) .class-time { color: #fbbf24; }

.day-col:nth-child(3) { background: linear-gradient(145deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.02)); border: 1px solid rgba(6, 182, 212, 0.3); }
.day-col:nth-child(3) .day-header { border-bottom-color: rgba(6, 182, 212, 0.5); color: #22d3ee; }
.day-col:nth-child(3) .class-time { color: #22d3ee; }

.day-col:nth-child(4) { background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.02)); border: 1px solid rgba(139, 92, 246, 0.3); }
.day-col:nth-child(4) .day-header { border-bottom-color: rgba(139, 92, 246, 0.5); color: #a78bfa; }
.day-col:nth-child(4) .class-time { color: #a78bfa; }

.day-col:nth-child(5) { background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.02)); border: 1px solid rgba(16, 185, 129, 0.3); }
.day-col:nth-child(5) .day-header { border-bottom-color: rgba(16, 185, 129, 0.5); color: #34d399; }
.day-col:nth-child(5) .class-time { color: #34d399; }

.day-col:nth-child(6) { background: linear-gradient(145deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.03)); border: 1px solid rgba(59, 130, 246, 0.35); }
.day-col:nth-child(6) .day-header { border-bottom-color: rgba(59, 130, 246, 0.5); color: #60a5fa; }
.day-col:nth-child(6) .class-time { color: #60a5fa; }

.day-header { font-family: 'Outfit', sans-serif; font-size: 1.25rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid; display: flex; justify-content: space-between; align-items: center; }
.class-slot { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 12px; margin-bottom: 10px; transition: all 0.3s ease; cursor: default; }
.class-time { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 3px; }
.class-name { display: block; font-weight: 600; font-size: 1rem; color: var(--light); line-height: 1.2; }
.class-level { display: block; font-size: 0.78rem; color: #a1a1aa; margin-top: 3px; }

/* Concurrent lessons: render side-by-side (one mini-column per room) */
.class-row { display: flex; gap: 10px; }
.class-row > .class-item { flex: 1 1 0; min-width: 0; }
.class-slot.multi { border-left: 3px solid var(--accent); padding-left: 12px; }
.class-slot.multi .class-item + .class-item {
    border-left: 1px dashed rgba(255, 255, 255, 0.16);
    padding-left: 10px;
}

/* Calendar responsive: keep all days on one line on desktop, swipeable on mobile */
.swipe-hint { display: none; }
@media (max-width: 1024px) {
    .swipe-hint {
        display: block; text-align: center; color: #a1a1aa;
        font-size: 0.85rem; margin: -20px 0 20px;
    }
    .week-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 1fr);
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px;
        scroll-padding: 0 20px;
    }
    .day-col { scroll-snap-align: start; }
}
@media (max-width: 680px) {
    .week-grid { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
}
@media (max-width: 420px) {
    .week-grid { grid-auto-columns: 88%; }
}

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; align-items: center; }
.contact-info h2 { font-size: clamp(2.2rem, 6vw, 3rem); margin-bottom: 15px; line-height: 1.1;}
.map-container { width: 100%; height: 400px; border-radius: 24px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.08); border: 6px solid white; }
.map-container iframe { width: 100%; height: 100%; border: none; }

footer { text-align: center; padding: 30px 20px; border-top: 1px solid #eaeaea; color: var(--text-muted); font-size: 0.85rem; }

/* Modal Overlay UI */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--light); width: 100%; max-width: 700px; max-height: 90vh; border-radius: 20px; overflow-y: auto;
    position: relative; transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25); display: flex; flex-direction: column;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5); color: white; border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10; transition: background 0.2s; display: flex; justify-content: center; align-items: center;
}
.modal-close:hover { background: rgba(0,0,0,0.8); }

.modal-header { height: 220px; position: relative; flex-shrink: 0; }
.modal-header img { width: 100%; height: 100%; object-fit: cover; }
.modal-header::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, var(--light), transparent); }

.modal-body { padding: 30px; padding-top: 10px; color: var(--text-main); }
.modal-body h3 { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: 10px; color: var(--dark); }
.modal-body p { margin-bottom: 20px; font-size: 1rem; color: var(--text-muted); }

.modal-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 25px; }
.modal-features div { background: var(--gray-bg); padding: 15px; border-radius: 12px; border: 1px solid #e4e4e7; }
.modal-features h4 { font-family: 'Outfit'; margin-bottom: 5px; color: var(--dark); font-size: 1.05rem;}

/* FAQ Section */
.faq-section { background: #fafafa; }
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--light); border: 1px solid #e4e4e7; border-radius: 16px;
    padding: 24px 28px; margin-bottom: 16px; transition: box-shadow 0.3s ease;
}
.faq-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.faq-item h3 {
    font-size: 1.15rem; color: var(--dark); margin-bottom: 10px;
    display: flex; align-items: flex-start; gap: 10px; line-height: 1.4;
}
.faq-item p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; margin: 0; }

/* MOBILE SPECIFIC MEDIA QUERIES */
@media (max-width: 768px) {
    .faq-item { padding: 20px; }
    section { padding: 60px 20px; }
    .nav-links { display: none; }
    header { top: 10px; padding: 6px 18px 6px 12px; width: 95%; }
    .logo img { height: 46px; }
    .btn { width: 100%; }
    .flagship-card { padding: 30px 20px; min-height: 280px; }
    .map-container { height: 300px; }
    .modal-header { height: 180px; }
    .modal-body { padding: 20px; }
    .modal-features div { padding: 12px; }
}

/* ===== Subtle ambient glows on the light sections ===== */
#about, .faq-section, #contact { position: relative; overflow: hidden; }
#about > *, .faq-section > *, #contact > * { position: relative; z-index: 1; }
#about::before, .faq-section::before, #contact::before {
    content: ''; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
    width: 42vw; height: 42vw; max-width: 540px; max-height: 540px;
}
#about::before { top: -6%; right: -8%; background: radial-gradient(circle, rgba(193, 15, 95, 0.08) 0%, rgba(193, 15, 95, 0) 70%); }
.faq-section::before { top: 8%; left: -10%; background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, rgba(59, 130, 246, 0) 70%); }
#contact::before { bottom: -12%; right: -6%; background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0) 70%); }

/* ===== Lightweight scroll-reveal animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
                    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
        will-change: opacity, transform;
    }
    .reveal.in-view { opacity: 1; transform: none; }

    /* Gentle drift of the calendar glow blobs */
    .info-section::before { animation: glowDriftA 14s ease-in-out infinite alternate; }
    .info-section::after { animation: glowDriftB 18s ease-in-out infinite alternate; }
    @keyframes glowDriftA { from { transform: translate(0, 0); } to { transform: translate(40px, 30px); } }
    @keyframes glowDriftB { from { transform: translate(0, 0); } to { transform: translate(-50px, -25px); } }
}