/* ========================================
   Student Classes - Modern Tuition Website
   Color: Teal & White Premium Theme
   ======================================== */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --accent: #f97316;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* Buttons */
.btn-main {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; font-weight: 600; font-size: 1rem;
    border-radius: 50px; border: none; cursor: pointer;
    transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(13,148,136,0.4); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--white); }

/* Navbar */
.navbar {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    box-shadow: var(--shadow); padding: 0.8rem 0;
    transition: var(--transition); z-index: 1000;
}
.navbar.scrolled { padding: 0.5rem 0; box-shadow: var(--shadow-lg); }
.navbar-brand { font-size: 1.5rem; font-weight: 800; color: var(--primary) !important; }
.nav-link { font-weight: 600; color: var(--dark) !important; padding: 0.5rem 1rem !important; margin: 0 0.2rem; border-radius: 50px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary) !important; }

/* Hero */
.hero {
    min-height: 100vh; background: linear-gradient(135deg, var(--primary) 0%, #14b8a6 50%, var(--primary-dark) 100%);
    display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    padding: 8px 20px; border-radius: 50px; color: var(--white);
    font-weight: 600; font-size: 0.9rem; margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-title { font-size: 3.5rem; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title span { color: var(--accent); }
.hero-text { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
    position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
    background: var(--white); padding: 1.5rem 2rem; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); display: flex; gap: 2rem; z-index: 10;
}
.stat-item { text-align: center; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--gray); font-weight: 600; }

/* Sections */
.section { padding: 5rem 0; }
.bg-light { background: var(--light) !important; }
.bg-white { background: var(--white) !important; }
.bg-gradient { background: linear-gradient(135deg, var(--primary), #14b8a6); }

.section-title {
    font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem;
    position: relative; display: inline-block;
}
.section-title::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px; background: var(--primary); border-radius: 2px;
}
.section-subtitle { color: var(--gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto 3rem; }

/* Cards */
.card-modern {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 2rem; transition: var(--transition);
    border: none; height: 100%;
}
.card-modern:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 70px; height: 70px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1.5rem; background: var(--primary-light); color: var(--primary);
    transition: var(--transition);
}
.card-modern:hover .card-icon { transform: scale(1.1) rotate(5deg); }

/* Course Cards */
.course-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: var(--transition); height: 100%; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-img { height: 200px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 3rem; }
.course-badge {
    position: absolute; top: 15px; right: 15px; background: var(--accent);
    color: var(--white); padding: 5px 15px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700;
}
.course-body { padding: 1.5rem; }
.course-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* Toppers */
.topper-card {
    text-align: center; padding: 2rem; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition);
    position: relative; overflow: hidden;
}
.topper-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary);
}
.topper-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.topper-img { width: 100px; height: 100px; border-radius: 50%; background: var(--primary-light); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 2rem; }
.topper-marks { font-size: 2rem; font-weight: 800; color: var(--primary); }

/* Gallery */
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item .placeholder { width: 100%; height: 250px; background: linear-gradient(135deg, var(--primary-light), #e0f2fe); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 2.5rem; transition: var(--transition); }
.gallery-item:hover .placeholder { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,148,136,0.8); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 2rem; }

/* Lightbox */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: var(--white); font-size: 2.5rem; cursor: pointer; }

/* Contact */
.contact-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; height: 100%; transition: var(--transition); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; }
.contact-form { background: var(--white); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-control { border: 2px solid #e2e8f0; border-radius: 10px; padding: 12px 16px; font-size: 1rem; transition: var(--transition); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: #25d366; color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999; transition: var(--transition); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Scroll Top */
.scroll-top {
    position: fixed; bottom: 30px; left: 30px; width: 45px; height: 45px;
    background: var(--primary); color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; z-index: 999;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 4rem 0 0; }
.footer-title { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.social-links { display: flex; gap: 10px; margin-top: 1.5rem; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; margin-top: 3rem; text-align: center; color: rgba(255,255,255,0.6); }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary), #14b8a6);
    padding: 6rem 0 4rem; color: var(--white); text-align: center;
}
.page-title { font-size: 2.5rem; font-weight: 800; }

/* Counters */
.counter-box { text-align: center; padding: 2rem; }
.counter-number { font-size: 3rem; font-weight: 800; color: var(--white); }
.counter-label { color: rgba(255,255,255,0.9); font-weight: 600; }

/* Testimonials */
.testimonial-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); margin: 1rem; position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 10px; left: 20px; font-size: 4rem; color: var(--primary-light); font-family: Georgia; }
.testimonial-text { font-style: italic; color: var(--gray); margin-bottom: 1.5rem; padding-top: 1rem; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Preloader */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--white); display: flex; align-items: center; justify-content: center; z-index: 99999; transition: opacity 0.5s; }
.preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-spinner { width: 50px; height: 50px; border: 4px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .hero-stats { position: relative; bottom: 0; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .section { padding: 3rem 0; }
    .counter-number { font-size: 2rem; }
}
