
   :root {
      --black: #0B0B0B;
      --gold: #D4AF37;
      --silver: #C0C0C0;
      --offwhite: #EDEDED;
      --bg: #0B0B0B;
      --text: #F5F5F5;
      --muted: #B0B0B0;
      --card: rgba(255, 255, 255, 0.06);
      --card-border: rgba(255, 255, 255, 0.15);
      --shadow: 0 24px 60px rgba(0,0,0,0.5);
      --radius: 16px;
      --radius-sm: 12px;
      --radius-lg: 24px;
      --max: 1200px;
      --ease: cubic-bezier(0.2, 0.7, 0, 1);
    }
#particles {
  position: fixed;       /* full-page background */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;           /* behind everything */
  pointer-events: none;  /* clicks go through */
  background: transparent;
}

    /* Reset & Base */
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    h1, h2, h3 {
      font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
      letter-spacing: 0.3px;
      margin: 0 0 12px 0;
      color: var(--text);
    }
    p { color: #D9D9D9; margin: 0 0 16px 0; }
    a { color: var(--gold); text-decoration: none; }
    img { display: block; max-width: 100%; height: auto; }

    /* Layout helpers */
    .container {
      width: 100%;
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 24px;
    }
    section {
      position: relative;
      padding: 96px 0;
    }
    .divider {
      height: 1px;
      width: 100%;
      background: linear-gradient(to right, transparent, rgba(212,175,55,0.2), transparent);
      margin: 48px 0 0 0;
    }

    /* Navigation */
    header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      background: linear-gradient(to bottom, rgba(11,11,11,0.85), rgba(11,11,11,0.4));
      backdrop-filter: saturate(120%) blur(8px);
      border-bottom: 1px solid rgba(192,192,192,0.15);
    }
    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .brand-mark {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 2px solid var(--gold);
      position: relative;
      box-shadow: 0 0 24px rgba(212,175,55,0.25) inset;
    }
    .brand-mark::after {
      content: '';
      position: absolute;
      inset: 8px;
      border-radius: 50%;
      border: 1px solid rgba(192,192,192,0.5);
    }
    .brand h3 {
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
    }
    nav ul {
      list-style: none;
      display: flex;
      gap: 24px;
      margin: 0; padding: 0;
    }
    nav a {
      color: var(--offwhite);
      font-weight: 500;
      opacity: 0.85;
      transition: opacity .2s var(--ease), color .2s var(--ease);
    }
    nav a:hover { opacity: 1; color: var(--gold); }
    .cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: linear-gradient(180deg, #E1C05B, var(--gold));
      color: #121212;
      padding: 12px 18px;
      border-radius: 12px;
      font-weight: 700;
      border: 1px solid rgba(0,0,0,0.6);
      box-shadow: 0 6px 18px rgba(212,175,55,0.25);
      transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    }
    .cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(212,175,55,0.35); }
    .cta:active { transform: translateY(0); }

    /* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(212,175,55,0.07), transparent 60%),
   
linear-gradient(180deg, transparent, transparent 60%, #0B0B0B 100%);
  position: relative;
  overflow: hidden;
}

    .hero canvas {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      opacity: 0.25;
    }
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 96px 0;
}

    .hero h1 {
      font-size: clamp(40px, 6vw, 72px);
      font-weight: 700;
      background: linear-gradient(180deg, #FFF, #D8D8D8);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: 0.6px;
      margin-bottom: 12px;
      opacity: 0; transform: translateY(12px);
      animation: fadeUp .9s var(--ease) .2s forwards;
    }
    .hero p.sub {
      font-size: clamp(16px, 2.2vw, 22px);
      color: var(--silver);
      margin-bottom: 28px;
      opacity: 0; transform: translateY(12px);
      animation: fadeUp .9s var(--ease) .35s forwards;
    }
    .hero-actions {
      display: inline-flex;
      gap: 14px;
      opacity: 0; transform: translateY(12px);
      animation: fadeUp .9s var(--ease) .5s forwards;
    }
    .btn-outline {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border: 1px solid rgba(192,192,192,0.35);
      color: var(--offwhite);
      padding: 12px 18px;
      border-radius: 12px;
      font-weight: 600;
      backdrop-filter: blur(6px);
      background: rgba(255,255,255,0.03);
      transition: border-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
    }
    .btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }

    /* Section headers */
    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 36px;
    }
    .section-head h2 {
      font-size: clamp(28px, 3.6vw, 40px);
    }
    .section-head .rule {
      flex: 1;
      height: 1px;
      background: linear-gradient(to right, rgba(212,175,55,0.35), transparent);
    }
    .section-head .accent {
      color: var(--silver);
      font-weight: 500;
    }

    /* About */
    .about-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 36px;
    }
    .about-card {
      background: var(--card);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: var(--shadow);
      opacity: 0; transform: translateY(12px);
      transition: transform .6s var(--ease), opacity .6s var(--ease);
    }
    .about-card.in-view { opacity: 1; transform: translateY(0); }
    .about-card h3 { color: var(--gold); }
    .about-card .sep {
      height: 2px;
      width: 72px;
      background: linear-gradient(to right, var(--gold), rgba(212,175,55,0.2));
      margin: 12px 0 18px;
    }

    /* Committees */
    .cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .card {
      position: relative;
      background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
      border: 1px solid rgba(192,192,192,0.2);
      border-radius: var(--radius);
      backdrop-filter: blur(8px);
      padding: 22px;
      overflow: hidden;
      transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease);
    }
    .card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      box-shadow: 0 0 0 0 rgba(212,175,55,0.0);
      transition: box-shadow .25s var(--ease);
      pointer-events: none;
    }
    .card:hover {
      transform: translateY(-4px);
      border-color: rgba(212,175,55,0.45);
      box-shadow: 0 12px 28px rgba(0,0,0,0.45);
    }
    .card:hover::before {
      box-shadow: 0 0 0 2px rgba(212,175,55,0.6);
    }
    .card h3 { margin-bottom: 6px; }
    .meta {
      display: flex; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 10px;
    }
    .badge {
      display: inline-block;
      font-size: 12px;
      color: #121212;
      background: linear-gradient(180deg, #E1C05B, var(--gold));
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(0,0,0,0.6);
    }

    /* Executive Board */
    .board {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }
    .board-card {
      background: var(--card);
      border: 1px solid var(--card-border);
      border-radius: var(--radius);
      padding: 22px;
      text-align: center;
      transition: transform .4s var(--ease), opacity .5s var(--ease);
      opacity: 0; transform: translateY(10px);
    }
    .board-card.in-view { opacity: 1; transform: translateY(0); }
    .avatar {
      width: 96px; height: 96px; margin: 0 auto 12px;
      border-radius: 50%;
      border: 2px solid var(--gold);
      overflow: hidden;
      box-shadow: 0 0 0 6px rgba(212,175,55,0.12);
      background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    }
    .role { color: var(--silver); font-weight: 600; margin-bottom: 6px; }
    .name { font-weight: 700; }

    /* Timeline */
    .timeline {
      position: relative;
      margin: 12px 0 0;
      padding-left: 28px;
    }
    .timeline::before {
      content: '';
      position: absolute;
      left: 12px; top: 0; bottom: 0;
      width: 2px;
      background: linear-gradient(180deg, var(--silver), rgba(192,192,192,0.2));
      opacity: 0.8;
    }
    .tl-item {
      position: relative;
      margin-bottom: 24px;
      opacity: 0; transform: translateY(10px);
      transition: transform .6s var(--ease), opacity .6s var(--ease);
    }
    .tl-item.in-view { opacity: 1; transform: translateY(0); }
    .dot {
      position: absolute;
      left: -3px; top: 4px;
      width: 10px; height: 10px;
      border-radius: 50%;
      background: var(--gold);
      box-shadow: 0 0 0 4px rgba(212,175,55,0.2);
    }
    .tl-card {
      background: var(--card);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-sm);
      padding: 16px 18px;
    }
    .tl-time { color: var(--silver); font-weight: 600; margin-bottom: 6px; }

    /* Registration form */
