/* 
   TEMPORARY FRONTEND UI ENHANCEMENT 
   Glassmorphism Theme & Animations
   Note: This file overrides default styles to apply a premium glass look.
*/

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: 12px;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #2c3e50;
    --glass-radius: 16px;
}

/* Global Body Enhancement */
body {
    background: linear-gradient(to bottom right, #eef2f3, #8e9eab);
    background-attachment: fixed;
    min-height: 100vh;
}

/* 1. Header / Navbar */
.site-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-nav a {
    position: relative;
    transition: color 0.3s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

/* 2. Hero Section */
.hero {
    background: transparent !important;
    /* Remove original flat color */
    position: relative;
    overflow: hidden;
    padding: 8rem 0 6rem;
}

/* Animated gradient background check */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, rgba(102, 126, 234, 0.05) 50%, transparent 70%);
    animation: rotateBg 20s linear infinite;
    z-index: -1;
}

.hero>div {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* 3. Buttons & CTAs */
.btn {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 50px !important;
    color: var(--text-dark) !important;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn.btn-primary {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    border: none !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.25);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

/* 4. Content Sections (Cards) */
.card,
.teacher-card,
.temp-notice-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: var(--glass-radius) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    opacity: 1;
    /* Reset for JS animation control if needed */
}

/* Hover Lift */
.card:hover,
.teacher-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* 5. Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    padding-top: 3rem;
}

/* Animations */
/* Scroll Reveal Helper Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge Tweaks */
.badge {
    background: var(--primary-gradient);
    color: white;
    border-radius: 4px;
    padding: 0.25em 0.6em;
    font-size: 0.85em;
}