@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================
   BHARTIYA KRISHI COACHING INSTITUTE
   Complete Stylesheet
   ============================================= */

/* =============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================= */
:root {
    /* Colors */
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --primary-rgb: 46, 125, 50;

    --secondary: #F9A825;
    --secondary-light: #FFC107;
    --secondary-dark: #F57F17;
    --secondary-rgb: 249, 168, 37;

    --dark: #1F2937;
    --dark-light: #374151;
    --dark-lighter: #4B5563;

    --white: #FFFFFF;
    --light: #F5F7FA;
    --light-gray: #E5E7EB;
    --gray: #9CA3AF;
    --text: #374151;
    --text-light: #6B7280;

    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 94, 32, 0.92) 0%, rgba(31, 41, 55, 0.88) 100%);

    /* Typography */
    --font-primary: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-secondary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-green: 0 8px 24px rgba(46, 125, 50, 0.25);
    --shadow-yellow: 0 8px 24px rgba(249, 168, 37, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 16px;

    /* Z-index */
    --z-loader: 10000;
    --z-lightbox: 9000;
    --z-header: 1000;
    --z-banner: 1100;
    --z-floating: 900;
    --z-back-top: 800;
}

/* =============================================
   RESET & BASE STYLES
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-secondary);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    word-break: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img, iframe, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    box-sizing: border-box;
}

.section, section, [data-section] {
    padding: var(--section-padding);
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-gradient {
    color: var(--primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* =============================================
   LOADING SCREEN
   ============================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0a2e0a 0%, #1B5E20 50%, #2E7D32 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    padding: 6px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 16px;
}

.loader-text {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    margin: 0 0 20px;
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #66BB6A;
    animation: bounce 1.2s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}


/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 20px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}


/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-reveal .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals for grid items */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Entry Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */

/* Tablet & Mobile Navigation: 1024px */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 90px 24px 30px;
        gap: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
        z-index: 1000;
        overflow-y: auto;
        align-items: stretch;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        color: var(--dark);
        padding: 14px 10px;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid var(--light-gray);
        width: 100%;
        display: block;
    }

    .nav-link:hover {
        color: var(--primary);
        background: rgba(46, 125, 50, 0.05);
        padding-left: 16px;
    }

    .nav-link::after {
        display: none;
    }

    .mobile-admission-item {
        display: block;
        margin-top: 20px;
    }

    .mobile-admission-item .nav-admission-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .desktop-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Tablet Portrait: 768px */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .nav-admission-btn {
        display: none;
    }

    /* Hero */
    .hero-stats {
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        padding: 8px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Students */
    .students-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Branches */
    .branches-grid {
        grid-template-columns: 1fr;
    }


}

/* Mobile: 480px */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .logo-title {
        font-size: 1.05rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }



    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .branch-actions {
        flex-direction: column;
    }

    .branch-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn {
        bottom: 90px;
        right: 16px;
    }

    .call-btn {
        bottom: 26px;
        right: 16px;
    }

    .back-to-top {
        left: 16px;
        bottom: 26px;
        width: 42px;
        height: 42px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 14px;
    }

    .hero-content {
        padding: 0 14px;
    }
}
