@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: #f5f7fb;
  overflow-x: hidden;
  line-height: 1.6;
}

/* NAV */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #8b0000;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 60px;
  height: 60px;
  background: white;
  padding: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text h2 {
  font-size: 22px;
  line-height: 1.1;
  color: white;
  font-weight: 600;
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 12px;
  color: #e5e5e5;
  margin: 0;
  line-height: 1.2;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.4s;
}

nav a:hover {
  color: #d8e8ff;
}

/* HERO */

.hero {
  height: 100vh;

  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
    url("images/School_Building_2.jpeg");

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #1f2937;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 0 6%;
}

.overlay {
  max-width: 850px;
}

.welcome {
  color: white;
  letter-spacing: 3px;
  margin-bottom: 100px;
}

.hero-title {
  font-size: 72px;
  height: 100px;
  padding-top: 10px;
}

#typing {
  background: linear-gradient(90deg, #00c6ff, #4facfe);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 700; /* desktop */
}

/* MOBILE */

@media (max-width: 768px) {
  #typing {
    font-size: 32px;
  }
}

.hero-desc {
  margin-top: 40px;
  padding: 0 0;
  color: #f1f1f1;
  line-height: 2;
  font-size: 17px;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: #1e90ff;
  color: white;
  border-radius: 30px;
  margin-top: 35px;
  text-decoration: none;
  transition: 0.5s;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* COMMON */

section {
  padding: 40px 6%;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 34px;
}

.line {
  width: 70px;
  height: 4px;
  background: #1e90ff;
  border-radius: 20px;
  margin-top: 12px;
}

/* CHAIRMAN */

.quote-box {
  display: flex;
  align-items: center;
  gap: 40px;

  background: white;
  padding: 35px;

  border-left: 6px solid #8b0000;

  border-radius: 20px;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

.quote-box img {
  width: 320px;
  max-height: 250px;

  height: auto;

  object-fit: contain;

  display: block;

  border-radius: 15px;

  margin-bottom: 25px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.chairman-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  flex: 1;
}

.chairman-content p {
  font-size: 16px;
  line-height: 2;

  text-align: justify;
  color: #555;
}

.chairman-info {
  margin-top: 20px;

  display: flex;
  flex-direction: column;

  align-items: flex-end;
}

.chairman-info h3 {
  font-size: 22px;
  margin-bottom: 3px;
  margin-top: 50px;
}

.chairman-info span {
  font-size: 15px;
  color: #666;
}

/* MOBILE */

@media (max-width: 768px) {
  .quote-box {
    display: block;
  }

  .quote-box img {
    display: block;
    width: 100%;
    max-width: 260px;

    margin: auto;
    margin-bottom: 25px;

    min-width: auto;
  }

  .chairman-content p {
    font-size: 14px;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .quote-box {
    display: block; /* back to current mobile layout */

    padding: 30px;
  }

  .quote-box img {
    display: block;

    width: 100%;
    max-width: 260px;

    margin: auto;
    margin-bottom: 25px;

    min-width: auto;
  }

  .quote-box p {
    font-size: 14px;
  }
}

/* VISION */

.vision-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 25px;
}

.vision-card {
  background: white;

  padding: 35px;

  border-radius: 20px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  transition: 0.4s;
}

.vision-card:hover {
  transform: translateY(-8px);
}

.vm-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.vm-row img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

/* ACTIVITIES */

.activity-title img {
  width: 65px;
  margin-bottom: 10px;
}

.activity-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 25px;
}

.activity-card {
  background: white;

  padding: 15px;

  border-radius: 20px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  transition: 0.5s;
}

.activity-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.activity-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;

  border-radius: 15px;
}

.activity-card h3 {
  padding: 15px 10px 5px;
}

.activity-card p {
  padding: 0 10px 15px;
  color: #666;
}

/* ABOUT */

.about {
  background: white;
  border-radius: 25px;
  padding: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about p {
  max-width: 900px;

  margin: auto;

  text-align: justify;

  font-size: 16px;

  line-height: 2;

  color: #555;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 35px;
}

.socials a {
  width: 55px;
  height: 55px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;

  background: #1e90ff;

  color: white;
  font-size: 20px;

  text-decoration: none;

  transition: 0.4s;
}

.socials a:hover {
  transform: translateY(-8px);
}

/* CONTACT */

footer {
  padding: 70px;
  background: #111;
  color: white;
  text-align: center;
}

footer .line {
  margin: 12px auto 25px;
}

footer p {
  margin: 10px 0;
}

/* FLOATING WHATSAPP */

.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.floating-contact a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 15px 22px;

  background: #25d366;

  color: white;

  text-decoration: none;

  border-radius: 50px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

  transition: 0.4s;

  animation: float 2s infinite;

  font-weight: 500;
}

.floating-contact a:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .floating-contact span {
    display: none;
  }

  .floating-contact a {
    width: 60px;
    height: 60px;

    padding: 0;

    justify-content: center;

    border-radius: 50%;

    font-size: 24px;
  }
}

/* SCROLL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 15px;
  }

  .logo {
    justify-content: center;
    width: 100%;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .logo-text h2 {
    font-size: 18px;
  }

  .logo-text p {
    font-size: 11px;
  }

  nav ul {
    margin-top: 15px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 42px;
    height: 70px;
  }

  .hero-desc {
    padding: 0;
    font-size: 15px;
  }

  .quote-box img {
    width: 100%;
    max-width: 260px;
  }

  .vision-box {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 35px;
  }

  .floating-contact span {
    display: none;
  }

  .floating-contact a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
  }
}

/* ADMISSION */

.admission {
  padding: 70px 6%;
}

.admission-box {
  max-width: 700px;

  margin: auto;

  background: white;

  padding: 40px;

  border-radius: 25px;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);

  display: flex;

  flex-direction: column;

  gap: 18px;
}

.admission-box input,
.admission-box select {
  padding: 16px;

  border: 1px solid #ddd;

  border-radius: 12px;

  font-size: 15px;

  outline: none;

  transition: 0.4s;
}

.admission-box input:focus,
.admission-box select:focus {
  border-color: #1e90ff;

  box-shadow: 0 0 10px rgba(30, 144, 255, 0.2);
}

.admission-box button {
  padding: 16px;

  border: none;

  border-radius: 12px;

  background: #25d366;

  color: white;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.4s;
}

.admission-box button:hover {
  transform: translateY(-4px);

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* FULLSCREEN IMAGE */

.image-modal {
  display: none;

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.92);

  z-index: 99999;

  justify-content: center;
  align-items: center;

  animation: fade 0.3s;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;

  border-radius: 15px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

  animation: zoom 0.3s;
}

.close-modal {
  position: absolute;

  top: 25px;
  right: 35px;

  font-size: 45px;

  color: white;

  cursor: pointer;

  transition: 0.4s;
}

.close-modal:hover {
  transform: rotate(90deg);
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoom {
  from {
    transform: scale(0.7);

    opacity: 0;
  }

  to {
    transform: scale(1);

    opacity: 1;
  }
}

.video-stack {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.video-card {
  background: white;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.video-card video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

@media (min-width: 769px) {
  .video-card {
    max-width: 700px;
    margin: auto;
  }

  .video-card video {
    height: 400px;
  }
}
