/* 
   MySchoolDesk - Core Styling 
   Aesthetic: Rich, Vibrant, MakeMyTrip-inspired, Modern, Premium UI
*/

:root {
    --primary-color: #2563EB; /* Vibrant Blue */
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    --secondary-color: #F59E0B; /* Amber/Orange for accents like 'Claim', CTA */
    --secondary-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --border-color: #E2E8F0;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.main-content {
    flex-grow: 1;
    padding-top: 86px; /* Offset for fixed navbar */
}

/* Typography Utility */
.mb-sm { margin-bottom: 0.5rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 86px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    background: transparent;
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    font-weight: 500;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

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

.nav-item:hover {
    color: var(--primary-color);
}

.active-link {
    color: var(--primary-color) !important;
}

.active-link::after {
    content: '';
    position: absolute;
    width: 80% !important;
    height: 3px !important;
    bottom: -2px;
    left: 10%;
    background: var(--primary-gradient);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.active-mobile-link span {
    color: var(--primary-color) !important;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Footer Section */
.footer {
    background: #111827; /* Very dark background */
    color: #F9FAFB;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.footer .logo { color: white; }
.footer .logo-icon { box-shadow: 0 0 15px rgba(255,255,255,0.2); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #9CA3AF;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: #9CA3AF;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Badges & Tags */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-green { background: #DCFCE7; color: #166534; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }
.badge-orange { background: #FEF3C7; color: #92400E; }

/* Responsive Helpers */
.mobile-menu-active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 1.5rem !important;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-active a {
    width: 100%;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Hero Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    .hero-section p {
        font-size: 1.125rem !important;
        margin-bottom: 2rem !important;
    }
    .hero-section {
        min-height: 500px !important;
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    .hero-section .container {
        padding-top: 2rem !important;
    }
    .menu-btn {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
