:root {
    --maroon: #800020;
    --gold: #D4AF37;
    --dark: #1a1a1a;
    --white: #ffffff;
    --grey: #f4f4f4;
}

html { scroll-behavior: smooth; } /* This enables smooth scrolling */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; }
body { scroll-behavior: smooth; }

/* Navigation */
nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 5%; background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.brand-container { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 60px; }
.college-name { font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }
.maroon-text { color: var(--maroon); }
.gold-text { color: var(--gold); }
.nav-links { display: flex; list-style: none; }
.nav-links a { text-decoration: none; color: var(--maroon); margin-left: 20px; font-weight: bold; transition: 0.3s; }
.nav-links a:hover { color: var(--gold); }
.logo img { height: 50px; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--maroon); font-weight: bold; }
.burger { display: none; font-size: 1.5rem; color: var(--maroon); cursor: pointer; }

/* Hero */
.hero {
    position: relative;
    height: 100vh; /* Full screen height */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Background Container */
.image-scroller {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Keeps images behind everything */
}

/* The Track that moves */
.scrolling-track {
    display: flex;
    width: calc(100vw * 8); /* Width of all 8 images (4 + 4 clones) */
    height: 100%;
    animation: scrollBackground 30s linear infinite;
}

.scrolling-track img {
    width: 100vw; /* Each image takes full width of screen */
    height: 100vh;
    object-fit: cover; /* Ensures images fill the screen without stretching */
}

/* Dark Overlay to make text readable */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Adjust darkness (0.1 to 0.9) */
    z-index: -1;
}

/* Animation Logic */
@keyframes scrollBackground {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move left by the width of the first 4 images */
        transform: translateX(calc(-100vw * 4));
    }
}

.hero-text {
    text-align: center;
    z-index: 1;
}

/* Info Boxes (Home Tab) */
.home-info-boxes { padding: 40px 5%; background: var(--bg-light); margin-top: -50px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.info-box { background: #fff; padding: 30px; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-bottom: 5px solid var(--gold); transition: 0.3s; }
.info-box:hover { transform: translateY(-10px); border-bottom: 5px solid var(--maroon); }
.info-box i { font-size: 2.5rem; color: var(--maroon); margin-bottom: 15px; }

/* About & Director Card Styles */
.about-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-right: 10px solid var(--gold);
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.director-image {
    flex: 1;
}

.director-image img {
    width: 100%;
    border-radius: 10px;
    border: 5px solid var(--maroon);
    box-shadow: 10px 10px 0px var(--gold);
}

.director-info {
    flex: 1.5;
}

.director-info h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: left;
}

.about-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    border-left: 4px solid var(--maroon);
    padding-left: 15px;
    margin-bottom: 20px;
}

.director-signature {
    margin-top: 30px;
}

.director-signature p {
    font-size: 1.2rem;
    color: var(--maroon);
    margin-bottom: 0;
}

.director-signature span {
    color: var(--gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .about-card {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .director-info h2 {
        text-align: center;
    }
    .about-text {
        text-align: left;
    }
}
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/Backround.jpg');
    background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center;
    text-align: center; color: white;
}
.hero h1 { font-size: 3.5rem; color: var(--gold); }
.cta-btn { 
    margin-top: 20px; display: inline-block; padding: 12px 30px;
    background: var(--gold); color: var(--maroon); text-decoration: none;
    border-radius: 5px; font-weight: bold;
}

/* Grids */
.section-padding { padding: 60px 5%; text-align: center; }
.course-grid, .gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin-top: 30px;
}
.course-card { padding: 30px; background: var(--grey); border-radius: 10px; border-bottom: 4px solid var(--maroon); }
.course-card i { font-size: 2rem; color: var(--maroon); margin-bottom: 10px; }

.gallery-item img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; }

/* Form & Map */
.admissions-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
form { display: flex; flex-direction: column; gap: 15px; text-align: left; }
input, select { padding: 12px; border: 1px solid #ccc; border-radius: 5px; }
.submit-btn { background: var(--maroon); color: white; border: none; padding: 15px; cursor: pointer; font-weight: bold; }

/* WhatsApp */
.whatsapp-btn {
    position: fixed; bottom: 20px; right: 20px; background: #25d366;
    color: white; width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 70px; left: 0; background: white; padding: 20px; }
    .nav-links.active { display: flex; }
    .burger { display: block; }
    .admissions-container { grid-template-columns: 1fr; }
}