/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  background-color: #f7f7f7;
  color: #333;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  transition: background 0.3s;
  z-index: 1000;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

#navbar a {
  font-weight: 700;
  font-size: 1.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  letter-spacing: 1px;
  transition: color 0.2s;
}

#navbar a:hover {
  color: #0077cc;
}

/* Hero section */
.fullscreen-slider {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-text {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
  z-index: 2;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-text h1 {
  font-size: 5em;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero-text p {
  font-size: 1.6em;
  font-weight: 500;
}

/* Sections */
section {
  padding: 100px 20px;
  text-align: center;
}

.container {
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-size: 5em;
  margin-bottom: 20px;
}

/* About us */
.students-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.students-grid img {
  width: 150px;
  height: 150px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Statistics */
#statistics {
  background: #ffffff;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-card {
  background: #f0f0f0;
  padding: 40px 60px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.stat-card h3 {
  font-size: 4em;
  margin-bottom: 10px;
  color: #0077cc;
}

.stat-card p {
  font-size: 1.5em;
  color: #555;
}

/* Map */
.map-container iframe {
  border-radius: 15px;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Gallery */
#gallery {
  background: #fff;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-row img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Contact */
#contact {
  padding: 100px 20px;
  background: #fff;
  text-align: center;
}

.contact-subtitle {
  font-size: 1em;
  color: #777;
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
}

.contact-card {
  position: relative;
  background: linear-gradient(145deg, #f9f9f9, #ffffff);
  padding: 30px 35px 25px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  min-width: 280px;
  max-width: 320px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.contact-card .emoji {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  opacity: 0.6;
  pointer-events: none;
}

.contact-card strong {
  display: block;
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #222;
  letter-spacing: 0.5px;
}

.contact-card p {
  font-size: 1em;
  line-height: 1.5;
  color: #555;
}

.contact-form {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 100%;
  max-width: 380px;
  font-size: 1em;
}

.contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1em;
  width: 100%;
  max-width: 800px;
  resize: vertical;
  align-self: center;
}

.form-policy {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 0.95em;
}

.form-policy a {
  color: #0077cc;
  text-decoration: underline;
}

.contact-form button {
  background: #0077ff;
  color: white;
  font-size: 1.1em;
  border: none;
  border-radius: 10px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #005fcb;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
  animation: zoom 0.5s;
}

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

#close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#close:hover {
  color: #ccc;
}

#form-message {
  color: #28a745;
  font-weight: bold;
  animation: fadeIn 1s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  #navbar ul {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  #navbar ul.active {
    max-height: 500px;
    padding: 15px;
    opacity: 1;
    visibility: visible;
  }

  .hero-text h1 {
    font-size: 2.5em;
  }

  .hero-text p {
    font-size: 1.2em;
  }

  .students-grid img {
    width: 100px;
    height: 100px;
  }

  .stat-card {
    padding: 30px;
    width: 100%;
  }

  .stats-container {
    flex-direction: column;
    align-items: center;
  }

  .gallery-row {
    flex-wrap: nowrap;
    overflow-x: scroll;
  }

  .gallery-row img {
    width: 250px;
    height: 160px;
  }

  .contact-cards {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    flex-direction: column;
    align-items: center;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    max-width: 90%;
  }

  .menu-toggle {
    display: block;
  }
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0077cc;
  color: #fff;
  padding: 10px 15px;
  border: none;
  font-size: 1.5em;
  border-radius: 5px;
  z-index: 1100;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Removed previous #navbar ul display:none and #navbar ul.active display:flex to enable animation */
  /* #navbar ul {display:none}
  #navbar ul.active {display:flex} */
}

/* New styles for About Us section */
.about-flex {
  display: flex;
  gap: 40px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
}

.about-photo,
.about-text {
  flex: 1;
}

.about-photo img {
  width: 100%;
  max-width: 600px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  max-width: 600px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.about-text h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #444;
}

@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
  }

  .about-photo img,
  .about-text {
    max-width: 90%;
  }

  .about-text h2 {
    text-align: center;
  }
  h2 {
    font-size: 3em;
  }

  .about-text {
    text-align: center;
  }
}