.form {
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Help text */
#regHelp {
  margin-bottom: 24px;
  color: #AEAEAE;
  font-size: 14px;
}

/* 3x3 grid */
.input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

/* Inputs */
.input-grid input {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
}

.input-grid input::placeholder {
  color: #9a9a9a;
}

/* Submit below & centered */
.submit-wrapper {
  display: flex;
  justify-content: center;
}

/* Submit button */
.submit-btn {
  padding: 16px 80px;
  font-size: 18px;
  background: linear-gradient(180deg, #E1C05B, #D4AF37);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(212,175,55,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(212,175,55,0.55);
}

/* Responsive */
@media (max-width: 900px) {
  .input-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .input-grid {
    grid-template-columns: 1fr;
  }
}

    input, select, textarea {
      width: 100%;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid rgba(192,192,192,0.25);
      background: rgba(255,255,255,0.04);
      color: var(--offwhite);
      outline: none;
      transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    }
    input::placeholder { color: #9B9B9B; }
    input:focus, select:focus, textarea:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
      background: rgba(255,255,255,0.06);
    }
    .submit-wrap {
      grid-column: 1 / -1;
      display: flex; justify-content: flex-end;
    }
    .btn-gold {
      position: relative;
      overflow: hidden;
      appearance: none;
      border: none;
      cursor: pointer;
      padding: 14px 22px;
      border-radius: 12px;
      font-weight: 700;
      color: #121212;
      background: linear-gradient(180deg, #E1C05B, var(--gold));
      box-shadow: 0 10px 24px rgba(212,175,55,0.35);
      transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    }
    .btn-gold:hover { transform: translateY(-1px); }
    .btn-gold:active { transform: translateY(0); }
    .ripple {
      position: absolute;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      width: 10px; height: 10px;
      background: rgba(0,0,0,0.2);
      animation: ripple .6s ease-out forwards;
    }
    @keyframes ripple {
      from { opacity: 0.35; }
      to { width: 300px; height: 300px; opacity: 0; }
    }
    .success {
      margin-top: 12px;
      color: var(--gold);
      font-weight: 600;
      display: none;
    }

    /* Why IARE MUN */
    .why-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }
    .why-card {
      background: var(--card);
      border: 1px solid var(--card-border);
      border-radius: var(--radius);
      padding: 22px;
      text-align: center;
      transition: transform .3s var(--ease), opacity .4s var(--ease);
      opacity: 0; transform: translateY(8px);
    }
    .why-card.in-view { opacity: 1; transform: translateY(0); }
    .ico {
      width: 56px; height: 56px; margin: 0 auto 10px;
      border-radius: 12px;
      border: 1px solid rgba(212,175,55,0.45);
      background: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.25), transparent 60%);
      display: grid; place-items: center;
    }
    .counter { font-size: 20px; font-weight: 700; color: var(--gold); margin-top: 8px; }

    /* Gallery */
    .gallery {
      column-count: 3;
      column-gap: 16px;
    }
    .gallery-item {
      break-inside: avoid;
      margin-bottom: 16px;
      border-radius: var(--radius);
      overflow: hidden;
      position: relative;
      box-shadow: 0 12px 28px rgba(0,0,0,0.45);
      opacity: 0; transform: translateY(12px);
      transition: transform .3s var(--ease), opacity .5s var(--ease);
    }
    .gallery-item.in-view { opacity: 1; transform: translateY(0); }
    .gallery-item img { width: 100%; height: auto; display: block; }
    .gallery-item::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(212,175,55,0.0), rgba(212,175,55,0.18));
      opacity: 0; transition: opacity .3s var(--ease);
    }
    .gallery-item:hover { transform: translateY(-3px); }
    .gallery-item:hover::after { opacity: 1; }

    /* Contact & Footer */
    .contact {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 24px;
    }
    .contact-card {
      background: var(--card);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 24px;
    }
    .social {
      display: flex; gap: 12px; margin-top: 12px;
    }
    .social a {
      width: 40px; height: 40px; display: grid; place-items: center;
      border: 1px solid rgba(192,192,192,0.35);
      border-radius: 10px;
      color: var(--silver);
      transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
    }
    .social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

    footer {
      border-top: 1px solid rgba(192,192,192,0.15);
      background: #0A0A0A;
      color: var(--silver);
      padding: 24px 0;
    }
    .copyright { font-size: 14px; text-align: center; }

    /* Responsive */
    @media (max-width: 1000px) {
      .cards { grid-template-columns: repeat(2, 1fr); }
      .board { grid-template-columns: repeat(2, 1fr); }
      .why-grid { grid-template-columns: repeat(2, 1fr); }
      .about-grid, .contact { grid-template-columns: 1fr; }
      nav ul { display: none; } /* simplify nav on small screens */
    }
    @media (max-width: 600px) {
      section { padding: 72px 0; }
      .cards { grid-template-columns: 1fr; }
      .gallery { column-count: 1; }
      .hero h1 { font-size: 38px; }
    }

  .grid-heading {
  grid-column: span 2;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: gold;
  font-size: 14px;
  border-left: 4px solid gold;
  padding-left: 10px;
}

