.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
  gap: 28px;
}

/* Nav */
.navWrap {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}
.nav {
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px; /* taller so we can add gap */
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

/* Active state → turns into X */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.menu a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0; /* gives space for underline */
  transition: color 0.3s ease;
}

/* Hover text color */
.menu a:hover {
  color: var(--brand-2);
}

/* Underline animation */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--brand-2);
  transition: width 0.3s ease;
}

/* Expand underline on hover */
.menu a:hover::after {
  width: 100%;
}

/* Active page */
.menu a.active {
  font-weight: 700;
  color: rgb(10, 0, 200); /* deep blue to match logo */
}

.menu a.active::after {
  width: 100%; /* underline stays visible for active link */
  background: rgb(10, 0, 200);
}
.brand img {
  height: 28px;
  width: auto;
}
.brandName {
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
  font-style: italic;
  font-size: 20px;
  color: rgb(10, 0, 200);
  margin-left: 8px; /* spacing after logo image */
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: relative;
    z-index: 1002; /* highest: clickable above everything */
  }

  /* Center logo in nav */
  .brand {
    margin: 0 auto;
    position: relative;
    z-index: 1001;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* full width */
    height: 100vh; /* full height */
    background: #ffffff; /* solid white */
    padding: 100px 40px;
    text-align: left;

    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999; /* below logo + hamburger */
  }

  .menu.active {
    transform: translateX(0);
  }

  .menu a {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* animate each link with delay */
  .menu.active a {
    opacity: 1;
    transform: translateX(0);
  }
  .menu a:nth-child(1) {
    transition-delay: 0.1s;
  }
  .menu a:nth-child(2) {
    transition-delay: 0.2s;
  }
  .menu a:nth-child(3) {
    transition-delay: 0.3s;
  }
  .menu a:nth-child(4) {
    transition-delay: 0.4s;
  }

  .menu a.active {
    color: rgb(10, 0, 200); /* theme blue */
  }

  .menu a:hover {
    color: #4f8ef9;
  }

  /* ✅ Keep nav sticky on mobile */
  .navWrap {
    position: fixed;

    top: 0;
    z-index: 1000; /* sits above content, below brand/hamburger */
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(79, 143, 249, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Hero */
.hero {
  position: relative;
  padding: 60px 0 40px;
  text-align: center;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero-logo {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0s;
}

.hero-tagline {
  font-family: "Quicksand", sans-serif; /* Quicksand Light */
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #205819; /* very light blue */
  margin-top: 8px;
  margin-bottom: 24px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s; /* after logo */
}

.hero-tagline sup {
  font-size: 12px;
  vertical-align: super;
}

.hero h1 {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1s; /* after tagline */
}

.hero .lead:nth-of-type(1) {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.5s;
}

.hero .lead:nth-of-type(2) {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 2s;
}

.hero .ctaRow {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 2.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.6;
  background: radial-gradient(
      420px 220px at 50% 0%,
      rgba(59, 130, 246, 0.45),
      transparent 60%
    ),
    radial-gradient(
      400px 240px at 70% 20%,
      rgba(125, 211, 252, 0.35),
      transparent 60%
    );
  z-index: 0;
}

/* Lines container */
/* Lines container */
.lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1; /* above glow, below content */
  pointer-events: none;
}

/* Each line */
.lines span {
  position: absolute;
  top: var(--y, 50%);
  left: -50px;
  width: 60px; /* short line length */
  height: 1px; /* very thin */
  background: linear-gradient(90deg, rgba(88, 181, 255, 0.8), transparent);
  animation: moveLine linear infinite;
  animation-duration: var(--d, 8s);
  opacity: 0.6;
}

/* Animation: left → right */
@keyframes moveLine {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(110vw);
    opacity: 0;
  }
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: 0.1px;
}
.lead {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
}
.ctaRow {
  margin-top: 26px;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--muted);
}

/* Sections */
.section {
  padding: 56px 0;
}
.section h2 {
  font-size: clamp(22px, 3.2vw, 36px);
  margin: 0 0 18px;
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 4px 0 8px;
}
.badge {
  font-family: "Quicksand", sans-serif; /* Quicksand Light */
  font-weight: 300; /* Light weight */
  font-size: 28px; /* Bigger, modern text */
  letter-spacing: 0.5px;
  text-transform: uppercase; /* optional */

  /* Gradient text */
  background: linear-gradient(90deg, #011d34, #17678c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0;
  border-radius: 0;
  border: none;
  margin-bottom: 8px;
}
.muted {
  color: var(--muted);
}

.badge:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Footer */
footer {
  margin-top: 64px;
  padding: 28px 0 60px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.35)
  );
}
.footRow {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.legal {
  font-size: 14px;
  color: var(--muted);
}

/* Contact Form */
form input,
form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}
form button {
  cursor: pointer;
}

