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

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Use the site's black background */
  background: #000; 
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  /* This controls the fade-out animation */
  transition: opacity 0.75s ease, visibility 0.75s ease;
  opacity: 1;
  visibility: visible;
}

#loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.2); 
  border-top-color: #ff4b4b; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: "Raleway", sans-serif;
  overflow-x: hidden;
  background-color: black;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('jesabg.png') center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;

  /* Animation-ready setup */
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1), filter 0.6s ease-in-out;
}

.hero.zooming {
  transform: scale(1.22);
  filter: brightness(0.8) contrast(1.1);
}

.topnav {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 30px;
  z-index: 10;
}

.navlink {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 8px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.navlink:hover {
  background: white;
  color: black;
  transform: scale(1.1);
}

.hero-content {
  z-index: 5;
  padding: 20px;
  backdrop-filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
}

.hero-content h1 {
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 400;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.mainbtn {
  display: inline-block;
  font-weight: 600;
  font-size: 18px;
  color: black;
  background: white;
  padding: 12px 38px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
}

.mainbtn:hover {
  background: #ff4b4b;
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 15px rgba(255, 75, 75, 0.5);
}

/* ===== CONTENT SECTION ===== */
.content-section {
  /* Removed padding and min-height, moved to section */
  background: #ffffff;
  color: #111;
  line-height: 1.8;
  font-size: 18px;
}

/* ===== NEW: Individual Section Padding/Styling ===== */
.content-section section {
  padding: 120px 10%;
  min-height: 80vh; /* Give sections height, but not full 100vh */
}

.content-section h2 {
  font-family: "Oswald", sans-serif;
  font-size: 60px;
  margin-bottom: 30px;
  color: #222;
}

.content-section p {
  max-width: 900px;
  margin-bottom: 20px;
}

/* ===== NEW: Section Background Colors ===== */
#academics {
  background: #ffffff; /* Standard White */
}

#ecs {
  background: #f9f9f9; /* Very Light Gray */
}

#contact {
  background: #f0f0f0; /* Light Gray */
}
/* ======================================== */


/* ===== NEW FOOTER STYLES ===== */
.site-footer {
  background: #111;
  color: #aaa;
  padding: 80px 10%;
  text-align: center;
  font-size: 16px;
}

.site-footer p {
  margin: 0;
  margin-top: 30px; /* Space between links and copyright */
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: #ff4b4b; /* Use accent color */
}
/* =========================== */


/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #ff4b4b;
  border-radius: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 60px;
  }
  .navlink {
    font-size: 16px;
    padding: 6px 14px;
  }
  .mainbtn {
    padding: 10px 28px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .topnav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  
  /* ===== MODIFIED: Apply padding to sections ===== */
  .content-section section {
    padding: 80px 8%;
  }
  /* ============================================= */

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}