/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  font-family: myFirstFont, Verdana, Geneva, Tahoma, sans-serif;
  cursor: default;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

@font-face {
  font-family: myFirstFont;
  src: url(../Poppins/Poppins-Regular.ttf);
}

@font-face {
  font-family: bold;
  src: url(../Poppins/Poppins-Bold.ttf);
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 5px;
}
body::-webkit-scrollbar-track {
  background: #3838387c;
}
body::-webkit-scrollbar-thumb {
  background-color: #e0120ba4;
  border: 1px solid #ff020279;
  border-radius: 1px;
}

/* === HEADER SECTION === */
.header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Slideshow */
.slideshow {
  position: absolute;
  top: 8.4rem;
  left: 0;
  width: 100%;
  height: 100%;
}
.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideShow 16s infinite;
}
.slideshow img:nth-child(1) { animation-delay: 0s; }
.slideshow img:nth-child(2) { animation-delay: 4s; }
.slideshow img:nth-child(3) { animation-delay: 8s; }
.slideshow img:nth-child(4) { animation-delay: 12s; }

@keyframes slideShow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  33% { opacity: 1; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}

/* Logo and Title */
.logoaa {
  display: flex;
  align-items: center;
  gap: 160px;
  width: 100%;
}
.logoaa img {
  width: 70px;
}
.logoaa h1 {
  font-family: bold;
  font-size: 35px;
  color: white;
}

/* Navigation Bar */
nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #222;
  padding: 10px 6%;
}
nav img {
  width: 70px;
}

.nav-links {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}
.nav-links ul {
  padding-left: 0;
}
.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}
.nav-links ul li::after {
  content: '';
  width: 0%;
  height: 2px;
  background: #ff0000;
  display: block;
  margin: auto;
  transition: 0.5s;
}
.nav-links ul li:hover::after {
  width: 100%;
}

/* Hero Text */
.text-box {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, 50%);
  text-align: center;
  z-index: 2;
}
.text-box h1 {
  font-size: 62px;
  font-weight: bold;
}
.text-box p {
  margin: 10px 0 40px;
  font-size: 14px;
  color: #fff;
}

/* Buttons */
.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: yellow;
  border: 2px solid yellow;
  padding: 12px 34px;
  font-size: 13px;
  background: transparent;
  position: relative;
  cursor: pointer;
  border-radius: 5px;
  z-index: 2;
  margin: 10px;
  margin-top: 100px;
}
.hero-btn:hover {
  color: black;
  background: yellow;
  transition: 0.3s ease-in-out;
}

/* Mobile Nav Icons */
.menu-icon,
.close-icon {
  display: none;
}

/* === CAMPUS SECTION === */
.campus {
  width: 90%;
  margin: auto;
  text-align: center;
  padding-top: 45px;
  padding-bottom: 25px;
}
.campus h1 {
  font-size: 25px;
  font-weight: 700;
  color: #222; /* Optional: make it darker or use white if background is dark */
  margin-bottom: 40px;
}


.row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 20px;
}

.campus-col {
  flex: 0 0 30%; /* Make each image take ~30% width */
  max-width: 350px; /* Set maximum size */
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: 0.3s ease-in-out;
}

.campus-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.layer {
  background: transparent;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.5s;
}
.layer:hover {
  background: rgba(0, 245, 253, 0.534);
}
.layer h3 {
  width: 100%;
  font-weight: 500;
  color: #fff;
  font-size: 26px;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  position: absolute;
  opacity: 0;
  transition: 0.5s;
}
.layer:hover h3 {
  opacity: 1;
  bottom: 49%;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* === MEDIA QUERIES === */
@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    transition: 0.5s;
    z-index: 999;
    padding-top: 60px;
  }
  .nav-links ul {
    padding: 20px;
  }
  .nav-links ul li {
    display: block;
    margin: 20px 0;
  }
  .nav-links ul li a {
    font-size: 18px;
  }

  .menu-icon {
    display: block;
    font-size: 30px;
    color: white;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
    cursor: pointer;
  }
  .close-icon {
    display: block;
    font-size: 30px;
    color: white;
    position: absolute;
    left: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
  }

  .logoaa {
    flex-direction: column;
    gap: 0px;
    align-items: center;
  }
  .logoaa h1 {
    font-size: 20px;
    text-align: center;
    padding: 0 10px;
  }
  .logoaa img {
    width: 60px;
  }
  .text-box {
    width: 100%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .text-box h1 {
    font-size: 28px;
  }
  .hero-btn {
    font-size: 16px;
    margin-top: 20px;
  }
  .campus-col {
    flex: 0 0 100%;
    max-width: 100%;
}
}