/* --- CSS VARIABLES & THEME CONFIGURATION --- */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #7c3aed;
    --dark: #0f172a;
    --gray-dark: #334155;
    --gray-muted: #64748b;
    --gray-light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --whatsapp: #25d366;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
    background-color: var(--white);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- REUSABLE UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--gray-light);
}

.text-center {
    text-align: center;
}

.full-width {
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--gray-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* --- HERO SECTION --- */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent),
                radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.08), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--gray-muted);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-item i {
    color: #10b981;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* --- STATS SECTION --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
}

.stat-card span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card p {
    color: var(--gray-muted);
    font-weight: 500;
    margin-top: 5px;
}

/* --- COURSES --- */
.course-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 15px;
}

.course-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.course-card p {
    font-size: 0.95rem;
    color: var(--gray-muted);
    margin-bottom: 20px;
}

.course-details {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    margin-bottom: 20px;
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
}

/* --- WHY US --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 10px;
}

/* --- FACULTY & RESULTS --- */
.faculty-grid, .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.profile-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.profile-body {
    padding: 20px;
}

.profile-body h4 {
    font-size: 1.2rem;
    color: var(--dark);
}

.profile-body .designation {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    display: block;
}

.profile-body .meta {
    font-size: 0.85rem;
    color: var(--gray-muted);
    margin-bottom: 10px;
}

.result-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.score-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.result-card h4 {
    font-size: 1.2rem;
    color: var(--dark);
}

.result-card .class-info {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* --- TESTIMONIALS --- */
.testimonials-slider {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.stars {
    color: #f59e0b;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

/* --- GALLERY LIGHTBOX --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 8px;
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
}

/* --- BATCHES --- */
.batch-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.batch-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border-left: 5px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.alert-badge {
    background: #fef3c7;
    color: #d97706;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: inline-block;
}

/* --- FAQ ACCORDION --- */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--dark);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: var(--gray-muted);
}

.faq-item.active .faq-content {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-item.active i {
    transform: rotate(180deg);
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-list {
    margin: 25px 0;
    display: grid;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 4px;
}

.quick-btns {
    display: flex;
    gap: 15px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
}

.success-msg {
    display: none;
    margin-top: 15px;
    padding: 12px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- CTA BANNER --- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 60px 0;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    font-size: 0.85rem;
}

/* --- SCROLL TOP BUTTON --- */
.scroll-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .hero-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 80px; left: -100%;
        width: 100%; height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
    }
    .nav-links.active {
        left: 0;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .batch-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}