/* =======================
   GLOBAL STYLES
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Questrial", sans-serif;
}

html,
body {
    height: auto;
    width: 100%;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    scroll-behavior: smooth;
}


/* =======================
   LOADER
======================= */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#main-content {
    display: none;
    padding: 2rem;
    text-align: center;
}


/* =======================
   HERO SECTION
======================= */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    padding: 2rem;
}

.hero-content {
    animation: fadeIn 2s ease-out;
}

.title {
    font-family: "Rubik Glitch", system-ui;
    font-size: 8rem;
    font-weight: 100;
    letter-spacing: 4px;
    color: white;
    text-shadow: 5px 0 red, -5px 0 blue;
}

.subtitle {
    font-size: 4rem;
    margin-top: 0.5rem;
    color: #00ccff;
}

.organizer,
.college {
    font-size: 2rem;
    margin-top: 1rem;
    color: #ccc;
}


/* =======================
   BUTTON (EXPLORE)
======================= */
.explore-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: #fff;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.explore-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}


/* =======================
   ANIMATION
======================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =======================
   ABOUT COLLEGE
======================= */
.about-college {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    color: #333;
    gap: 2rem;
    justify-content: center;
}

.about-left {
    flex: 1 1 400px;
    max-width: 600px;
}

.about-left h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0f2027;
}

.about-left p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
}

.about-right {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-top img,
.image-bottom img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.image-top img {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.image-bottom {
    display: flex;
    gap: 1rem;
}

.image-bottom img {
    height: 200px;
    flex: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}


/* =======================
   ABOUT DEPARTMENT
======================= */
.about-department {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    color: #333;
    gap: 2rem;
}

.dept-left {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dept-left img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dept-right {
    flex: 1 1 60%;
}

.dept-right h2 {
    font-size: 2.5rem;
    color: #0f2027;
    margin-bottom: 1rem;
}

.dept-right p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}


/* =======================
   PROJECT SECTION
======================= */
.projects-section {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.project-card:hover {
    transform: scale(1.03);
}


/* =======================
   MODAL
======================= */
.project-modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);

    /* Center content properly */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Allow full modal scroll if needed */
    overflow-y: auto;
    padding: 20px;
}

.project-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;

    /* 🔥 KEY PART */
    max-height: 90vh;
    overflow-y: auto;

    position: relative;
}

.modal-image {
    width: 70%;
    margin: 1rem 0;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #000;
}


/* =======================
   YEAR BUTTONS
======================= */
.year-buttons {
    text-align: center;
    margin: 30px 0;
}

.year-buttons button {
    background: linear-gradient(135deg, #0A579B, #0297DE);
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin: 10px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-buttons button:hover {
    transform: translateY(-3px) scale(1.05);
}

.year-buttons button.active {
    background: #fff;
    color: #0A579B;
    border: 2px solid #0A579B;
}


/* =======================
   FOOTER
======================= */
/* =======================
   FOOTER (FINAL FIX)
======================= */
.footer {
    background-color: #0f2027;
    color: #fff;
    padding: 2rem 1rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

/* LEFT */
.footer-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 70px;
}

.college-name {
    display: flex;
    flex-direction: column;
}

.vivekananda {
    color: orange;
    font-size: 1.5rem;
    margin: 0;
}

.vcet-sub {
    font-size: 0.9rem;
    margin: 0;
}

/* MIDDLE */
.footer-middle {
    flex: 1;
    text-align: center;
}

.footer-middle h3 {
    margin-bottom: 10px;
}

/* SOCIAL */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: orange;
    transform: scale(1.2);
}

/* RIGHT */
.footer-right {
    flex: 1;
}

.footer-right h3 {
    margin-bottom: 10px;
}

.footer-right a {
    color: orange;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #aaa;
    border-top: 1px solid #333;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .organizer,
    .college {
        font-size: 1rem;
    }

    .about-department,
    .about-college {
        flex-direction: column;
        text-align: center;
    }

    .image-bottom {
        flex-direction: column;
    }

    .year-buttons button {
        width: 80%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }

    .footer-middle,
    .footer-right {
        width: 100%;
    }

    .footer-logo {
        height: 60px;
    }
}