/* Project: SBN Modern School CMS
    Style: Professional, Animated, Responsive
*/

:root {
    --primary: #2563eb;       /* Royal Blue */
    --secondary: #1e293b;     /* Dark Slate */
    --accent: #f59e0b;        /* Amber Gold */
    --light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--secondary);
    overflow-x: hidden;
}

/* --- Navigation --- */
.navbar {
    background: var(--white);
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 100px 0;
    background-attachment: fixed;
    clip-path: ellipse(150% 100% at 50% 0%); /* Modern Curve */
}

.hero-section h1 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* --- Cards & Glassmorphism --- */
.card {
    border: none;
    border-radius: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
}

/* --- Staff & Gallery Images --- */
.staff-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item {
    cursor: pointer;
    filter: grayscale(30%);
    transition: var(--transition);
}

.gallery-item:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* --- Footer --- */
footer {
    background-color: var(--secondary) !important;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    padding-left: 5px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 80px 20px;
        text-align: center;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
}

/* --- Custom Animations (Keyframes) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}