/* Form Container */
.form {
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* Help Text */
#regHelp {
  margin-bottom: 20px;
  color: #AEAEAE;
  font-size: 14px;
}

/* Grid Layout */
.input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 35px;
}

/* Inputs */
.input-grid input {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  outline: none;
}

.input-grid input::placeholder {
  color: #9a9a9a;
}

/* Submit Button */
.submit-wrapper {
  text-align: center;
}

.submit-btn {
  padding: 16px 70px;
  font-size: 18px;
  background-color: gold;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255,215,0,0.4);
}

/* Container grid */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns by default */
  gap: 15px;
}

/* Headings span full width */
.input-grid .grid-heading {
  grid-column: 1 / -1;
  font-weight: bold;
  color: #FFD700; /* Yellow for visibility */
  margin-top: 15px;
  margin-bottom: 5px;
}

/* Inputs full width */
.input-grid input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* For mobile devices */
@media screen and (max-width: 600px) {
  .input-grid {
    grid-template-columns: 1fr; /* Single column on small screens */
  }
}
/* Flex layout for navbar */
/* Navbar container */
.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px; /* reduce side padding for more space */
  background-color: transparent;
  flex-wrap: wrap; /* prevent wrapping issues */
}

/* Brand styling */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0; /* prevent logo from shrinking */
}

