:root {
    --primary: #1a3e72;
    --secondary: #d4af37;
    --accent: #e63946;
    --light: #f8f9fa;
    --dark: #212529;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

/* Updated Header Styles */
header {
    background: linear-gradient(135deg, rgba(26, 62, 114, 0.9) 0%, rgba(10, 35, 75, 0.95) 100%);
    color: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo img {
    height: 50px;
    transition: var(--transition);
    border-radius: 5px;
}

.logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text h1 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enhanced Navigation Styles */
nav {
    display: flex;
    align-items: center;
}

#nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

#nav-menu li {
    position: relative;
}

#nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
    display: block;
    position: relative;
}

#nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -5px;
    left: 12px;
    transition: var(--transition);
}

#nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

#nav-menu a:hover::after {
    width: calc(100% - 24px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    margin-left: 10px;
}

.mobile-menu-btn:hover {
    color: var(--secondary);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    #nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        gap: 15px;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    #nav-menu.active {
        left: 0;
    }

    #nav-menu li {
        width: 90%;
        text-align: center;
    }

    #nav-menu a {
        padding: 12px 20px;
        font-size: 1.1rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
    }

    #nav-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    #nav-menu a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        display: none;
    }

    #nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }

    #nav-menu a {
        font-size: 1rem;
    }
}
/* Dropdown Menu Styles */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    min-width: 200px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
    border-radius: 5px;
    margin-top: 5px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 8px 20px;
    display: block;
    white-space: nowrap;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        background: rgba(0, 0, 0, 0.1);
        margin-top: 0;
    }
    
    .has-dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
    }
    
    .dropdown-menu a {
        padding-left: 40px;
    }
    
    /* Add dropdown toggle indicator */
    .has-dropdown > a::after {
        content: '+';
        margin-left: 5px;
        display: inline-block;
        transition: transform 0.3s ease;
    }
    
    .has-dropdown.active > a::after {
        content: '-';
    }
}

/* Rest of your existing CSS remains unchanged */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    background: url('../pr-2/assets/college-img.png') center/cover no-repeat;
}

/* ... (all your existing CSS below remains exactly the same) ... */

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    background: url('./assets/college-img.png') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    background: linear-gradient(to bottom, 
        rgba(26, 62, 114, 0.9) 0%,
        rgba(26, 62, 114, 0.8) 50%,
        rgba(26, 62, 114, 0.4) 75%,
        rgba(26, 62, 114, 0) 100%
    );
    padding: 3rem;
    border-radius: 8px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 90%;
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><path fill="rgba(255,255,255,0.05)" d="M0 0h100v100H0zM50 50v50h50V50zM0 0v50h50V0z"/></svg>');
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary);
    text-align: center;
}

.btn:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 1;
}

/* About Section */
.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--secondary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.about-text.animated {
    opacity: 1;
    transform: translateX(0);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.about-image.animated {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary);
    border-radius: 10px;
    top: -20px;
    left: -20px;
    z-index: -1;
}

/* Academics Section */
.academics {
    background: #f5f7fa;
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.academic-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
}

.academic-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.academic-card:nth-child(1) { transition-delay: 0.2s; }
.academic-card:nth-child(2) { transition-delay: 0.4s; }
.academic-card:nth-child(3) { transition-delay: 0.6s; }

.academic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.academic-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.academic-card:hover img {
    transform: scale(1.05);
}

.academic-content {
    padding: 25px;
}

.academic-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.academic-content p {
    margin-bottom: 20px;
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.facility-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.9);
}

.facility-card.animated {
    opacity: 1;
    transform: scale(1);
}

.facility-card:nth-child(1) { transition-delay: 0.1s; }
.facility-card:nth-child(2) { transition-delay: 0.2s; }
.facility-card:nth-child(3) { transition-delay: 0.3s; }
.facility-card:nth-child(4) { transition-delay: 0.4s; }

.facility-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.facility-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.facility-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery {
    background: #f5f7fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    cursor: pointer;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.gallery-item.animated {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 62, 114, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Content Container */
.content-container {
    max-width: 1000px;
    margin: 40px auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-container h2 {
    color: #1a3a8f;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a3a8f;
    font-size: 1.8rem;
}

.content-container p {
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: 50px auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    animation: zoom 0.3s;
    background: white;
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.gallery-title {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.gallery-img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 101;
}

.close:hover {
    color: var(--secondary);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.contact-info.animated {
    opacity: 1;
    transform: translateX(0);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-form {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.contact-form.animated {
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 62, 114, 0.2);
    background-color: white;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 70px 5% 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    padding: 0 15px;
}

.footer-col h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    bottom: -10px;
    left: 0;
}

.footer-col p {
    margin-bottom: 15px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .about-text h3, .contact-info h3 {
        font-size: 1.6rem;
    }
    
    .content-container {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-image, .about-text, .contact-info, .contact-form {
        width: 100%;
    }
    
    .about-image::before {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .academics-grid, .facilities-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .content-container {
        margin: 30px auto;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        z-index: 999;
    }
    
    nav ul.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 80px 5%;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .content-container h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .content-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .content-container h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .academics-grid, .facilities-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .content-container {
        padding: 15px;
    }
    
    .logo img {
        height: 50px;
    }
    
    header.scrolled .logo img {
        height: 40px;
    }
}
