body {
  background: url(parojpg.jpg) center/cover fixed no-repeat;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  }

  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }
  
  body::after {
  content: '';
  position: absolute;
  background-color: rgb(255, 255, 255);
  }
  
  /* Navigation */
  nav {
  background-color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 9vh;
  display: flex;
  align-items: center;
  padding: 0 2vw;
  box-sizing: border-box;
  }
  nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  }
  nav li:first-child { margin-right: auto; }
  nav li {
  margin: 0 1vw;
  }
  nav a {
  display: flex;
  align-items: center;
  color: #8400bd;
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.2rem);
  position: relative;
  padding: 0.5em 0;
  font-weight: 700;
  }
  nav a img {
  height: clamp(2rem, 4vw, 4rem);
  width: auto;
  }
  
  .logo a::after {
  content: none;
  }
  
  nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #8400bd;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  }
  nav a:hover::after {
  transform: scaleX(1);
  }
  .menu-button { display: none; cursor: pointer; }
  
  /* Side Nav for Mobile */
  .sidenav {
  position: fixed;
  top: 0; right: 0;
  width: 20vw;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  }
  .sidenav.show { transform: translateX(0); }
  .sidenav li { margin: 0rem 0; }
  .sidenav a {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: #fff;
  }
  
  /* Main Content */
  main {
  padding: 12vh 5vw 5vh;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  }
  
  /* Animated Heading */
  .head {
  font-size: clamp(1.5rem, 6.2vw, 3rem);
  margin: 0 auto 1.5rem;
  margin-top: 15px;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #8400bd;
  -webkit-text-stroke: 0.05em #000;
  line-height: 1.1;
  word-break: break-word;
  padding: 0 1rem;
  font-weight: 900;
  }
  
  /* Paragraph Text */
  .sub {
  font-size: clamp(0.9rem, 4vw, 1.5rem);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  line-height: 1.3;
  margin: 0 auto;
  max-width: 100%;
  text-align: justify;
  box-sizing: border-box;
  margin-bottom: 70px;
  }
  .AboutUs, .mission, .vision, .legal, .keyactivities, .future{
  font-size: clamp(1.5rem, 6.2vw, 3rem);
  background:#8400bd;
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.05em #000;
  line-height: 1.2;
  word-break: break-word;
  font-weight: 800;
  }
  .about, .mission2, .vision2, .legal2, .keyactivities2, .future2{
  font-size: clamp(0.9rem, 4vw, 1.5rem);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  line-height: 1.3;
  max-width: 100%;
  text-align: justify;
  box-sizing: border-box;
  }
 
  .wrapper {
  position: relative;
  width: 400px;
  height: 520px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: height 0.2s ease;
  }
  
  .wrapper .form-box {
  padding: 40px;
  width: 100%;
  position: absolute;
  transition: transform 0.3s ease;
  }
  
  .wrapper .form-box.login {
  transform: translateX(0);
  }
  
  .wrapper.active .form-box.login {
  transform: translateX(-400px);
  }
  
  .wrapper .form-box.register {
  transform: translateX(400px);
  }
  
  .wrapper.active .form-box.register {
  transform: translateX(0);
  }
  
  .form-box h2 {
  font-size: 2em;
  color: #000;
  text-align: center;
  }
  
  .input-box {
  position: relative;
  width: 100%;
  height: 50px;
  margin: 30px 0;
  border-bottom: 2px solid #8400bd;
  }
  
  .input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  color: #000;
  font-size: 1em;
  pointer-events: none;
  transition: 0.5s;
  }
  
  .input-box input:focus ~ label,
  .input-box input:valid ~ label {
  top: -5px;
  color: #8400bd;
  }
  
  .input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #000;
  font-size: 1em;
  padding: 0 35px 0 5px;
  }
  
  .input-box .icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #8400bd;
  font-size: 1.2em;
  }
  
  .remember-forgot {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  color: #000;
  margin: 10px 0 20px;
  }
  
  .remember-forgot a {
  color: #8400bd;
  text-decoration: none;
  }
  
  .btn {
  width: 100%;
  padding: 10px;
  background: #8400bd;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  }
  
  .btn:hover {
  background: #540078;
  }
  
  .login-register {
  font-size: 0.9em;
  color: #000;
  text-align: center;
  margin: 25px 0 10px;
  }
  
  .login-register a {
  color: #8400bd;
  font-weight: 600;
  text-decoration: none;
  }
  
  .icon-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  color: #8400bd;
  cursor: pointer;
  }
  
  .section-divider {
  border: none;
  height: 7px;
  background-color: #8400bd;
  width: 90%;
  margin-bottom: 45px;
  opacity: 0.7;
  border-radius: 100%;
  }
  
  /* Responsive Breakpoints */
  @media (max-width: 800px) {
  nav ul { justify-content: space-between; }
  .hideOnMobile { display: none; }
  .menu-button { display: block; }
  main { padding: 14vh 4vw 5vh; }
  }
  
  @media (max-width: 650px) {
  .head { font-size: clamp(1.2rem, 12vw, 2.5rem); }
  .AboutUs { font-size: clamp(1.2rem, 12vw, 2.5rem); }
  .sub { font-size: clamp(1rem, 6.5vw, 1.6rem); }
  .about { font-size: clamp(1rem, 6.5vw, 1.6rem); }
  }
  
  @media (max-width: 480px) {
  .head { font-size: clamp(1.2rem, 10vw, 2.5rem); }
  .AboutUs { font-size: clamp(1.2rem, 9vw, 2.5rem); }
  .sub { font-size: clamp(1rem, 5.5vw, 1.1rem); }
  .about { font-size: clamp(1rem, 5.5vw, 1.1rem); }
  main { padding: 16vh 3vw 5vh; }
  }
  @media (max-width: 360px) {
  .head { font-size: clamp(1.2rem, 9vw, 2rem); }
  .AboutUs { font-size: clamp(1.2rem, 9vw, 2.5rem); }
  .sub { font-size: clamp(1rem, 5.5vw, 1rem); }
  .about { font-size: clamp(1rem, 5.5vw, 1.1rem); }
  }
  @media (orientation: landscape) and (max-height: 500px) {
  main { padding: 10vh 3vw 3vh; }}


  .mission-vision-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.mission-block,
