@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #334155;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.nav-logo i {
    font-size: 2.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.nav-link {
    color: white;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    transform: translateY(-3px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #db2777);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.btn-light {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background: var(--light);
    transform: translateY(-4px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    color: white;
    padding: 180px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    animation: drift 15s infinite linear;
}

@keyframes drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* ===== FEATURES SECTION ===== */
.features {
    padding: 100px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.feature-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(even) i {
    animation: float 3s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ===== STATS SECTION ===== */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.6s ease backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

/* ===== HIGHLIGHTS SECTION ===== */
.highlights {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.highlight-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    animation: fadeInUp 0.6s ease backwards;
}

.highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlight-card:nth-child(2) { animation-delay: 0.2s; }
.highlight-card:nth-child(3) { animation-delay: 0.3s; }

.highlight-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.highlight-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.highlight-card h3 {
    padding: 1.8rem 1.8rem 0.5rem;
    color: var(--primary);
}

.highlight-card p {
    padding: 0 1.8rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0 1.8rem 1.8rem;
    color: var(--secondary);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(8px);
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E");
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.cta h2 {
    color: white;
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* ===== SECTION SUBTITLE ===== */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem !important;
    font-weight: 500;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: #475569;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    width: 100%;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

/* ===== MISSION & VISION ===== */
.mission-vision {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.mission-vision .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.mission-card,
.vision-card,
.values-card {
    background: white;
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mission-card:nth-child(1) { animation-delay: 0.1s; }
.mission-card:nth-child(2) { animation-delay: 0.2s; }
.mission-card:nth-child(3) { animation-delay: 0.3s; }

.mission-card::before,
.vision-card::before,
.values-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.3s ease;
}

.mission-card:hover::before,
.vision-card:hover::before,
.values-card:hover::before {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.mission-card h3,
.vision-card h3,
.values-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.mission-card p,
.vision-card p,
.values-card p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    line-height: 1.8;
}

.mission-card i,
.vision-card i,
.values-card i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    display: block;
}

/* ===== INFRASTRUCTURE ===== */
.infrastructure {
    padding: 100px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.infra-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    animation: fadeInUp 0.6s ease backwards;
}

.infra-card:nth-child(1) { animation-delay: 0.1s; }
.infra-card:nth-child(2) { animation-delay: 0.2s; }
.infra-card:nth-child(3) { animation-delay: 0.3s; }
.infra-card:nth-child(4) { animation-delay: 0.4s; }
.infra-card:nth-child(5) { animation-delay: 0.5s; }
.infra-card:nth-child(6) { animation-delay: 0.6s; }
.infra-card:nth-child(7) { animation-delay: 0.7s; }
.infra-card:nth-child(8) { animation-delay: 0.8s; }

.infra-card:hover {
    transform: translateY(-15px) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
    border-color: var(--secondary);
}

.infra-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    animation: float 3s ease-in-out infinite;
}

.infra-icon i {
    font-size: 2.2rem;
    color: white;
}

.infra-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.infra-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ===== GRADES SECTION ===== */
.grades-offered {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.grades-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.grade-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 6px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
    overflow: hidden;
}

.grade-primary { animation-delay: 0.1s; border-color: #6366f1; }
.grade-middle { animation-delay: 0.2s; border-color: #ec4899; }
.grade-secondary { animation-delay: 0.3s; border-color: #f59e0b; }
.grade-senior { animation-delay: 0.4s; border-color: #10b981; }

.grade-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.grade-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

.grade-section h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.grade-section p {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.grade-section ul {
    list-style: none;
    position: relative;
    z-index: 1;
}

.grade-section li {
    padding: 0.75rem 0;
    color: #475569;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.grade-section li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* ===== CURRICULUM ===== */
.curriculum {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.curriculum-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border-top: 6px solid;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
    overflow: hidden;
}

.curriculum-card:nth-child(1) { animation-delay: 0.1s; border-color: var(--primary); }
.curriculum-card:nth-child(2) { animation-delay: 0.2s; border-color: var(--secondary); }
.curriculum-card:nth-child(3) { animation-delay: 0.3s; border-color: var(--accent); }
.curriculum-card:nth-child(4) { animation-delay: 0.4s; border-color: var(--success); }
.curriculum-card:nth-child(5) { animation-delay: 0.5s; border-color: var(--primary); }
.curriculum-card:nth-child(6) { animation-delay: 0.6s; border-color: var(--secondary); }

.curriculum-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.curriculum-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.curriculum-card ul {
    list-style: none;
}

.curriculum-card li {
    padding: 0.75rem 0;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.curriculum-card li:last-child {
    border-bottom: none;
}

.curriculum-card li:before {
    content: "→";
    color: var(--secondary);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* ===== STREAMS ===== */
.streams {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.stream-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
    overflow: hidden;
}

.stream-card:nth-child(1) { animation-delay: 0.1s; }
.stream-card:nth-child(2) { animation-delay: 0.2s; }
.stream-card:nth-child(3) { animation-delay: 0.3s; }

.stream-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.stream-card:hover {
    transform: translateY(-15px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.stream-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    animation: float 3s ease-in-out infinite;
}

.stream-icon i {
    font-size: 2rem;
    color: white;
}

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

.stream-subjects {
    list-style: none;
    margin-top: 1.5rem;
}

.stream-subjects li {
    padding: 0.75rem 0;
    color: #475569;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.stream-subjects li:before {
    content: "•";
    color: var(--secondary);
    margin-right: 1rem;
    font-weight: bold;
    font-size: 1.3rem;
}

/* ===== EVENTS SECTION ===== */
.events-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    animation: fadeInUp 0.6s ease backwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }

.event-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.event-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-card:hover .event-image img {
    transform: scale(1.15) rotate(2deg);
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
    animation: bounce 2s infinite;
}

.event-content {
    padding: 2rem;
}

.event-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.event-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--primary);
    font-size: 0.9rem;
    color: #64748b;
}

.event-details span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.event-details i {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* ===== TEACHERS GRID ===== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.teacher-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
}

.teacher-card:nth-child(1) { animation-delay: 0.1s; }
.teacher-card:nth-child(2) { animation-delay: 0.2s; }
.teacher-card:nth-child(3) { animation-delay: 0.3s; }

.teacher-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.teacher-image {
    overflow: hidden;
    height: 350px;
    position: relative;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1) rotate(2deg);
}

.teacher-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.teacher-info {
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.teacher-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.designation {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.5rem !important;
    font-size: 1rem;
}

.qualification {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.3rem !important;
    font-weight: 600;
}

.experience {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
}

.bio {
    color: #475569;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    align-items: center;
}

.contact-form h2 {
    text-align: left;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.8rem;
    animation: fadeInUp 0.6s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.contact-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    width: 100%;
    animation: float 4s ease-in-out infinite;
}

/* ===== TRIP CARDS ICONS ===== */
.trip-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    animation: float 3s ease-in-out infinite;
}

.trip-card {
    text-align: center;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.6s ease backwards;
}

.trip-card:nth-child(1) { animation-delay: 0.1s; }
.trip-card:nth-child(2) { animation-delay: 0.2s; }
.trip-card:nth-child(3) { animation-delay: 0.3s; }
.trip-card:nth-child(4) { animation-delay: 0.4s; }
.trip-card:nth-child(5) { animation-delay: 0.5s; }
.trip-card:nth-child(6) { animation-delay: 0.6s; }

.trip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
    border-top-color: var(--secondary);
}

.trip-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.trip-grade {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1rem !important;
    font-size: 0.95rem;
}

/* ===== COMPETITION HEADER ===== */
.competition-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.competition-header i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.competition-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}

.competition-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(240, 249, 255, 0.9) 100%);
    border-radius: 15px;
    border-left: 5px solid var(--secondary);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.6s ease backwards;
    color: #475569;
}

.competition-list li:nth-child(1) { animation-delay: 0.1s; border-left-color: #6366f1; }
.competition-list li:nth-child(2) { animation-delay: 0.15s; border-left-color: #ec4899; }
.competition-list li:nth-child(3) { animation-delay: 0.2s; border-left-color: #f59e0b; }
.competition-list li:nth-child(4) { animation-delay: 0.25s; border-left-color: #10b981; }
.competition-list li:nth-child(5) { animation-delay: 0.3s; border-left-color: #06b6d4; }

.competition-list li:hover {
    transform: translateX(8px) translateY(-2px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.competition-list li i {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.competition-list li:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.competition-list li strong {
    color: var(--primary);
    font-weight: 700;
}

/* ===== GRADE ICONS ===== */
.grade-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
}

.grade-primary .grade-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.grade-middle .grade-icon {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.grade-secondary .grade-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.grade-senior .grade-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.grade-range {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1.5rem !important;
    font-size: 1rem;
}

.grade-section {
    position: relative;
    z-index: 1;
}

.grade-section:hover .grade-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: white;
    padding: 70px 20px 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-section a:hover::after {
    width: 100%;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.15) rotate(10deg);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        padding: 2rem 0;
        gap: 0;
        animation: slideDown 0.3s ease;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 2rem;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .features-grid,
    .highlights-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .stats .container {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero {
        padding: 80px 20px;
    }

    .stats .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .page-header {
        padding: 60px 20px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        gap: 2rem;
    }
}