/* Google Fonts loaded in HTML for performance */

:root {
    --primary-blue: #1e3a8a;
    /* blue-900 */
    --secondary-orange: #ea580c;
    /* orange-600 */
    --bg-light: #f9fafb;
    /* gray-50 */
}

body {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    background-color: var(--bg-light);
    color: #1f2937;
}

/* Utilities */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.animate-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 60s linear infinite;
    will-change: transform;
}

/* Performance Optimization */
footer {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
    /* Approximate height */
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* AdSense Placeholders */
.ad-slot {
    background-color: #e5e7eb;
    border: 1px dashed #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin: 1rem 0;
    min-height: 100px;
    width: 100%;
    position: relative;
}

.ad-slot::after {
    content: 'Advertisement / जाहिरात';
    font-weight: 500;
}

.ad-slot.hero-ad {
    min-height: 250px;
    /* Larger for sidebar/hero */
}

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-orange);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* --- Visual Enhancements --- */

/* 1. Glassmorphism for Dashboard Cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* 2. Enhanced Gradients for Steps */
.step-circle {
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    color: white;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

.step-circle.orange {
    background: linear-gradient(135deg, var(--secondary-orange), #f97316);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.step-circle.green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

/* 3. Scroll Animations (Fade In Up) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Start hidden */
}

/* Staggered delays for grid items */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Hero Section Illustration */
.hero-illustration {
    background-image: url('/assets/images/student-going-to-school.svg');
    background-repeat: no-repeat;
    background-position: 120% center;
    background-size: 50%;
}

.hero-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.95) 0%, rgba(30, 64, 175, 0.85) 60%, rgba(30, 64, 175, 0.6) 100%);
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-illustration {
        background-position: 110% center;
        background-size: 55%;
    }
}

@media (max-width: 768px) {
    .hero-illustration {
        background-image: none;
    }

    .hero-illustration::before {
        background: linear-gradient(to bottom, rgba(30, 58, 138, 0.98), rgba(30, 64, 175, 0.98));
    }
}