/* 
 * Chilin - Premium Admission Consultancy
 * "Alive" Design System
 */

/* Import Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');



/* 2. Custom Selection */
::selection {
    background: rgba(234, 88, 12, 0.2);
    color: #ea580c;
}



/* 5. Pulse Animation for Call Button (Mobile) */
@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

:root {
    /* Color Palette - Light, Airy, Vibrant, Premium */
    --primary: #2d55ff;
    /* Vibrant Trust Blue */
    --primary-soft: #eaeeff;
    --accent: #ff4d6d;
    /* Subtle Energy */
    --text-main: #1a1b26;
    /* Deep readable charcoal */
    --text-muted: #64748b;
    --bg-base: #fafafa;
    --bg-surface: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: rgba(149, 157, 165, 0.1);

    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-soft: cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradients */
    --gradient-breath: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --gradient-aurora: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

/* Base Reset & Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #ffffff;
    /* Pure white */
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}



/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 2rem 0;
    /* Increased to "normal" from 1rem */
    opacity: 1;
    transform: none;
}

section.visible {
    /* Kept to prevent JS errors, but does nothing */
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    /* Minimal padding */
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1001;
}

.brand span {
    color: var(--primary);
}

.desktop-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mega Menu / Dropdown */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-surface);
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Language Toggle */
.lang-toggle {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.lang-toggle:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: block;
    padding-top: 5rem;
    /* Increased from 4rem for better logo gap */
    padding-bottom: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 0%, #4a5568 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    /* Tighter margins */
    max-width: 600px;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--text-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #fff;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--bg-base);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-black {
    background: #000000;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-black:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-yellow {
    background: #FFD700;
    /* Gold/Yellow */
    color: #000000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-yellow:hover {
    background: #ffdf33;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-cyan {
    background: #06b6d4;
    /* Cyan-500 */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-cyan:hover {
    background: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

/* Cards & Grid */
.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: var(--primary-soft);
    border-radius: 16px;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Course Page Specifics */
.course-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 2rem;
}

.detail-row {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.official-badge {
    background: #e6fffa;
    color: #047857;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #fff;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: 2rem;
}

/* Terms Page */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.terms-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Global Image Reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .desktop-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: 3rem 2rem;
        transition: right 0.4s var(--ease-out-expo);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
    }

    .desktop-menu.active {
        right: 0;
    }

    .nav-flex {
        padding: 0 0.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .official-badge {
        margin-bottom: 0.5rem;
    }
}

/* Page Transition Overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
}

.transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Contact Button Special Styling */
.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.call-btn {
    user-select: none;
    -webkit-user-select: none;
}

/* Language Visibility Logic */
body.lang-hi .lang-en {
    display: none !important;
}

body.lang-hi .lang-hi {
    display: block !important;
}

body.lang-en .lang-hi {
    display: none !important;
}

body.lang-en .lang-en {
    display: block !important;
}