@media (max-width: 760px) {
  .footRow {
    flex-direction: column;
    align-items: flex-start;
  }
}
.icon-gradient {
  stroke: url(#grad1);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.icon-gradient:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.6));
}
svg defs {
  display: block;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
#values .cards > * {
  will-change: transform, opacity;
}
#values .cards > *:nth-child(1) {
  transition-delay: 0ms;
}
#values .cards > *:nth-child(2) {
  transition-delay: 120ms;
}
#values .cards > *:nth-child(3) {
  transition-delay: 240ms;
}

/* Modal backdrop - hidden by default */
.contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6); /* semi-transparent dark overlay */
  backdrop-filter: blur(12px); /* simple blur */
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Glass card */
.contact-card {
  background: url("./images/webpImages/formBackground6.webp") center/cover
      no-repeat,
    rgba(255, 255, 255, 0.85); /* card-like glass effect */
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 40px 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 50px rgba(2, 8, 23, 0.25);
  text-align: center;
}

/* Form fields */
.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgb(18, 146, 219);
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

.contact-button {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  transition: all 0.3s ease;
}

.btn-blue {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  color: #1f0505; /* white text for better contrast */
  background: rgba(88, 181, 255, 0.25); /* semi-transparent blue */
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px; /* moderate, less pill-shaped */
  border: 1px solid rgba(88, 181, 255, 0.4);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  transition: all 0.3s ease;
}

.btn-blue:hover {
  background: rgba(88, 181, 255, 0.35);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.btn-glass {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  #about {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(
      to top,
      rgba(194, 219, 215, 1) 0%,
      rgba(194, 219, 215, 0) 100%
    );
  }

  #about .container {
    grid-template-columns: 1fr; /* Stack text + card vertically */
    gap: 24px;
    padding: 0; /* No padding */
    margin: 0; /* Remove any margins */
    width: 100%; /* Ensure container takes full width */
    box-sizing: border-box; /* Prevent padding/margin issues */
  }

  /* Fix for image on mobile */
  #about .about-bg {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important; /* Full width for the image */
    height: 240px !important; /* Adjust height for mobile */
    background: url("images/webpImages/userd.webp") center/cover no-repeat !important; /* Explicitly set background */
    order: -1; /* Put image first (above the text) */
    display: block !important; /* Ensure the div is visible */
    z-index: 1; /* Ensure it’s not hidden behind other elements */
  }

  /* Text section (below the image) should take up 100% width */
  #about .container > div {
    width: 100% !important; /* Force full width */
    max-width: 100%; /* Prevent overflow */
    margin: 0; /* Remove any margins */
    padding: 16px; /* Add padding for better spacing */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    position: relative; /* Ensure text is not positioned over the image */
  }

  #about .about-overlay {
    display: none; /* No overlay on small screens */
  }

  #about h2,
  #about p,
  #about .card {
    text-align: left; /* Left-align text on mobile */
  }

  #about .btn-glass {
    width: 100%; /* Button stretches */
    text-align: center;
  }
}

/* Desktop (default) styles */
@media (min-width: 769px) {
  #about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 36px;
    position: relative;
    z-index: 2;
  }

  #about .about-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: url("images/webpImages/userd.webp") center/cover no-repeat;
    z-index: 1;
  }

  #about .about-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100px;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(194, 219, 215, 1) 0%,
      rgba(194, 219, 215, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
  }

  #about {
    position: relative;
    overflow: hidden;
    background: rgb(194, 219, 215);
  }
}

.events-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
}

.events-grid .card {
  min-height: 220px;
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile layout */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .events-grid .card {
    min-height: auto;
  }
}

.thank-you-modal {
  display: flex;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.thank-you-modal.show {
  opacity: 1;
  visibility: visible;
}

.thank-you-content {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  backdrop-filter: blur(10px);
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.thank-you-modal.show .thank-you-content {
  transform: scale(1);
}