.brand-logo {
  height: 40px;
  display: block;
}

.brand h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  line-height: 40px;
  white-space: nowrap; /* prevent text wrapping */
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 20px; /* reduce gap to fit smaller screens */
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap; /* prevent wrapping */
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap; /* prevent wrapping */
}

.nav-links li a:hover {
  color: #d4af37;
}

/* Contact button */
.nav-links li a.cta {
  background-color: #d4af37;
  color: #0B0B0B;
  padding: 6px 12px; /* slightly smaller */
  border-radius: 8px;
  font-weight: bold;
}

.nav-links li a.cta:hover {
  background-color: #b8952e;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 4px; /* smaller spacing */
}

.hamburger div {
  width: 20px; /* smaller width */
  height: 2.5px; /* smaller height */
  background-color: #fff;
  border-radius: 2px;
}

/* Responsive rules */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px; /* adjust based on navbar height */
    right: 0;
    background-color: #0B0B0B;
    flex-direction: column;
    width: 180px; /* slightly smaller */
    display: none;
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    gap: 0;
  }

  .nav-links li {
    justify-content: center;
    padding: 8px 0;
  }

  .hamburger {
    display: flex; /* show hamburger on mobile */
  }

  .nav-links.active {
    display: flex;
  }
}

/* Hide hamburger on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger div {
  width: 26px;
  height: 3px;
  background: #FFD700;
  transition: all 0.3s ease;
}

/* Mobile Nav */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    background: rgba(11, 11, 11, 0.95) ;
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }
}

/* Hamburger animation */
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
