:root {
    --primary: #0a192f;   /* Deep Navy */
    --secondary: #172a45; /* Lighter Navy */
    --gold: #ffd700;      /* Gold */
    --text-light: #ccd6f6;
    --text-white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.gold { color: var(--gold); }
a { text-decoration: none; }
ul { list-style: none; }

/* Top Bar */
.top-bar {
    background: var(--primary);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.ticker-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: var(--text-light);
    margin-left: 20px;
    font-size: 0.85rem;
}

.portal-btn {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold) !important;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid var(--gold);
}

/* Navbar */
/* Find this and update the padding */
.navbar {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0; /* Changed from 15px to 10px to make it slimmer */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px; /* Adjust size based on your logo */
    width: auto;
    border-radius: 5px;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--text-white);
    line-height: 1;
}

.tagline {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.mobile-only { display: none; }
.hamburger { display: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    height: 90vh;
    background: url('hero-bg.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.85); /* Dark overlay to make text pop */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.pill {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, #8892b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary);
}

.btn-primary:hover {
    background: #e6c200;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Stats Section */
.stats {
    background: var(--secondary);
    padding: 50px 0;
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--gold);
}

/* About Section */
.section-padding { padding: 80px 0; }
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.sub-heading {
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.signature {
    margin-top: 30px;
    border-left: 3px solid var(--gold);
    padding-left: 15px;
}

.signature strong { display: block; color: var(--text-white); }

/* --- Wrapper Container --- */
.about-image-wrapper {
    position: relative;
    z-index: 1;
    padding: 20px; /* Gives space for the glow not to get cut off */
}

/* --- The Headmaster's Photo (The "Pop" Effect) --- */
.about-image-wrapper .main-img {
    width: 100%;
    border-radius: 15px;
    border: 2px solid var(--gold);
    
    /* This creates the "Light on Frame" and 3D Lift */
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.5), /* Inner Gold Glow */
        0 15px 40px rgba(0, 0, 0, 0.8);  /* Dark Drop Shadow */
        
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover Effect: Lifts up slightly when touched */
.about-image-wrapper .main-img:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.8), /* Brighter Gold */
        0 25px 60px rgba(0, 0, 0, 0.9);
}

/* --- The Floating Badge Card (Glass Effect) --- */
.floating-card {
    position: absolute;
    bottom: 0px;
    left: -10px;
    
    /* Glassmorphism Background */
    background: rgba(10, 25, 47, 0.85); /* Semi-transparent dark blue */
    backdrop-filter: blur(12px);         /* The "Frosted Glass" Blur */
    -webkit-backdrop-filter: blur(12px);
    
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    
    /* Premium Borders */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--gold); /* Gold Accent Line on left */
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    
    /* The Gentle Floating Animation */
    animation: float-badge 4s ease-in-out infinite;
    z-index: 3;
}

/* Icon inside the card */
.floating-card i {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Text inside the card */
.floating-card div strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.floating-card div span {
    font-size: 0.8rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Animation Keyframes --- */
@keyframes float-badge {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); } /* Moves up */
    100% { transform: translateY(0px); } /* Moves down */
}
/* Academics */
.dark-bg { background: #0b162a; }
.center-header { text-align: center; margin-bottom: 50px; }
.center-header h2 { font-size: 2.5rem; color: var(--text-white); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: rgba(23, 42, 69, 0.7);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.icon-box {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.glass-card h3 { color: var(--text-white); margin-bottom: 10px; }
.highlight { color: var(--gold); font-size: 0.9rem; font-weight: bold; margin-bottom: 15px; }

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(10,25,47,0.8), rgba(10,25,47,0.8)), url('hero-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}

/* Footer */
footer {
    background: #020c1b;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer h3 { color: var(--gold); }
.credits { font-size: 0.8rem; margin-top: 30px; opacity: 0.5; }

/* Mobile Responsiveness */
/* --- PERFECT MOBILE MENU --- */
@media (max-width: 768px) {
    /* 1. Adjust Layout for Mobile */
    .ticker-flex { flex-direction: column; gap: 10px; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .split-layout { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }

    /* 2. The Floating Bubble Menu */
    .nav-links {
        position: fixed; /* Stays in place when scrolling */
        top: 80px;       /* Just below the navbar */
        right: 20px;     /* Slight gap from the right edge */
        width: 250px;    /* Nice compact width */
        height: auto;    /* Height adjusts to content */
        
        /* The "Glass" Look */
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        flex-direction: column;
        align-items: center;
        padding: 30px;
        gap: 20px;
        
        /* "Cute" Styling */
        border-radius: 20px;
        border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle Gold Border */
        box-shadow: 0 15px 50px rgba(0,0,0,0.5);
        
        /* Hidden State (Animation Start) */
        transform: translateY(-20px) scale(0.9); /* Starts slightly higher and smaller */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy Animation */
    }

    /* 3. The Active State (When Opened) */
    .nav-links.active {
        transform: translateY(0) scale(1); /* Pops into place */
        opacity: 1;
        visibility: visible;
        right: 20px; /* Ensures it stays in position */
    }

    /* 4. Link Styling */
    .nav-links li a {
        font-size: 1.1rem;
        width: 100%;
        display: block;
        text-align: center;
        padding: 10px;
        border-radius: 10px;
    }

    /* Hover effect inside menu */
    .nav-links li a:hover {
        background: rgba(255, 215, 0, 0.15);
        color: var(--gold);
    }

    /* 5. Show Hamburger Icon */
    .hamburger { 
        display: block; 
        cursor: pointer;
        font-size: 1.8rem;
        color: var(--gold);
    }
}
/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* WhatsApp Green */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(37, 211, 102, 0.6);
}

/* --- Footer Contact Buttons --- */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.contact-btn.phone {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.contact-btn.email {
    background-color: #ea4335; /* Gmail Red */
    color: white;
    border: 1px solid #ea4335;
}

.contact-btn:hover {
    transform: translateY(-3px);
}
/* --- Premium Download Button --- */
.download-btn {
    background: #ffffff;
    color: var(--primary); /* Dark Navy text */
    padding: 16px 45px;    /* Bigger padding for easier clicking */
    border-radius: 50px;   /* Pill shape (fully rounded) */
    font-size: 1.1rem;
    font-weight: 800;      /* Extra bold text */
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid var(--gold); /* Thick gold border */
    
    display: inline-flex;
    align-items: center;
    gap: 12px;             /* Space between icon and text */
    position: relative;
    z-index: 10;
    
    /* The "Breathing" Pulse Animation */
    animation: pulse-gold 2s infinite;
    transition: all 0.3s ease;
}

/* Hover Effect: Turns Gold and Lifts Up */
.download-btn:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-5px) scale(1.05); /* Moves up and grows slightly */
    box-shadow: 0 15px 30px rgba(0,0,0,0.4); /* Strong shadow underneath */
    cursor: pointer;
}

/* Make the PDF Icon shake slightly when hovered */
.download-btn:hover i {
    animation: shake 0.5s ease-in-out;
}

/* --- Animations --- */

/* 1. Pulse Animation (The Glow Ring) */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0); /* Ring expands and fades */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* 2. Shake Animation for Icon */
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}