/* style.css */
/* Base Styles & Variables */
:root {
    --primary: #4a6fa5; /* Calm Blue */
    --secondary: #ff9e5d; /* Vibrant Orange */
    --accent: #9bc53d; /* Fresh Green */
    --light: #f8f9fa;
    --dark: #343a40;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 158, 93, 0.3);
}

.btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(74, 111, 165, 0.3);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    border-radius: 3px;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    color: var(--primary);
}
.logo i { font-size: 2.2rem; }
.logo-title {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
}
.logo-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e3f2fd 0%, #fce4ec 100%);
    padding: 160px 0 120px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}
.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}
.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(155, 197, 61, 0.3);
    z-index: -1;
    border-radius: 4px;
}
.hero-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.btn-hero {
    font-size: 1.1rem;
    padding: 16px 40px;
    background-color: var(--accent);
}

/* Animated Background Shapes */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}
.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary);
    top: -150px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}
.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--secondary);
    bottom: 80px;
    left: -80px;
    animation: float 18s infinite ease-in-out reverse;
}
.shape-3 {
    width: 150px;
    height: 150px;
    background-color: var(--accent);
    top: 40%;
    right: 20%;
    animation: float 15s infinite ease-in-out;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-content p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #444;
}
.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}
.stat-item {
    text-align: center;
    flex: 1;
}
.stat-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.stat-number {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 2.8rem;
    color: var(--secondary);
    line-height: 1;
}
.stat-label {
    font-size: 0.95rem;
    color: #666;
}
.about-image {
    position: relative;
    height: 400px;
}
.image-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 12s infinite ease-in-out;
    box-shadow: var(--shadow);
}

/* Academics Section */
.academics {
    background-color: #f8f9fa;
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.card {
    background: white;
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 6px solid var(--primary);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark);
}
.card p {
    color: #666;
}

/* Facilities Section */
.facility-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.facility-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.facility-item:hover {
    background: linear-gradient(to bottom right, var(--primary), #6a8bc5);
    color: white;
    transform: translateY(-5px);
}
.facility-item:hover i,
.facility-item:hover h4,
.facility-item:hover p {
    color: white;
}
.facility-item i {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 20px;
}
.facility-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}
.facility-item p {
    color: #666;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.contact-details {
    margin: 30px 0;
}
.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}
.detail-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 5px;
}
.detail-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.detail-item a {
    color: var(--primary);
    transition: var(--transition);
}
.detail-item a:hover {
    color: var(--secondary);
}
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #eee;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--dark);
    transition: var(--transition);
}
.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
}
footer p {
    margin-bottom: 10px;
}
footer strong {
    color: #fff;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}
@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}
.animate-pop {
    animation: popIn 0.8s ease-out;
}
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .stats { justify-content: space-around; }
    .stat-item { flex: none; padding: 0 15px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.5s ease;
        z-index: 999;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .menu-toggle {
        display: block;
    }
    .hero {
        padding: 120px 0 80px;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .stats {
        flex-direction: column;
        gap: 30px;
    }
    .facility-list,
    .cards-container {
        grid-template-columns: 1fr;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}