        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background:transparent ;
            overflow-x: hidden;
        }

        /* Header */
        header {
            background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
            color: white;
            padding: 20px 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            position: sticky;
            top: 0;
            z-index: 1000;
            animation: slideDown 0.5s ease;
            border-bottom: 3px solid #ffd166;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        nav {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 40px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            animation: logoEntrance 1s ease;
            transition: transform 0.3s;
        }

        .logo:hover {
            transform: scale(1.05);
        }
 /* Faculty Highlights Section */
        .faculty-highlights {
            max-width: 1400px;
            margin: 80px auto;
            padding: 60px 20px;
            background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }
        /* ===== PERFECT RESPONSIVE DESIGN ===== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile First - Perfect Mobile Design */
@media (max-width: 480px) {
    
    /* Base Body */
    body {
        font-size: 14px;
        line-height: 1.6;
        overflow-x: hidden;
    }
    
    /* ===== HEADER & NAVIGATION ===== */
    header {
        padding: 10px 0;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
    }
    
    nav {
        padding: 0 15px;
        flex-wrap: wrap;
        min-height: 60px;
    }
    
    .logo {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .logo-img {
        height: 45px;
        width: 45px;
        border-radius: 8px;
    }
    
    .logo-text h1 {
        font-size: 16px;
        line-height: 1.2;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-text h3 {
        font-size: 10px;
        line-height: 1.1;
        margin: 2px 0 0 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Hide desktop navigation */
    nav > ul {
        display: none !important;
    }
    
    /* Mobile menu icon */
    .mobile-menu-icon {
        display: flex !important;
        order: 2;
        margin-left: 10px;
    }
    
    /* Navigation buttons */
    .nav-buttons {
        order: 3;
        width: 100%;
        margin-top: 8px;
        gap: 8px;
        justify-content: center;
    }
    
    .register-btn {
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 6px;
        flex: 1;
        text-align: center;
        max-width: 140px;
        line-height: 1.2;
    }
    
    /* Mobile Navigation */
    .mobile-nav {
        top: 80px;
        padding: 20px 15px;
        background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }
    
    .mobile-nav.active {
        max-height: 400px;
    }
    
    .mobile-nav ul li a {
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    /* ===== HERO SECTION ===== */
    .hero {
        padding: 100px 15px 40px;
        min-height: 100vh;
        margin-top: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
        padding: 0;
    }
    
    .hero-text {
        text-align: center;
        order: 1;
    }
    
    .hero-text h1 {
        font-size: 28zpx;
        line-height: 1.3;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .hero-text p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
        padding: 0 10px;
        max-width: 100%;
    }
    
    .hero-text p strong {
        font-size: 17px;
        display: block;
        margin: 8px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 15px;
        border-radius: 8px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        font-weight: 700;
    }
    
    .hero-form {
        order: 2;
        padding: 25px;
        border-radius: 12px;
        max-width: 100%;
        margin: 0;
    }
    
    .hero-form input,
    .hero-form select {
        padding: 12px;
        font-size: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .hero-form button {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 8px;
        font-weight: 600;
        width: 100%;
    }
    
    /* ===== FEATURES SECTION ===== */
    .features {
        flex-direction: column;
        margin: 30px auto 40px;
        padding: 0 15px;
        gap: 20px;
        max-width: 100%;
    }
    
    .feature-card {
        padding: 25px 20px;
        border-radius: 12px;
        text-align: center;
    }
    
    .feature-card h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .feature-card h3 {
        font-size: 15px;
        margin: 0;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .video-icon {
        margin-bottom: 15px;
    }
    
    /* ===== SUBJECTS SECTION ===== */
    .subjects {
        margin: 50px auto;
        padding: 0 15px;
    }
    
    .subjects h2 {
        font-size: 28px;
        margin-bottom: 40px;
        text-align: center;
        padding: 0 10px;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subject-card {
        padding: 30px 25px;
        border-radius: 15px;
        text-align: center;
        position: relative;
    }
    
    .subject-card h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .subject-card p {
        font-size: 15px;
        color: #666;
    }
    
    .subject-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
        margin: 0 auto 20px;
        border-radius: 50%;
    }
    
    /* ===== VIDEO SECTION ===== */
    .video-section {
        margin: 50px auto;
        padding: 0 15px;
    }
    
    .video-section h2 {
        font-size: 24px;
        margin-bottom: 25px;
        text-align: center;
        padding: 0 10px;
    }
    
    .video-container {
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    /* ===== FACULTY HIGHLIGHTS ===== */
    .faculty-highlights {
        margin: 50px auto;
        padding: 40px 15px;
        border-radius: 15px;
    }
    
    .faculty-highlights h2 {
        font-size: 26px;
        margin-bottom: 35px;
        text-align: center;
    }
    
    .faculty-slider-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .faculty-slider {
        display: flex;
        gap: 20px;
        padding-bottom: 10px;
        animation: none; /* Stop auto-scroll on mobile */
    }
    
    .faculty-item {
        min-width: 300px;
        height: 380px;
        border-radius: 15px;
        flex-shrink: 0;
    }
    
    .faculty-overlay {
        padding: 25px;
    }
    
    .faculty-overlay h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .faculty-overlay p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* ===== TESTIMONIALS ===== */
    .testimonials {
        margin: 50px auto;
        padding: 40px 15px;
        border-radius: 15px;
    }
    
    .testimonials h2 {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .testimonials-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonials-track {
        display: flex;
        gap: 20px;
        padding-bottom: 10px;
        animation: none; /* Stop auto-scroll on mobile */
    }
    
    .testimonial-card {
        min-width: 300px;
        padding: 25px;
        border-radius: 12px;
        flex-shrink: 0;
    }
    
    .testimonial-header {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .testimonial-img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .testimonial-placeholder {
        font-size: 24px;
    }
    
    .testimonial-info h4 {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .testimonial-info p {
        font-size: 13px;
    }
    
    .testimonial-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* ===== STUDENTS GALLERY ===== */
    .students-gallery {
        margin: 50px auto;
        padding: 40px 15px;
        border-radius: 15px;
    }
    
    .students-gallery h2 {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .gallery-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .gallery-track {
        display: flex;
        gap: 15px;
        padding-bottom: 10px;
        animation: none; /* Stop auto-scroll on mobile */
    }
    
    .gallery-item {
        min-width: 250px;
        height: 320px;
        border-radius: 12px;
        flex-shrink: 0;
    }
    
    /* ===== WHY SECTION ===== */
    .why-section {
        margin: 50px auto;
        padding: 40px 15px;
        border-radius: 15px;
    }
    
    .why-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
        text-align: center;
        padding: 0 10px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .why-card {
        padding: 30px 25px;
        border-radius: 12px;
        text-align: center;
    }
    
    .why-card h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .why-card p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .why-icon {
        width: 90px;
        height: 90px;
        font-size: 45px;
        margin: 0 auto 25px;
    }
    
    /* ===== TEACHERS SECTION ===== */
    .teachers {
        margin: 50px auto;
        padding: 0 15px;
    }
    
    .teachers h2 {
        font-size: 28px;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .teacher-card {
        padding: 30px 25px;
        border-radius: 12px;
        text-align: center;
    }
    
    .teacher-img {
        width: 110px;
        height: 110px;
        margin: 0 auto 20px;
    }
    
    .teacher-card h3,
    .teacher-card h4 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .teacher-card p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* ===== FAQ SECTION ===== */
    .faq-section {
        margin: 50px auto;
        padding: 40px 15px;
        border-radius: 15px;
    }
    
    .faq-section h2 {
        font-size: 28px;
        margin-bottom: 35px;
        text-align: center;
    }
    
    .faq-container {
        max-width: 100%;
    }
    
    .faq-item {
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .faq-question {
        padding: 18px 20px;
        cursor: pointer;
    }
    
    .faq-question h3 {
        font-size: 16px;
        line-height: 1.4;
        margin: 0;
    }
    
    .faq-icon {
        font-size: 20px;
        margin-left: 10px;
    }
    
    .faq-answer p {
        padding: 20px;
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* ===== FOOTER ===== */
    footer {
        padding: 50px 15px 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 100%;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-logo {
        justify-content: center;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .footer-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .footer-logo-text h3 {
        font-size: 20px;
        margin: 0;
        padding: 0;
    }
    
    .footer-logo-text h3::after {
        display: none;
    }
    
    .footer-logo-text p {
        font-size: 12px;
        margin: 4px 0 0 0;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .social-links {
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 25px;
        margin-top: 25px;
    }
    
    .footer-bottom p,
    .footer-bottom h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    /* Smooth scrolling on mobile */
    .faculty-slider-wrapper,
    .testimonials-slider,
    .gallery-slider {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .faculty-slider-wrapper::-webkit-scrollbar,
    .testimonials-slider::-webkit-scrollbar,
    .gallery-slider::-webkit-scrollbar {
        display: none;
    }
}

/* ===== TABLET PORTRAIT ===== */
@media (min-width: 481px) and (max-width: 768px) {
    
    body {
        font-size: 15px;
    }
    
    nav {
        padding: 0 20px;
    }
    
    .logo-img {
        height: 55px;
        width: 55px;
    }
    
    .logo-text h1 {
        font-size: 40px;
    }
    
    .logo-text h2 {
        font-size: 30px;
    }
    
    .hero {
        padding: 120px 20px 50px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 38px;
    }
    
    .hero-text p {
        font-size: 17px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        min-width: 160px;
    }
    
    .features {
        flex-direction: row;
        gap: 25px;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .faculty-item {
        min-width: 320px;
    }
    
    .testimonial-card {
        min-width: 320px;
    }
    
    .gallery-item {
        min-width: 280px;
    }
}

/* ===== TABLET LANDSCAPE & SMALL DESKTOP ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    
    /* Show desktop navigation */
    nav > ul {
        display: flex !important;
    }
    
    .mobile-menu-icon {
        display: none !important;
    }
    
    .nav-buttons {
        order: initial;
        width: auto;
        margin-top: 0;
    }
    
    .register-btn {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .hero-text h1 {
        font-size: 44px;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .teachers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1025px) {
    
    .subjects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .teachers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    }
    
    /* Re-enable animations on desktop */
    .faculty-slider {
        animation: facultySlide 40s linear infinite;
    }
    
    .testimonials-track {
        animation: slideTestimonials 25s linear infinite;
    }
    
    .gallery-track {
        animation: slideGallery 25s linear infinite;
    }
}

/* ===== EXTRA MOBILE IMPROVEMENTS ===== */
@media (max-width: 480px) {
    
    /* Better touch experience */
    button, .btn, .faq-question, .subject-card, .feature-card {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Better spacing */
    section {
        scroll-margin-top: 80px;
    }
    
    /* Improved animations */
    .hero-content > * {
        animation-duration: 0.8s;
    }
    
    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Safe area for newer phones */
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ===== LANDSCAPE MODE FOR MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    
    .hero {
        min-height: 100vh;
        padding: 80px 15px 30px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        min-width: 140px;
    }
}


        .faculty-highlights::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(255, 209, 102, 0.15) 0%, transparent 70%);
            animation: rotateBackground 15s linear infinite;
        }

        .faculty-highlights h2 {
            font-size: 38px;
            text-align: center;
            margin-bottom: 60px;
            color: #1e3a5f;
            font-weight: 800;
            position: relative;
            z-index: 1;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .faculty-highlights h2::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 150px;
            height: 5px;
            background: linear-gradient(90deg, #ffd166, #1e3a5f, #ffd166);
            border-radius: 3px;
        }

        .faculty-slider-wrapper {
            position: relative;
            overflow: hidden;
            padding: 20px 0;
        }

        .faculty-slider {
            display: flex;
            gap: 30px;
            animation: facultySlide 40s linear infinite;
        }

        @keyframes facultySlide {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        .faculty-slider:hover {
            animation-play-state: paused;
        }

        .faculty-item {
            min-width: 350px;
            height: 450px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            position: relative;
            transition: all 0.4s ease;
            cursor: pointer;
        }

        .faculty-item:hover {
            transform: translateY(-15px) scale(1.05);
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        }

        .faculty-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .faculty-item:hover img {
            transform: scale(1.1);
        }

        .faculty-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 30px;
            background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
            color: white;
            transform: translateY(100%);
            transition: transform 0.4s ease;
        }

        .faculty-item:hover .faculty-overlay {
            transform: translateY(0);
        }

        .faculty-overlay h3 {
            font-size: 22px;
            margin-bottom: 10px;
            color: #ffd166;
        }

        .faculty-overlay p {
            font-size: 14px;
            line-height: 1.6;
        }

        .faculty-badge {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #ffd166;
            color: #1e3a5f;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            z-index: 2;
        }
        @keyframes logoEntrance {
            0% {
                transform: scale(0) rotate(-180deg);
                opacity: 0;
            }
            50% {
                transform: scale(1.2) rotate(0deg);
            }
            100% {
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
        }

        .logo:hover .logo-icon {
            animation: logoBounce 0.6s ease;
        }

        @keyframes logoBounce {
            0%, 100% { transform: translateY(0); }
            25% { transform: translateY(-10px); }
            50% { transform: translateY(0); }
            75% { transform: translateY(-5px); }
        }

        .logo-icon {
            width: 60px;
            height: 60px;
            transition: all 0.3s;
        }

      .logo-img{height:70px;width:auto;display:block  border:radius 9px;  object-fit: cover;}

       .logo-text h1{font-size:28px}

        .logo-text p {
            font-size: 12px;
            opacity: 0.95;
            font-weight: 500;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 5px;
            animation: navItemsSlide 1s ease;
        }

        @keyframes navItemsSlide {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        nav ul li {
            animation: navItemPop 0.5s ease forwards;
            opacity: 0;
        }

        nav ul li:nth-child(1) { animation-delay: 0.1s; }
        nav ul li:nth-child(2) { animation-delay: 0.2s; }
        nav ul li:nth-child(3) { animation-delay: 0.3s; }
        nav ul li:nth-child(4) { animation-delay: 0.4s; }
        nav ul li:nth-child(5) { animation-delay: 0.5s; }
        nav ul li:nth-child(6) { animation-delay: 0.6s; }
        nav ul li:nth-child(7) { animation-delay: 0.7s; }
        nav ul li:nth-child(8) { animation-delay: 0.8s; }

        @keyframes navItemPop {
            0% {
                transform: scale(0);
                opacity: 0;
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 12px 20px;
            border-radius: 8px;
            position: relative;
            overflow: hidden;
        }

        nav ul li a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.3), transparent);
            transition: left 0.5s;
        }

        nav ul li a:hover::before {
            left: 100%;
        }

        nav ul li a:hover {
            background: rgba(255, 209, 102, 0.2);
            color: #ffd166;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 209, 102, 0.3);
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background: #ffd166;
            transition: width 0.3s;
            border-radius: 2px;
        }

        nav ul li a:hover::after {
            width: 80%;
        }

        /* Mobile Menu */
        .mobile-menu-icon {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 10px;
        }

        .mobile-menu-icon span {
            width: 25px;
            height: 3px;
            background: white;
            border-radius: 2px;
            transition: all 0.3s;
        }

        .mobile-menu-icon.active span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        .mobile-menu-icon.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-icon.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        .mobile-nav {
            display: none;
            position: fixed;
            top: 80px;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
            padding: 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
            z-index: 999;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .mobile-nav.active {
            display: block;
            max-height: 500px;
        }

        .mobile-nav ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mobile-nav ul li a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 15px;
            border-radius: 8px;
            background: rgba(255, 209, 102, 0.1);
            transition: all 0.3s;
            font-size: 15px;
        }

        .mobile-nav ul li a:hover {
            background: #ffd166;
            color: #1e3a5f;
            transform: translateX(10px);
        }

        .nav-buttons {
            display: flex;
            gap: 10px;
            animation: slideInRight 0.8s ease;
        }

        .register-btn {
            background: #ffd166;
            color: #1e3a5f;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            font-size: 13px;
            transition: transform 0.3s, box-shadow 0.3s;
            white-space: nowrap;
            animation: buttonPulse 2s ease-in-out infinite;
            position: relative;
            overflow: hidden;
        }

        @keyframes buttonPulse {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7);
            }
            50% {
                box-shadow: 0 0 0 15px rgba(255, 209, 102, 0);
            }
        }

        .register-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .register-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .register-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 209, 102, 0.4);
        }

        .register-btn.teacher-btn {
            background: white;
            color: #1e3a5f;
        }


        }
/* ============================================
   ENHANCED RESPONSIVE DESIGN - ADD THESE STYLES
   ============================================ */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Header & Navigation */
    header {
        padding: 10px 0;
    }
    
    nav {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 14px;
    }
    
    .logo-text h3 {
        font-size: 8px;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu-icon {
        display: flex;
    }
    
    nav ul {
        display: none;
    }
    
    
    /* Footer */
    footer {
        padding: 40px 15px 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 13px;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .footer-logo-text h3 {
        font-size: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 12px;
    }
}

/* Medium Mobile Devices (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    /* Header */
    .logo-img {
        height: 55px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text h3 {
        font-size: 10px;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-icon {
        display: flex;
    }

    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Header */
    nav {
        padding: 0 25px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .logo-text h1 {
        font-size: 22px;
    }
    
    .logo-text h3 {
        font-size: 11px;
    }
    
    nav ul {
        gap: 3px;
    }
    
    nav ul li a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .register-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    

    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Laptops (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    nav {
        padding: 0 30px;
    }
    
    nav ul li a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    }
}

/* Extra Large Screens (1440px and up) */
@media (min-width: 1440px) {
    nav {
        max-width: 1500px;
    }
    
    .hero-content,
    .subjects,
    .faculty-highlights,
    .testimonials,
    .students-gallery,
    .why-section,
    .teachers,
    .faq-section,
    .footer-content {
        max-width: 1400px;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Print Styles */
@media print {
    header,
    .mobile-nav,
    .hero-video,
    .hero-form,
    .nav-buttons,
    footer {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Hover Effects - Disable on Touch Devices */

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    }

        @keyframes floatRealistic3 {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
                opacity: 0.3;
            }
            50% {
                transform: translateY(-45px) rotate(10deg);
                opacity: 0.5;
            }
        }

        @keyframes floatRealistic4 {
            0%, 100% {
                transform: translateX(0) translateY(0);
                opacity: 0.3;
            }
            50% {
                transform: translateX(30px) translateY(-40px);
                opacity: 0.5;
            }
        }

        @keyframes spinFloat {
            0%, 100% {
                transform: rotate(0deg) translateY(0);
                opacity: 0.3;
            }
            50% {
                transform: rotate(180deg) translateY(-50px);
                opacity: 0.5;
            }
        }

        @keyframes rotate3D {
            0%, 100% {
                transform: rotateY(0deg) translateY(0);
                opacity: 0.3;
            }
            50% {
                transform: rotateY(360deg) translateY(-40px);
                opacity: 0.5;
            }
        }

        @keyframes bounce {
            0%, 100% {
                transform: translateY(0);
                opacity: 0.3;
            }
            25% {
                transform: translateY(-50px);
                opacity: 0.5;
            }
            50% {
                transform: translateY(-70px);
                opacity: 0.6;
            }
            75% {
                transform: translateY(-40px);
                opacity: 0.5;
            }
        }

        /* Floating Study Elements */
        .floating-elements {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .floating-item {
            position: absolute;
            font-size: 40px;
            opacity: 0.1;
            animation: float 20s infinite;
        }

        .floating-item:nth-child(1) {
            left: 10%;
            top: 20%;
            animation-delay: 0s;
        }

        .floating-item:nth-child(2) {
            left: 80%;
            top: 30%;
            animation-delay: 2s;
        }

        .floating-item:nth-child(3) {
            left: 20%;
            top: 70%;
            animation-delay: 4s;
        }

        .floating-item:nth-child(4) {
            left: 70%;
            top: 60%;
            animation-delay: 6s;
        }

        .floating-item:nth-child(5) {
            left: 50%;
            top: 10%;
            animation-delay: 8s;
        }

        .floating-item:nth-child(6) {
            left: 30%;
            top: 40%;
            animation-delay: 10s;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
                opacity: 0.1;
            }
            25% {
                transform: translateY(-30px) rotate(5deg);
                opacity: 0.2;
            }
            50% {
                transform: translateY(-60px) rotate(-5deg);
                opacity: 0.15;
            }
            75% {
                transform: translateY(-30px) rotate(5deg);
                opacity: 0.2;
            }
        }