/* ===== GLOBAL STYLES ===== */
:root {
    /* Primary Colors — logo navy + gold */
    --primary: #1D3461;
    --primary-dark: #152748;
    --primary-light: #2E5A9C;
    --secondary: #C8962A;
    --secondary-dark: #A67B1E;

    /* Accent Colors - STEAM (kept vibrant for subject identity) */
    --accent-science: #06B6D4;
    --accent-tech: #F59E0B;
    --accent-engineering: #8B5CF6;
    --accent-arts: #10B981;
    --accent-math: #EF4444;

    /* Neutral Colors */
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --bg-dark: #18181B;
    --text-dark: #18181B;
    --text-muted: #71717A;
    --text-light: #FFFFFF;
    --border-light: #E4E4E7;

    /* Shadows — subtle & layered */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.03);

    /* Spacing */
    --section-padding: 96px 0;
    --container-padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    --grid-gap: 24px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

h2 {
    font-size: clamp(36px, 5vw, 70px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(5px);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
}

/* Background Elements */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(29, 52, 97, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 52, 97, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: float 15s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    animation: float 20s ease-in-out infinite reverse;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-tech);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.project-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(29, 52, 97, 0.08);
    border: 1px solid rgba(29, 52, 97, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.4s ease both;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(29, 52, 97, 0.15); }
.project-emoji { font-size: 42px; margin-bottom: 12px; }
.project-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.project-tag.science { background: #e8f5e9; color: #2e7d32; }
.project-tag.robotics { background: #e3f2fd; color: #1565c0; }
.project-tag.coding { background: #f3e5f5; color: #6a1b9a; }
.project-tag.art { background: #fff3e0; color: #e65100; }
.project-tag.engineering { background: #fce4ec; color: #c62828; }
.project-card h3 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.project-card p { font-size: 13.5px; color: #555; line-height: 1.5; margin-bottom: 10px; }
.project-award { font-size: 12px; color: #f57c00; font-weight: 600; margin-bottom: 12px; }
.project-award i { margin-right: 4px; }
.project-student { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.student-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #1D3461, #C8962A);
    color: white; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.project-student span { font-size: 13px; color: #666; }

/* ===== INSTRUCTORS ===== */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 30px;
}
.instructor {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(29, 52, 97, 0.08);
    border: 1px solid rgba(29, 52, 97, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.4s ease both;
}
.instructor:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(29, 52, 97, 0.15); }
.instructor-avatar {
    width: 72px; height: 72px; font-size: 36px;
    background: linear-gradient(135deg, #EEF2FA, #F0F5FF);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; border: 3px solid #D6E4F5;
}
.instructor h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.instructor-role { font-size: 13px; color: #1D3461; font-weight: 600; margin-bottom: 4px; }
.instructor-exp { font-size: 12px; color: #888; margin-bottom: 10px; }
.instructor-exp i { margin-right: 4px; }
.instructor-bio { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 14px; }
.instructor-skills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.skill-tag {
    background: #EEF2FA; color: #1D3461;
    padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
}

/* ===== FACILITIES ===== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 30px;
}
.facility-card {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(29, 52, 97, 0.08);
    border: 1px solid rgba(29, 52, 97, 0.10);
    transition: transform 0.3s ease;
    animation: fadeUp 0.4s ease both;
}
.facility-card:hover { transform: translateY(-5px); }
.facility-icon { font-size: 40px; margin-bottom: 14px; }
.facility-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.facility-card p { font-size: 13.5px; color: #555; margin-bottom: 16px; line-height: 1.5; }
.facility-features { list-style: none; padding: 0; }
.facility-features li { font-size: 13px; color: #444; padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.facility-features i { color: #22c55e; font-size: 12px; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 4px 20px rgba(29, 52, 97, 0.08);
    border: 1px solid rgba(29, 52, 97, 0.10);
    transition: transform 0.3s ease;
    animation: fadeUp 0.4s ease both;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-stars { font-size: 16px; margin-bottom: 12px; }
.testimonial-quote { font-size: 14px; color: #333; line-height: 1.65; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #1D3461, #C8962A);
    color: white; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.testimonial-author strong { display: block; font-size: 14px; font-weight: 700; }
.testimonial-author span { display: block; font-size: 12px; color: #888; margin-top: 1px; }
.author-location { font-size: 11px !important; color: #aaa !important; }
.author-location i { margin-right: 3px; }

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 30px;
}
.blog-post {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(29, 52, 97, 0.08);
    border: 1px solid rgba(29, 52, 97, 0.10);
    transition: transform 0.3s ease;
    animation: fadeUp 0.4s ease both;
}
.blog-post:hover { transform: translateY(-5px); }
.blog-emoji { font-size: 38px; margin-bottom: 12px; }
.blog-tag {
    display: inline-block;
    background: #EEF2FA; color: #1D3461;
    padding: 3px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; margin-bottom: 10px;
}
.blog-post h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.blog-post p { font-size: 13.5px; color: #555; line-height: 1.5; margin-bottom: 16px; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; }
.blog-date { font-size: 12px; color: #aaa; }
.blog-date i { margin-right: 4px; }
.blog-link { font-size: 13px; color: #1D3461; font-weight: 600; text-decoration: none; }
.blog-link:hover { color: #C8962A; }

/* ===== FADE UP ANIMATION ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
