:root {
    --primary-gradient: linear-gradient(135deg, #6e48aa, #9d50bb);
    --secondary-gradient: linear-gradient(135deg, #fc466b, #3f5efb);
    --background: #0f0c29;
    --text-color: #e0e0e0;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --card-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] {
    --background: #000000;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text-color);
    transition: all 0.3s ease;
    min-height: 100vh;
    background-image: linear-gradient(to bottom right, #0f0c29, #302b63, #24243e);
}

/* Theme Switch Styles */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 100;
    background: var(--glass-bg);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.theme-switch {
    display: inline-block;
    height: 34px;
    width: 60px;
    position: relative;
}

.theme-switch input {
    display: none;
}

.slider {
    background: rgba(255, 255, 255, 0.2);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
}

.slider:before {
    background: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 26px;
}

input:checked + .slider {
    background: var(--primary-gradient);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Popup Styles */
/* Existing styles */
/* Existing styles */

/* Existing styles */

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.popup-content {
    background: linear-gradient(145deg, #FFD700, #FF8C00);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    animation: popupScale 0.7s ease-out;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7);
    border: 2px solid #FFD700;
    backdrop-filter: blur(16px);
    max-width: 90%;
    margin: 1rem;
    overflow: hidden;
}

@keyframes popupScale {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    70% { transform: scale(1.1) rotate(10deg); opacity: 0.7; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.popup-title {
    font-size: 4rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite, runningText 10s linear infinite;
    white-space: nowrap;
    display: inline-block;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    50% { text-shadow: 0 0 40px rgba(255, 215, 0, 1); }
}

@keyframes runningText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.popup-subtitle {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.close-popup {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.8);
    border-radius: 30px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.close-popup:hover {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@media (max-width: 768px) {
    .popup-content {
        padding: 2rem;
    }
    .popup-title {
        font-size: 3rem;
    }
    .popup-subtitle {
        font-size: 1.5rem;
    }
    .close-popup {
        padding: 10px 20px;
        font-size: 1rem;
    }
}


/* Banner Styles */
/* Banner Styles */
/* Container for the header image */
.header-image-container {
    width: 100%;
    overflow: hidden; /* Ensures no unwanted overflow on smaller screens */
  }
  
  /* Responsive image styling */
  .responsive-header-image {
    width: 100%;
    height: auto;
    display: block;
  }
  
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('/public/Broucherimg/a.v.c image.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    animation: bannerZoom 15s infinite ease-in-out;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 0, 0, 0.2), 
        rgba(255, 166, 0, 0.2), 
        rgba(255, 255, 0, 0.2), 
        rgba(0, 255, 0, 0.2), 
        rgba(0, 0, 255, 0.2),
        rgba(238, 130, 238, 0.2));
    animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* @keyframes bannerZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
} */

.banner-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease-in;
}

.banner h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b649, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradientText 5s ease infinite, float 3s ease-in-out infinite;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4ecdc4, #45b649);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner p {
    font-size: 1.5rem;
    margin-top: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .banner {
        padding: 6rem 1rem;
    }

    .banner h1 {
        font-size: 3rem;
    }

    .banner h2 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1.2rem;
    }
}

/* Department Grid Styles */
.departments {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.departments h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.department-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s ease;
    border: var(--card-border);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
/* --- General Card Styling --- */
.department-card {
  /* Add any other card styles here (e.g., width, height, margin) */
  color: white;
  text-decoration: none;
  padding: 20px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative; /* Needed for the gradient overlay */
  z-index: 1;
}

/* --- Gradient Overlay --- */
.department-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1)); */
  border-radius: 8px;
  z-index: -1;
}

/* --- Individual Department Background Images --- */

.cse {
  background-image: url('../public/Bannerimg/IT banner.jpeg');
}

.it {
  background-image: url('../public/Bannerimg/cse banner.jpeg');
}
.ece {
  background-image: url('./EceBanner.jpeg'); /* This path might need fixing, see folder structure below */
}
.eee {
  background-image: url('../public/Bannerimg/EEEBanner.jpeg');
}
.ice {
  background-image: url('../public/Bannerimg/ICEBanner.jpeg');
}
.mech {
  background-image: url('../public/Bannerimg/MechBanner.jpeg');
}
.civil {
  background-image: url('../public/Bannerimg/CivilBanner.jpeg');
}
.mba {
  background-image: url('../public/Bannerimg/MbaBanner.jpeg');
}
.mca {
  background-image: url('../public/Bannerimg/McaBanner.jpeg');
}
.aids {
  background-image: url('../public/Bannerimg/ScienceBanner.jpeg');
}
/* Gradient Overlay for a Stylish Effect */
.department-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: 1;
}

.department-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background-color: whitesmoke;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}



/* Hover Effect (No Changes) */
.department-card:hover::before {
    transform: translateX(100%);
}

.department-card:hover {
    transform: translateY(-15px) scale(1.02);
     box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    /* background: var(--glass-bg); */ 
}

/* Apply Background Images for Each Department */
/* .department-card[href*="cse.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
}
.department-card[href*="it.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
}
.department-card[href*="ece.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
}
.department-card[href*="eee.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
}
.department-card[href*="ice.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
}
.department-card[href*="mech.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
}
.department-card[href*="civil.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
}
.department-card[href*="mba.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
}
.department-card[href*="mca.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
}
.department-card[href*="S&h.html"] {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.1));
} */

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-section {
    padding: 1rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #fff, transparent);
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 3rem;
    }

    .banner h2 {
        font-size: 1.8rem;
    }

    .departments {
        padding: 2rem 1rem;
    }

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

    .popup-title {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

/* Download button styling within modal */
.modal-download {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
  
  .modal-download a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
  }
  
  .modal-download a:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  

/* Styles for the new section */
.past-glimpses {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--secondary-bg); /* Or any color that fits your theme */
  position: relative;
  overflow: hidden;
}

.past-glimpses h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.image-carousel-container {
  overflow: hidden;
  max-width: 100%;
  position: relative;
}

.image-carousel {
  display: flex;
  width: calc(250px * 16); /* Total width of all images (8 original + 8 duplicated) */
  animation: scroll-images 40s linear infinite; /* Adjust duration for speed */
}

.image-carousel:hover {
  animation-play-state: paused;
}

.image-carousel img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.image-carousel img:hover {
  transform: scale(1.05);
}

@keyframes scroll-images {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 8)); /* Moves one set of images out of view */
  }
}

/* Full-screen Modal Styles */
.fullscreen-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Sit on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
  backdrop-filter: blur(10px);
  padding-top: 60px;
  -webkit-animation-name: fadeIn;
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Animations */
@-webkit-keyframes fadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

/* Countdown Timer Styles */
.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-item {
  text-align: center;
  color: #fff;
}

.countdown-item span {
  font-size: 3rem;
  font-weight: bold;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.countdown-item p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .countdown-timer {
    gap: 10px;
    padding: 0.8rem 1rem;
  }
  .countdown-item span {
    font-size: 2rem;
  }
  .countdown-item p {
    font-size: 0.8rem;
  }
}