/* ============================ */
/* VARIABLES & BASE STYLES      */
/* ============================ */
:root {
    --primary-blue: #0D2C54;
    --primary-blue-darker: #081B33;
    --accent-gold: #FFC107;
    --accent-gold-darker: #e0a800;
    --light-grey: #F8F9FA;
    --dark-charcoal: #212529;
    --white: #FFFFFF;
    --body-font: 'Lato', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    --header-height: 4rem;
    --transition-speed: 0.4s;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-charcoal);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll from AOS */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary-blue);
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #6c757d;
}

.bg-dark {
    background: linear-gradient(145deg, var(--primary-blue-darker), var(--primary-blue));
    color: var(--light-grey);
}
.bg-light { background-color: var(--light-grey); }
.text-light, .text-light h2, .text-light h3, .text-light h4 { color: var(--white); }

/* ============================ */
/* PRELOADER STYLES             */
/* ============================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================ */
/* KEYFRAME ANIMATIONS          */
/* ============================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================ */
/* BUTTONS                      */
/* ============================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--heading-font);
    font-weight: 600;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
}
.btn-gold {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}
.btn-gold:hover {
    background-color: var(--accent-gold-darker);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}
.btn-lg { font-size: 1.1rem; padding: 1rem 2rem; }
.btn-block { display: block; width: 100%; font-size: 1.2rem; }

/* ============================ */
/* HEADER & NAVIGATION          */
/* ============================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: all var(--transition-speed) ease;
}
.header.scrolled {
    background-color: rgba(13, 44, 84, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.navbar { display: flex; justify-content: space-between; align-items: center; height: var(--header-height); }
.nav-logo { font-family: var(--heading-font); font-size: 1.5rem; color: var(--white); font-weight: 700; }
.nav-links { display: flex; gap: 2rem; }
.nav-link { color: var(--white); font-weight: 600; position: relative; padding: 5px 0; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width var(--transition-speed) ease;
}
.nav-link:hover::after { width: 100%; }
.nav-cta-button { display: none; }
.nav-toggle { font-size: 1.5rem; color: var(--white); cursor: pointer; display: block; z-index: 101; }

/* ============================ */
/* HERO SECTION                 */
/* ============================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: url('https://images.pexels.com/photos/8617966/pexels-photo-8617966.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(8, 27, 51, 0.8), rgba(13, 44, 84, 0.6)); }
.hero-content { position: relative; z-index: 1; }

.hero-title, .hero-subtitle, .hero .btn {
    animation: fadeIn-up 0.8s ease-out forwards;
    opacity: 0;
}
.hero-subtitle { animation-delay: 0.2s; }
.hero .btn { animation-delay: 0.4s; }

.hero-title { font-size: 3rem; margin-bottom: 1rem; color: var(--white); font-weight: 700; }
.hero-subtitle { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem auto; }

/* ============================ */
/* WELCOME SECTION              */
/* ============================ */
.welcome-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.welcome-image-wrapper img { border-radius: var(--border-radius); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }

/* ============================ */
/* CURRICULUM SECTION           */
/* ============================ */
.curriculum-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.curriculum-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;

    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.curriculum-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.card-icon { font-size: 3rem; color: var(--accent-gold); margin-bottom: 1rem; }

/* ============================ */
/* ENROLLMENT FORM              */
/* ============================ */
.enroll-form { max-width: 700px; margin: 0 auto; display: grid; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 700; margin-bottom: 0.5rem; font-family: var(--heading-font); }
.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--body-font);
    transition: all var(--transition-speed) ease;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 44, 84, 0.1);
}

/* ============================ */
/* WHY CHOOSE US SECTION        */
/* ============================ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.why-card { text-align: center; padding: 2rem; }

/* ============================ */
/* FOOTER SECTION               */
/* ============================ */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0; text-align: center; }
.footer-col h5 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--accent-gold); }
.contact-list li { margin-bottom: 0.75rem; }
.contact-list i { color: var(--accent-gold); margin-right: 0.5rem; }
.footer-social { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.footer-social a { font-size: 1.5rem; transition: color var(--transition-speed) ease, transform var(--transition-speed) ease; }
.footer-social a:hover { color: var(--accent-gold); transform: translateY(-3px); }
.footer-bar { text-align: center; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }

/* ============================ */
/* RESPONSIVE DESIGN (TABLETS +)  */
/* ============================ */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .nav-cta-button { display: block; }
    .hero-title { font-size: 4rem; }
    .welcome-grid { grid-template-columns: 1fr 1fr; }
    .curriculum-cards { grid-template-columns: 1fr 1fr; }
    .enroll-form { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
    .enroll-form .form-group:last-of-type, .enroll-form button { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .footer-social { justify-content: flex-start; }
}

/* Mobile Menu Styling */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(8, 27, 51, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .nav-menu.show-menu { right: 0; }
    .nav-links { flex-direction: column; align-items: center; gap: 3rem; }
    .nav-link { font-size: 1.5rem; }
    .nav-toggle.active i::before { content: '\f00d'; /* Font Awesome close icon */ }
}