/* === BASIC RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #fff;
  color: #000;
  transition: all 0.4s ease-in-out;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 1001;
}

.navbar .logo span {
  color: #1e90ff;
}

/* Hamburger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links .active {
  color: #1e90ff;
}

/* === HERO SECTION === */
.hero {
  min-height: 90vh;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url(img/1000001407.jpg) center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 2s ease-in;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 1rem;
  animation: slideInDown 1.5s ease;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 1.5rem;
}

.btn {
  background-color: #1e90ff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #0c70d4;
}

/* === ABOUT SECTION (HOMEPAGE) === */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background: #f9fbff;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-content {
  flex: 1;
  min-width: 280px;
}

.about-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: #000;
  margin-bottom: 1rem;
}

.about-content h1 span {
  color: #0066cc;
}

.about-content p {
  color: #333;
  line-height: 1.7;
  font-size: clamp(0.95rem, 2vw, 1rem);
  margin-bottom: 1.5rem;
}

.about-content .btn {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.about .btn:hover {
  background: #004c99;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
}

/* === SECTIONS === */
section {
  padding: 4rem 2rem;
  text-align: center;
}

section h2 {
  color: #1e90ff;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  position: relative;
}

.about-section, .announcements {
  background-color: #f9f9f9;
  color: #000;
}

.announcements .card {
  margin: 2rem auto;
  max-width: 500px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  width: 100%;
}

.announcements .card:hover {
  transform: scale(1.05);
}

/* === FOOTER === */
.footer {
  background: #000;
  color: #fff;
  padding: 2rem 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-content > div {
  flex: 1;
  min-width: 200px;
}

.footer-content h3, .footer-content h4 {
  color: #1e90ff;
  margin-bottom: 0.5rem;
}

.footer-content a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-content a:hover {
  color: #1e90ff;
}

.footer-content ul {
  list-style: none;
  padding: 0;
}

.footer-content li {
  margin-bottom: 0.5rem;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInDown {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === SIGNUP PAGE STYLES === */
.signup-section {
  min-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9fbff;
  padding: 2rem 1rem;
}

.signup-container {
  background: #ffffff;
  padding: 2.5rem 3rem;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  animation: fadeInUp 1.2s ease;
}

.signup-container h2 {
  color: #0066cc;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.signup-form .form-group {
  margin-bottom: 1rem;
}

.signup-form input,
.signup-form select {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.signup-form input:focus,
.signup-form select:focus {
  border-color: #0066cc;
  box-shadow: 0 0 5px rgba(0,102,204,0.3);
  outline: none;
}

.signup-form select {
  background-color: #fff;
  color: #333;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.checkbox-group label {
  color: #333;
  line-height: 1.4;
}

.checkbox-group a {
  color: #0066cc;
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.login-text {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.login-text a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.login-text a:hover {
  text-decoration: underline;
}

/* Animation */
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === PROFILE PAGE STYLES === */
.profiles-section {
  background: #f5f9ff;
  padding: 4rem 2rem;
  text-align: center;
}

.profiles-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #0066cc;
  margin-bottom: 2rem;
  font-weight: 700;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,102,204,0.3);
}

.profile-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-card:hover img {
  transform: scale(1.05);
}

.profile-card h3 {
  margin: 1rem 0 0.3rem 0;
  color: #000;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.profile-card p {
  color: #555;
  margin-bottom: 1rem;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  padding: 0 1rem;
}

/* === PROFILE DETAIL PAGE === */
.profile-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  background: #fff;
}

.profile-detail img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0066cc;
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
}

.profile-detail img:hover {
  transform: scale(1.05);
}

.profile-info {
  max-width: 600px;
  text-align: center;
  width: 100%;
  padding: 0 1rem;
}

.profile-info h2 {
  color: #0066cc;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  margin-bottom: 1rem;
}

.profile-info p {
  margin: 0.3rem 0;
  color: #333;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1rem);
}



/* === CONTACT PAGE === */
.contact-section {
  padding: 4rem 2rem;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h2 {
  color: #0066cc;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.contact-info p {
  color: #333;
  line-height: 1.8;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-info ul {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-form {
  flex: 1;
  min-width: 280px;
  background: #f5f9ff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 5px rgba(0,102,204,0.3);
  outline: none;
}

/* === RESPONSIVE DESIGN === */

/* Large tablets and below (992px) */
@media (max-width: 992px) {
  .navbar {
    padding: 1rem 2rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

/* Tablets and below (768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
    flex-wrap: nowrap;
  }

  Show hamburger menu
  .menu-toggle {
    display: flex;
  }

  /* Mobile Navigation - Slide from Right */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 350px;
    height: 100vh;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    padding: 2rem;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
  }

  .nav-links.active li {
    animation: slideIn 0.5s forwards;
  }

  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }
  .nav-links.active li:nth-child(7) { animation-delay: 0.4s; }
  .nav-links.active li:nth-child(8) { animation-delay: 0.45s; }

  .nav-links a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
  }

  .hero {
    min-height: 70vh;
    padding: 3rem 1.5rem;
  }

  .about {
    flex-direction: column-reverse;
    padding: 3rem 1.5rem;
  }

  .hero-image img {
    width: 85%;
    max-width: 350px;
    margin-top: 1.5rem;
  }

  .profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }

  .footer {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-container,
  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  section {
    padding: 3rem 1.5rem;
  }
}

/* Mobile devices (500px and below) */
@media (max-width: 500px) {
  .navbar {
    padding: 1rem;
  }

  .navbar .logo {
    font-size: 1.3rem;
  }

  .nav-links {
    width: 85%;
    max-width: 280px;
    padding: 1.5rem;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .hero {
    min-height: 60vh;
    padding: 2rem 1rem;
  }

  .about {
    padding: 2rem 1rem;
  }

  .hero-image img {
    width: 90%;
    max-width: 280px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-card img {
    height: 220px;
  }

  .signup-container {
    width: 95%;
    padding: 1.5rem;
  }

  .profile-detail {
    padding: 2rem 1rem;
  }

  .profile-detail img {
    width: 180px;
    height: 180px;
  }

  .footer {
    padding: 1.5rem 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .announcements .card {
    padding: 1rem;
    margin: 1.5rem auto;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
  }
}

/* Very small devices (350px and below) */
@media (max-width: 350px) {
  .navbar {
    padding: 0.8rem;
  }

  .navbar .logo {
    font-size: 1.1rem;
  }

  .nav-links {
    width: 90%;
  }

  .profile-card img {
    height: 180px;
  }

  .profile-detail img {
    width: 150px;
    height: 150px;
  }

  .signup-container {
    padding: 1rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Key improvements for Android compatibility */

/* Hamburger Menu Button - Enhanced for Android */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
  position: relative;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on Android */
  touch-action: manipulation; /* Improve touch response */
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
  display: block; /* Ensure spans are visible */
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
  background: #fff;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background: #fff;
}

/* Mobile Navigation - Enhanced */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
    flex-wrap: nowrap;
    position: relative;
  }

  /* Show hamburger menu */
  .menu-toggle {
    display: flex;
    order: 2; /* Ensure it's on the right */
  }

  /* Mobile Navigation - Slide from Right */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 350px;
    height: 100vh;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    padding: 2rem;
    z-index: 1000;
    overflow-y: auto; /* Allow scrolling if content is too tall */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
  }

  .nav-links.active li {
    animation: slideIn 0.5s forwards;
  }

  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }
  .nav-links.active li:nth-child(7) { animation-delay: 0.4s; }
  .nav-links.active li:nth-child(8) { animation-delay: 0.45s; }

  .nav-links a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Overlay when menu is open - Enhanced */
body.menu-open::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

body.menu-open {
  overflow: hidden;
  position: fixed; /* Prevent background scrolling on all devices */
  width: 100%;
}

/* Animation for slideIn */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Additional fixes for small Android devices */
@media (max-width: 500px) {
  .menu-toggle {
    padding: 0.4rem;
  }

  .menu-toggle span {
    width: 25px;
    height: 2.5px;
    margin: 3.5px 0;
  }

  .nav-links {
    width: 85%;
    max-width: 280px;
    padding: 1.5rem;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}
/* === ENHANCED ABOUT SECTION === */
.about-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Banner */
.about-hero {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInDown 1s ease;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.about-hero h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1e90ff, #0066cc);
  border-radius: 2px;
}

.about-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #555;
  max-width: 700px;
  margin: 1.5rem auto 0;
  font-weight: 300;
}

/* Main Content Grid */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

.about-text {
  animation: fadeInLeft 1s ease;
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #0066cc;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-left: 1rem;
}

.about-text h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 60%;
  background: linear-gradient(180deg, #1e90ff, #0066cc);
  border-radius: 3px;
}

.about-text h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #333;
  margin: 2rem 0 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-text h3::before {
  content: "📍";
  font-size: 1.2em;
}

.about-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  text-align: justify;
}

.about-text .highlight {
  background: linear-gradient(120deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
  margin: 1.5rem 0;
}

.about-text .highlight p {
  margin-bottom: 0.8rem;
}

.about-text .highlight p:last-child {
  margin-bottom: 0;
}

/* Image Gallery */
.about-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInRight 1s ease;
}

.image-main {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 102, 204, 0.25);
}

.image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-main:hover img {
  transform: scale(1.05);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.image-item {
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-item:hover img {
  transform: scale(1.1);
}

/* Mission Section */
.mission-section {
  background: linear-gradient(135deg, #0066cc 0%, #1e90ff 100%);
  padding: 3rem 2rem;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
  animation: fadeInUp 1s ease;
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.mission-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.mission-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.mission-item h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.mission-item p {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.6;
  opacity: 0.95;
}

/* Impact Stats */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease;
}

.stat-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #555;
  font-weight: 500;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-images {
    order: -1;
  }

  .image-main {
    height: 350px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 3rem 1.5rem;
  }

  .about-hero {
    margin-bottom: 3rem;
  }

  .image-main {
    height: 300px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-item {
    height: 220px;
  }

  .mission-section {
    padding: 2rem 1.5rem;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 500px) {
  .about-section {
    padding: 2rem 1rem;
  }

  .about-hero h1::after {
    width: 60px;
    height: 3px;
  }

  .image-main {
    height: 250px;
  }

  .image-item {
    height: 180px;
  }

  .mission-section {
    padding: 1.5rem 1rem;
  }

  .impact-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  z-index: 1001;
}

.navbar .logo span {
  color: #1e90ff;
}

/* Hamburger Menu Button - Enhanced for ALL devices */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
  display: block;
  pointer-events: none;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
  background: #fff;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background: #fff;
}

/* Desktop Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links .active {
  color: #1e90ff;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === RESPONSIVE DESIGN === */

/* Tablets and below (768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
    flex-wrap: nowrap;
    position: sticky;
  }

  /* Show hamburger menu */
  .menu-toggle {
    display: flex;
    order: 2;
  }

  /* Mobile Navigation - Slide from Right */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 350px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    padding: 2rem;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
  }

  .nav-links.active li {
    animation: slideIn 0.5s forwards;
  }

  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }
  .nav-links.active li:nth-child(7) { animation-delay: 0.4s; }
  .nav-links.active li:nth-child(8) { animation-delay: 0.45s; }

  .nav-links a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Overlay when menu is open */
body.menu-open::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
}

/* Mobile devices (500px and below) */
@media (max-width: 500px) {
  .navbar {
    padding: 1rem;
  }

  .navbar .logo {
    font-size: 1.3rem;
  }

  .menu-toggle {
    padding: 0.4rem;
  }

  .menu-toggle span {
    width: 25px;
    height: 2.5px;
    margin: 3.5px 0;
  }

  .nav-links {
    width: 85%;
    max-width: 280px;
    padding: 1.5rem;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}

/* Very small devices (350px and below) */
@media (max-width: 350px) {
  .navbar {
    padding: 0.8rem;
  }

  .navbar .logo {
    font-size: 1.1rem;
  }

  .nav-links {
    width: 90%;
  }
}