/*-Modern, Expensive, and Cool Styles-*/

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #e6f0ff;
    color: #333;
    overflow-x: hidden;
}

header {
    background-color: transparent;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: #005fec;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

header.scrolled .logo {
    color: #fff;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

header.scrolled .nav-links a {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

header.scrolled .bar {
    background-color: #fff;
}

main {
    padding-top: 0;
}

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 600%; /* 6 slides */
    animation: slide 30s infinite cubic-bezier(0.5, 0, 0.5, 1);
}

.slide {
    width: 16.666%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 90%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin: 0;
}

.hero-text p {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 400;
}

.admission-wrapper {
    padding: 4rem 2rem;
    background-color: #fff;
}

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

.admission-section h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    color: #d9534f;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    animation: blink 1.5s infinite;
}

.admission-section p {
    font-size: 1.2rem;
    color: #555;
    margin: 0.5rem 0;
}


.toppers-section, .features-section, .latest-news-section, .about-section, .faculty-section, .gallery-section, .contact-section {
    padding: 5rem 2rem;
    text-align: center;
}

.toppers-section {
    background-color: #e6f0ff;
}

.toppers-section h2, .features-section h2, .latest-news-section h2, .about-section h1, .faculty-section h1, .gallery-section h2, .contact-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.toppers-grid, .faculty-grid, .gallery-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.topper, .faculty-member, .gallery-item-new {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topper:hover, .faculty-member:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item-new:hover {
    transform: scale(1.8);
    z-index: 10;
}

.topper img {
    width: 100%;
    aspect-ratio: 3.5 / 4.5;
    object-fit: cover;
    cursor: pointer;
}

.faculty-member img, .gallery-item-new img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor: pointer;
}

.topper p, .faculty-member h3 {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem;
    margin: 0;
}

.faculty-member p {
    font-size: 1rem;
    color: #555;
    padding: 0 1.5rem 1.5rem;
}

#load-more-faculty {
    background-color: #005fec;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 3rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#load-more-faculty:hover {
    background-color: #004ab6;
    transform: translateY(-3px);
}

.features-section {
    background-color: #fff;
}

.why-choose-us .reasons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.reason {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.reason img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.reason p {
    font-size: 1.3rem;
    font-weight: 600;
    color: #004aad;
    margin: 0.5rem 0;
}

.reason .features {
    font-size: 1rem;
    color: #666;
}

.latest-news-section {
    background-color: #e6f0ff;
}

.news-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    width: 100%;
    animation: scroll-up 20s linear infinite;
}

.news-list li {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    text-align: left;
}

.about-hero-section, .faculty-hero-section, .gallery-hero-section, .contact-hero-section {
    position: relative;
    height: 60vh;
    background-image: url('gallery/slide2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.faculty-hero-section {
    background-image: url('gallery/slide4.jpg');
}

.gallery-hero-section {
    background-image: url('gallery/slide1.jpg');
}

.contact-hero-section {
    background-image: url('gallery/slide5.jpg');
}

.about-hero-text, .faculty-hero-text, .gallery-hero-text, .contact-hero-text {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.about-hero-text h1, .faculty-hero-text h1, .gallery-hero-text h1, .contact-hero-text h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
}

.about-hero-text p, .faculty-hero-text p, .gallery-hero-text p, .contact-hero-text p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 1rem;
}

.about-content {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

.about-feature {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.about-feature i {
    font-size: 3rem;
    color: #005fec;
    margin-bottom: 1.5rem;
}

.about-feature h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-feature p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h2, .contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form button {
    background-color: #005fec;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #004ab6;
    transform: translateY(-3px);
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.contact-info .map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


footer {
    background-color: #001f3f;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin: 1rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid #444;
    padding-top: 2rem;
}

.fade-in-on-scroll {
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes slide { 0%, 15% { transform: translateX(0); } 16.66%, 31.66% { transform: translateX(-16.666%); } 33.33%, 48.33% { transform: translateX(-33.333%); } 50%, 65% { transform: translateX(-50%); } 66.66%, 81.66% { transform: translateX(-66.666%); } 83.33%, 98.33% { transform: translateX(-83.333%); } 100% { translateX(0); } }
@keyframes scroll-up { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes blink { 50% { opacity: 0; } }

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: #005fec;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .nav-links a {
        color: #fff;
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .about-content, .faculty-grid, .gallery-grid-new {
        flex-direction: column;
        align-items: center;
    }
}
