* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f0f4f8, #d9e4f5);
    color: #333;
}

header {
    background: #4b6cb7; /* fallback for old browsers */
    background: linear-gradient(to right, #182848, #4b6cb7);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #ffd700; /* Gold color */
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #182848;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.student-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.student-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s;
    z-index: 0;
}

.student-card:hover::before {
    transform: scale(1.1);
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.student-name {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    font-weight: 600;
}

footer {
    background: #4b6cb7; /* fallback for old browsers */
    background: linear-gradient(to right, #182848, #4b6cb7);
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
/* Media Queries for responsive design */
@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar nav ul li {
        display: block; /* Stack the links vertically */
        margin: 5px 0;
    }
    html {
        width: 700px;
    }
    body {
        width: 700px;
    }

}
.year-section {
    margin-bottom: 40px; /* Add space between year sections */
}

.year-section h3 {
    font-size: 1.8rem;
    color: #182848; /* Change color as needed */
    margin-bottom: 10px;
}

.coming-soon {
    color: orange; /* or any other color */
    font-weight: bold;
    margin-top: 10px;
}
/* Preloader Container */
#advanced-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #83a4d4, #b6fbff); /* Gradient background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.7s ease-out;
  }
  
  /* Circle Animation */
  .circle-container {
    position: relative;
  }
  
  .circle {
    border-radius: 50%;
    position: absolute;
    animation: pulse 1.5s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.3); /* Semi-transparent circles */
  }
  
  .circle-1 {
    width: 80px;
    height: 80px;
    animation-delay: 0.1s;
  }
  
  .circle-2 {
    width: 120px;
    height: 120px;
    animation-delay: 0.3s;
  }
  
  .circle-3 {
    width: 160px;
    height: 160px;
    animation-delay: 0.5s;
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 0.8;
    }
    50% {
      transform: scale(1.4);
      opacity: 0.3;
    }
  }
  
  /* Preloader Text */
  .preloader-text {
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    position: relative;
    z-index: 10;
    animation: fadeInOutText 1.8s ease-in-out infinite;
    margin-top: 2rem;
  }
  
  @keyframes fadeInOutText {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
  }
  
  /* Logo Animation */
  .preloader-logo {
    position: relative;
    z-index: 10;
    margin-bottom: 2rem; /* Adjust this as necessary */
  }
  
  .logo-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    animation: logoFadeIn 1.8s ease-in-out forwards;
    animation-delay: 0.5s; /* Start the logo animation after circles start */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5)); /* Glowing effect */
  }
  
  @keyframes logoFadeIn {
    0% {
      opacity: 0;
      transform: scale(0.5); /* Start small */
    }
    100% {
      opacity: 1;
      transform: scale(1); /* Scale up to full size */
    }
  }
  
  
  /* Preloader Logo Spin */
  .preloader-logo {
    width: 80px;
    height: 80px;
    animation: logoSpin 2.1s linear infinite;
  }
  
  /* Keyframes for logo spinning */
  @keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  
  /* Hide Preloader on Page Load */
  #advanced-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }