/* ====== THEME ====== */
:root {
  --primary-color: #ff4000;
  --secondary-color: #7b68e4;
  --tertiary-color: #02eff8;
  --quaternary-color: #ffcc00;
  --text-color: #ffffff;
  --bg-color: #000000;

  --card-bg-color: rgba(0, 0, 0, 0.1);
  --card-border: rgba(255, 255, 255, 0.16);
  --card-glow: rgba(2, 239, 248, 0.25);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --shadow-s: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-m: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-l: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* ====== BASE & RESET ====== */
* {
  padding: 0;
  margin: 0;
  color: var(--text-color);
  scroll-behavior: smooth;
  font-family: 'Nunito', 'Poppins', sans-serif;
  box-sizing: border-box;
}

.card-effect{
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.card-effect:hover {
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
      background: rgba(0, 0, 0, 0.5);
      border: 1px solid var(--secondary-color);
      transform: translateY(-10px);
}

html, body {
  overflow-x: hidden;
  background-color: var(--bg-color);
  background-image: url("Images/dark-forest-fog.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* ====== SECTIONS ====== */
.section {
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  position: relative;
}
.section-title {
  position: relative;
  cursor: pointer;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  z-index: 1;
  color: var(--tertiary-color);
}
.section-title::after {
  content: "";
  position: absolute;
  left: -30%;
  bottom: 0;
  transform: translateX(50%);
  height: 3px;
  width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--bg-color), red);
  transition: width 0.6s ease;
}
.section-title:hover::after {
  width: 90%;
}



/* ====== SCROLL TO TOP (with progress) ====== */
#scrollToTopBtn {
  display: none; /* JS toggles to flex */
  place-items: center;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  width: 56px;
  height: 56px;
  font-size: 18px;
  border: none;
  outline: none;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  background:
    radial-gradient(transparent 55%, rgba(0,0,0,.35) 56%),
    conic-gradient(var(--primary-color) calc(var(--scroll, 0) * 1%), rgba(255,255,255,.12) 0);
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow-m);
  transition: transform .15s ease, filter .3s ease, box-shadow .3s ease, background-color .3s ease;
}

#scrollToTopBtn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-l);
  filter: drop-shadow(0 0 10px var(--card-glow));
}

#scrollToTopBtn:active {
  transform: scale(0.95);
}

/* ====== KEYFRAMES ====== */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes borderRotate {
  to { transform: rotate(360deg); }
}

/* ====== ACCESSIBILITY: REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
  .college { width: 40%; }
}

@media (max-width: 820px) {
  .college { width: 90%; min-width: unset; }
  .section-title { font-size: 2.3rem; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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