/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    /* Colors */
    --clr-primary: #1a2a40;       /* Deep Navy Blue */
    --clr-primary-light: #2c4463;
    --clr-accent: #F5B819;        /* Gold / Amber */
    --clr-accent-hover: #e0a715;
    --clr-text: #333333;
    --clr-text-light: #666666;
    --clr-bg-light: #f8f9fa;
    --clr-white: #ffffff;
    --clr-border: #eaeaea;
    
    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(26, 42, 64, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--clr-white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   UTILITIES
========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--clr-bg-light);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--clr-accent);
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-primary);
    box-shadow: 0 4px 15px rgba(245, 184, 25, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 184, 25, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
}

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

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

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 42, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-white);
}

.logo-icon {
    color: var(--clr-accent);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--clr-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    color: var(--clr-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../assets/school_placeholder.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--clr-white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 42, 64, 0.9) 0%, rgba(26, 42, 64, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.subtitle {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--clr-accent);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
    font-size: 1.05rem;
}

.about-features {
    margin-bottom: 2.5rem;
}

.about-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--clr-primary);
}

.about-features i {
    color: var(--clr-accent);
    font-size: 1.2rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2);
    pointer-events: none;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 2rem;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 8px solid var(--clr-white);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-accent);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    line-height: 1.2;
}

/* =========================================
   ACADEMICS SECTION
========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background-color: var(--clr-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    top: -10px;
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.card-icon {
    position: absolute;
    top: -25px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--clr-accent);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.card-content {
    padding: 2.5rem 2rem 2rem;
    text-align: left;
    position: relative;
}

.card-content h3 {
    font-size: 1.4rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover {
    color: var(--clr-accent);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   CAMPUS LIFE GALLERY
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 769px) {
    .gallery-item:nth-child(5) {
        grid-column: span 2;
    }
}

.gallery-item:nth-child(5) {
    height: auto;
}

.gallery-item:nth-child(5) img {
    height: auto;
    object-fit: contain;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 42, 64, 0.8) 0%, rgba(26, 42, 64, 0) 50%);
    opacity: 0.7;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    opacity: 0.9;
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--clr-white);
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   ADMISSIONS SECTION
========================================= */
.admissions-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.steps-list {
    margin-top: 3rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px rgba(26, 42, 64, 0.1);
}

.step-content h4 {
    font-size: 1.2rem;
    color: var(--clr-primary);
    margin-bottom: 0.3rem;
}

.step-content p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

.admissions-form-card {
    background-color: var(--clr-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.admissions-form-card h3 {
    font-size: 1.8rem;
    color: var(--clr-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--clr-text);
    background-color: #fcfcfc;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--clr-accent);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(245, 184, 25, 0.1);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: var(--clr-primary);
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

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

.footer h4 {
    color: var(--clr-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-accent);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info i {
    color: var(--clr-accent);
    margin-top: 0.3rem;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS (Scroll Reveal)
========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translate(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid, .admissions-wrapper { gap: 2rem; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--clr-primary);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    
    .nav-menu.show {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .mobile-toggle { display: block; }
    .header-actions .btn { display: none; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    .hero-text { font-size: 1rem; }
    
    .about-grid, .admissions-wrapper, .gallery-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    
    .about-image-wrapper { margin-top: 2rem; }
    .experience-badge {
        width: 120px;
        height: 120px;
        bottom: -15px;
        left: -15px;
    }
    .experience-badge .number { font-size: 1.8rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
