* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

h1, h2, h3, .hero-title, .section-title {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(to right, #1e3a8a, #312e81);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    overflow: hidden;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 20px;
    margin: 0;
}

.logo-text p {
    font-size: 12px;
    color: #86efac;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #86efac;
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(to right, #1e3a8a, #312e81, #581c87);
    color: white;
    padding: 80px 0;
    overflow: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.text-green {
    color: #86efac;
}

.text-yellow {
    color: #fde047;
}

.hero-subtitle {
    font-size: 22px;
    color: #86efac;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Grade Info Section */
.grade-info-section {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.grade-info-badge {
    background: linear-gradient(135deg, #9351ce, #0f1157);
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    flex: 1;
    min-width: 200px;
    transition: all 0.3s;
}

.grade-info-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
}

.grade-icon {
    font-size: 40px;
}

.grade-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grade-text {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.hero-info-box {
    background: rgba(30, 58, 138, 0.7);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.info-text {
    font-size: 18px;
    margin-bottom: 16px;
}

.info-highlight {
    font-size: 20px;
    font-weight: 600;
    color: #86efac;
}

.cta-button {
    display: inline-block;
    background: #d02222;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(170, 197, 34, 0.3);
}

.cta-button:hover {
    background: #16a34a;
    transform: scale(1.05);
}

.teacher-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.teacher-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #8f4ec1;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: unset;
}

.teacher-name {
    color: #1e3a8a;
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.teacher-title {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.teacher-exp {
    color: #22c55e;
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-style: italic;
    text-align: center;
    font-size: 50px;
    color: #7e6ff8;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: #1e3a8a;
    font-size: 18px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(to right, #e0e7ff, #f3e8ff);
}

.about-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.about-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.award-icon {
    font-size: 48px;
}

.about-header h2 {
    font-size: 40px;
    color: #1e3a8a;
}

.about-text {
    font-size: 20px;
    color: #4b5563;
    margin-bottom: 32px;
    line-height: 1.8;
}

.schools-box {
    background: #e0e7ff;
    padding: 32px;
    border-radius: 12px;
}

.schools-box h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 24px;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.school-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    color: #22c55e;
    font-size: 24px;
    font-weight: bold;
}

.school-item span:last-child {
    font-size: 18px;
    color: #4b5563;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: linear-gradient(to bottom, #2b0152, #a343dc);
}

.gallery-subtitle {
    font-style: bold;
    text-align: center;
    font-size: 18px;
    color: #c6c200;
    margin-bottom: 48px;
    margin-top: -20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.4s;
}

.gallery-frame {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px #0f1157;
    transition: all 0.4s ease;
    border: 8px solid #bcbef2;
    background: #e0e7ff;
}

.gallery-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #1e3a8a, #7c3aed, #22c55e);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-frame:hover::before {
    opacity: 1;
}

.gallery-frame:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.gallery-frame img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-frame:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3), transparent);
    padding: 32px 24px 24px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-frame:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-text h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.gallery-text p {
    color: #86efac;
    font-size: 16px;
    margin: 0;
}

/* Admission Alert */
.admission-alert {
    background: linear-gradient(to right, #ef4444, #dc2626);
    color: white;
    padding: 48px 0;
    text-align: center;
}

.admission-alert h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.admission-alert p {
    font-size: 20px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-icon {
    font-size: 32px;
}

.contact-label {
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

.contact-detail {
    font-size: 20px;
    color: #1e3a8a;
    font-weight: 600;
}

.contact-address {
    color: #6b7280;
    line-height: 1.6;
}

/* WhatsApp Contact Card */
.whatsapp-contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-card {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    padding: 48px 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.2);
    width: 100%;
    transition: all 0.3s;
}

.whatsapp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon-large {
    font-size: 80px;
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

.whatsapp-card h3 {
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-card > p {
    color: #4b5563;
    font-size: 18px;
    margin-bottom: 32px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25d366;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover {
    background: #20ba5a;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn-icon {
    font-size: 24px;
}

.whatsapp-subtext {
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #1e3a8a, #312e81);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.footer-text {
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-tagline {
    color: #86efac;
    font-size: 16px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 34px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float::before {
    content: "Chat with us!";
    position: absolute;
    right: 70px;
    background: #1e3a8a;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.whatsapp-float:hover::before {
    opacity: 1;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
.hero-title {
    animation: slideInLeft 0.8s ease-out;
}

.hero-subtitle {
    animation: slideInLeft 1s ease-out 0.2s backwards;
}

.grade-info-badge:nth-child(1) {
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

.grade-info-badge:nth-child(2) {
    animation: fadeIn 0.8s ease-out 0.5s backwards;
}

.hero-info-box {
    animation: fadeIn 0.8s ease-out 0.7s backwards;
}

.teacher-card {
    animation: scaleIn 0.8s ease-out 0.5s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

html {
    scroll-behavior: smooth;
}

.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #86efac;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e3a8a;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: flex;
    }

    .hero {
        padding: 40px 0 500px 0;
        overflow: visible;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        display: block;
    }

    .hero-text {
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .grade-info-section {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .grade-info-badge {
        min-width: 100%;
        padding: 16px 20px;
    }

    .grade-icon {
        font-size: 28px;
    }

    .grade-label {
        font-size: 12px;
    }

    .grade-text {
        font-size: 16px;
    }

    .hero-info-box {
        padding: 16px;
        margin-bottom: 20px;
    }

    .info-text {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .info-highlight {
        font-size: 15px;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 15px;
        display: block;
        text-align: center;
        width: 100%;
        margin-bottom: 30px;
    }

    .hero-card {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .teacher-card {
        padding: 24px 20px;
        margin: 0;
        background: white;
    }

    .teacher-image {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
        border-width: 4px;
    }

    .teacher-name {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .teacher-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .teacher-exp {
        font-size: 14px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .features {
        padding: 50px 0;
        margin-top: 0;
        background: white;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .about {
        padding: 50px 0;
    }

    .about-card {
        padding: 24px;
    }

    .about-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .award-icon {
        font-size: 36px;
    }

    .about-header h2 {
        font-size: 24px;
    }

    .about-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .schools-box {
        padding: 20px;
    }

    .schools-box h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .schools-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .check-icon {
        font-size: 20px;
    }

    .school-item span:last-child {
        font-size: 14px;
    }

    /* Gallery Mobile Styles */
    .gallery {
        padding: 50px 0;
    }

    .gallery-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-frame {
        border: 5px solid white;
    }

    .gallery-frame img {
        height: 250px;
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
        padding: 24px 20px 20px;
    }

    .gallery-text h3 {
        font-size: 20px;
    }

    .gallery-text p {
        font-size: 14px;
    }

    .admission-alert {
        padding: 30px 0;
    }

    .admission-alert h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .admission-alert p {
        font-size: 15px;
    }

    .contact {
        padding: 50px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info {
        padding: 24px;
    }

    .contact-info h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .contact-icon {
        font-size: 28px;
    }

    .contact-detail {
        font-size: 18px;
    }

    .contact-item {
        margin-bottom: 24px;
    }

    .whatsapp-card {
        padding: 32px 24px;
    }

    .whatsapp-icon-large {
        font-size: 64px;
    }

    .whatsapp-card h3 {
        font-size: 22px;
    }

    .whatsapp-card > p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .whatsapp-button {
        padding: 14px 32px;
        font-size: 18px;
        width: 100%;
        justify-content: center;
    }

    .footer {
        padding: 24px 0;
    }

    .footer-text {
        font-size: 14px;
    }

    .footer-tagline {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: 24px;
    }

    .teacher-name {
        font-size: 20px;
    }

    .section-title {
        font-size: 22px;
    }

    .teacher-image {
        width: 120px;
        height: 120px;
    }

    .gallery-frame img {
        height: 220px;
    }

    .gallery-text h3 {
        font-size: 18px;
    }

    .whatsapp-card h3 {
        font-size: 20px;
    }

    .whatsapp-button {
        font-size: 16px;
        padding: 12px 24px;
    }
}