.vision-block {
  flex: 1 1 48%;
  box-sizing: border-box;
  min-width: 300px;
  padding: 0 1rem;
}

/* Line between them (only on large screens) */
.mission-vision-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.5); /* subtle white line */
  transform: translateX(-50%);
}

/* Remove line on small screens */
@media (max-width: 768px) {
  .mission-vision-container {
    flex-direction: column;
  }

  .mission-vision-container::before {
    display: none;
  }

  .mission-block,
  .vision-block {
    flex: 1 1 100%;
  }
}

.keyactivities-section {
  width: 100%;
  padding: 12vh 5vw 5vh;
  box-sizing: border-box;
}

.keyactivities-wrapper {
  max-width: 1100px; /* wider than the usual 900px */
  margin: 0 auto;
  box-sizing: border-box;
}

.gallery-title {
  font-size: clamp(2rem, 6vw, 4rem);
  text-align: left;
  font-weight: 900;
  background: #8400bd;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

/* GRID: 3 columns on big screens, less on smaller */
.gallery-section {
  padding: 10vh 2vw 5vh;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* prevent any accidental horizontal scroll */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* this ensures wrap */
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden; /* optional: just to keep tidy */
}

.gallery-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.gallery-item iframe,
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* ✨ This fills the space completely */
  border: none;
}

.contact-section {
  padding: 10vh 2vw 5vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-box {
  flex: 1 1 45%;
  border-radius: 12px;
  padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  font-size: clamp(0.85rem, 2.3vw, 1.2rem);
  line-height: 1.5;
  box-sizing: border-box;
  color: #000;
}

.contact-heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 110;
  background: #8400bd;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }

  .contact-box {
    flex: 1 1 100%;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-links a {
  color: #8400bd; /* theme purple */
  font-size: 2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #5e0094;
  transform: scale(1.1);
}

.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background-color: #fff;
  margin: 20% auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  font-size: 1.2rem;
  color: #333;
}

.popup-content button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #8400bd;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.popup-content button:hover {
  background-color: #5a008a;
}
