/* ========== BASE & RESET ========== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* iOS Safari fix: must be on html, not just body */
  max-width: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  overflow-x: hidden;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', 'Montserrat', sans-serif;
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ========== LOADING SCREEN ========== */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0A1628 0%, #122a48 30%, #0A1628 60%, #142840 100%);
  background-size: 400% 400%;
  animation: loader-bg-shift 6s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s ease;
}

@keyframes loader-bg-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.loader-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  position: relative;
}

/* Logo Container */
.loader-logo-container {
  width: 180px;
  height: 180px;
  margin: 0 auto 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glow ring behind logo */
.loader-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 208, 184, 0.15) 0%, rgba(26, 143, 158, 0.08) 50%, transparent 70%);
  animation: glow-pulse 2.5s ease-in-out infinite;
  animation-delay: 1.8s;
  opacity: 0;
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
    box-shadow: 0 0 30px rgba(77, 208, 184, 0.15), 0 0 60px rgba(26, 143, 158, 0.08);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(77, 208, 184, 0.3), 0 0 100px rgba(26, 143, 158, 0.15);
  }
}

/* Spinning logo */
.loader-logo-spinner {
  position: relative;
  z-index: 2;
  animation: logo-spin-in 2.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.loader-logo-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(77, 208, 184, 0.3));
}

@keyframes logo-spin-in {
  0% {
    opacity: 0;
    transform: rotate(-720deg) scale(0.1);
    filter: blur(8px);
  }

  20% {
    opacity: 0.6;
    filter: blur(3px);
  }

  50% {
    opacity: 0.9;
    transform: rotate(-90deg) scale(0.95);
    filter: blur(0);
  }

  70% {
    transform: rotate(20deg) scale(1.08);
  }

  85% {
    transform: rotate(-8deg) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    filter: blur(0);
  }
}

/* Loader Title */
.loader-title {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(20px);
  animation: text-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 2.2s;
}

/* Loader Subtitle */
.loader-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: text-reveal 0.6s ease forwards;
  animation-delay: 2.6s;
}

@keyframes text-reveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Bar */
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  opacity: 0;
  animation: text-reveal 0.4s ease forwards;
  animation-delay: 2.8s;
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1B5E7E, #4DD0B8, #81C784);
  border-radius: 10px;
  animation: loader-progress 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loader-progress {
  0% {
    width: 0;
  }

  30% {
    width: 25%;
  }

  60% {
    width: 65%;
  }

  90% {
    width: 90%;
  }

  100% {
    width: 100%;
  }
}

/* ========== NAVBAR LOGO ========== */
.navbar-logo-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
  animation: navbar-roll 10s ease-in-out infinite;
  animation-delay: 5s;
}

@keyframes navbar-roll {

  0%,
  86% {
    transform: rotate(0deg);
  }

  90% {
    transform: rotate(360deg);
  }

  93% {
    transform: rotate(352deg);
  }

  96%,
  100% {
    transform: rotate(360deg);
  }
}

/* ========== NAVBAR ========== */
#navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 1rem 0;
}

#navbar.scrolled {
  background: transparent;
  box-shadow: none;
  padding-top: 0.65rem;
}

#navbar > .max-w-7xl {
  max-width: 1380px;
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  border: 1px solid rgba(25, 33, 38, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 36px rgba(8, 20, 28, 0.13), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  color: #192126;
}

#navbar > .max-w-7xl > .flex {
  min-height: 3.25rem;
}

.nav-link {
  color: #344047;
  font-weight: 600;
  text-shadow: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  position: relative;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-link:hover {
  color: #192126;
  background: #eef7f2;
  text-shadow: none;
}

#navbar.scrolled .nav-link {
  color: #344047;
  text-shadow: none;
}

#navbar.scrolled .nav-link:hover {
  color: #192126;
  background-color: #eef7f2;
}

.nav-link.active-link,
.nav-link[aria-current="page"] {
  color: #192126;
  background: #eef7f2;
  border-color: #ccebdd;
  text-shadow: none;
}

#navbar .navbar-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dff4e9;
  border: 1px solid #bfe5d3;
  box-shadow: 0 3px 8px rgba(48, 106, 77, 0.12);
}

#navbar .navbar-logo-img {
  padding: 0.2rem;
}

#navbar .nav-brand-text {
  color: #192126;
  letter-spacing: 0.11em;
  text-shadow: none;
}

#navbar .nav-brand-text::after {
  content: 'CONFERENCE';
  display: block;
  color: #758078;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  margin-top: 0.2rem;
}

#navbar.scrolled .nav-brand-text::after {
  color: #758078;
}

#navbar .group > div {
  border-radius: 0.85rem;
  box-shadow: 0 18px 45px rgba(3, 12, 24, 0.18);
}

#mobile-menu {
  margin-top: 0.55rem;
  border: 1px solid rgba(25, 33, 38, 0.1);
  border-radius: 1.35rem;
  background: #fffdf8;
  box-shadow: 0 18px 40px rgba(8, 20, 28, 0.16);
}

#mobile-menu a {
  color: #344047;
}

#mobile-menu a:hover {
  color: #192126;
  background-color: #eef7f2;
}

#mobile-menu-btn {
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

#mobile-menu-btn[aria-expanded="true"] {
  background-color: #eef7f2;
  border-color: #ccebdd;
  color: #192126;
  transform: rotate(90deg);
}

/* Nav brand text */
.nav-brand-text {
  color: #192126;
  text-shadow: none;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

#navbar.scrolled .nav-brand-text {
  color: #192126;
  text-shadow: none;
}

/* Mobile menu button */
#navbar.scrolled #mobile-menu-btn {
  background-color: #f2f5f1;
  border-color: rgba(25, 33, 38, 0.12);
  color: #192126;
}

/* The navbar has its own navigation; keep the footer contact section intact. */
#navbar a[href$="#contact"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6b4a;
  color: #192126;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  gap: 0.65rem;
  padding-right: 1rem;
}

#navbar a[href$="#contact"]::after {
  content: '\2197';
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

#navbar a[href$="#contact"]:hover {
  background: #ff8367;
  color: #192126;
  transform: translateY(-1px);
}

#navbar a[href$="#contact"]:hover::after {
  transform: translate(2px, -2px);
}

/* Keep the full desktop navigation inside the viewport. */
@media (min-width: 1280px) {
  #navbar > .max-w-7xl {
    max-width: none;
  }

  #navbar > .max-w-7xl > .flex {
    gap: 1rem;
  }

  #navbar > .max-w-7xl > .flex > .hidden.lg\:flex {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    gap: 0;
    overflow: visible;
  }

  #navbar .nav-link {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    font-size: 0.76rem;
  }

  #navbar .nav-link.flex {
    gap: 0.35rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #navbar > .max-w-7xl {
    max-width: none;
  }

  #navbar .nav-link {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    font-size: 0.62rem;
  }

  #navbar > .max-w-7xl > .flex > .hidden.lg\:flex {
    gap: 0;
  }
}

@media (max-width: 1023px) {
  #navbar {
    padding: 0.65rem 0.75rem 0;
  }

  #navbar > .max-w-7xl {
    padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  }

  #navbar .nav-brand-text::after {
    display: none;
  }
}

/* Supaste-inspired compact island navigation */
@media (min-width: 1024px) {
  #navbar {
    padding: 0;
  }

  #navbar > .max-w-7xl {
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 0.7rem 0.7rem 0.7rem 0.85rem;
    border: 0;
    border-radius: 0 0 1.35rem 1.35rem;
    background: #050505;
    box-shadow: 0 12px 0 rgba(0, 0, 0, 0.08), 0 18px 35px rgba(0, 0, 0, 0.22);
    color: #fff;
  }

  #navbar > .max-w-7xl > .flex {
    min-height: 3.15rem;
    gap: 1rem;
  }

  #navbar .navbar-logo-wrap {
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 0.65rem;
    background: linear-gradient(145deg, #80e8ff 0%, #2882ff 52%, #1240d8 100%);
    box-shadow: 0 4px 10px rgba(23, 108, 255, 0.35);
  }

  #navbar .navbar-logo-img {
    padding: 0.24rem;
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  }

  #navbar .nav-brand-text {
    color: #f7f7f7;
    font-size: 0.98rem;
    letter-spacing: 0;
  }

  #navbar .nav-brand-text::after {
    display: none;
  }

  #navbar > .max-w-7xl > .flex > .hidden.lg\:flex {
    gap: 0.12rem;
  }

  #navbar .nav-link {
    color: rgba(255, 255, 255, 0.62);
    padding: 0.65rem 0.62rem;
    border: 0;
    border-radius: 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
  }

  #navbar .nav-link:hover,
  #navbar .nav-link.active-link,
  #navbar .nav-link[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
  }

  #navbar a[href$="#contact"] {
    margin-left: 0.35rem;
    padding: 0.72rem 1.1rem;
    border-radius: 0.7rem;
    background: #fff;
    color: #111;
    font-size: 0.78rem;
    font-weight: 700;
  }

  #navbar a[href$="#contact"]:hover {
    background: #e8e8e8;
    color: #111;
  }

  #navbar .group > div {
    top: calc(100% + 0.8rem);
    border: 1px solid #252525;
    border-radius: 0.85rem;
    background: #0b0b0b;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  }

  #navbar .group > div a {
    color: rgba(255, 255, 255, 0.72);
  }

  #navbar .group > div a:hover {
    color: #fff;
    background: #1d1d1d;
  }
}

@media (max-width: 1023px) {
  #navbar > .max-w-7xl {
    border-radius: 0 0 1.2rem 1.2rem;
    background: #050505;
    color: #fff;
  }

  #navbar .nav-brand-text {
    color: #fff;
  }

  #navbar .navbar-logo-wrap {
    background: linear-gradient(145deg, #80e8ff 0%, #2882ff 52%, #1240d8 100%);
    border: 0;
  }

  #navbar .navbar-logo-img {
    filter: brightness(0) invert(1);
  }

  #navbar #mobile-menu-btn,
  #navbar.scrolled #mobile-menu-btn {
    background: #fff;
    border-color: #fff;
    color: #111;
  }
}

/* Institutional logos in navbar */

/* ========== HERO SECTION ========== */
.hero-bg {
  background: radial-gradient(ellipse at 30% 20%, #1a3a5c 0%, #0b1a30 50%, #050d1a 100%);
  /* iOS Safari: forces GPU compositing layer so overflow:hidden clips transformed children */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #06B6D4 0%, #2F8FA3 30%, #06B6D4 60%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease-in-out infinite;
}

.hero-content {
  padding-top: 8.5rem !important;
  padding-bottom: 6.5rem !important;
}

.hero-content > div:first-child {
  margin-bottom: 1.5rem;
}

.hero-content > div:first-child > div {
  padding: 0.65rem 1.15rem;
  border-color: rgba(127, 232, 255, 0.28);
  background: rgba(9, 25, 49, 0.48);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.hero-content h1 {
  margin-bottom: 1.15rem !important;
  line-height: 0.86 !important;
}

.hero-content h1 span:first-child {
  font-size: clamp(4rem, 9vw, 7.2rem);
  letter-spacing: -0.055em;
}

.hero-content h1 span:last-child {
  margin-top: 0.35rem;
  font-size: clamp(3.4rem, 7vw, 6rem);
  letter-spacing: -0.045em;
}

.hero-event-details h2 {
  max-width: 780px;
  margin: 0 auto 0.9rem;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.hero-event-details p {
  margin-bottom: 0.45rem;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
}

.hero-event-details p:last-child {
  margin-top: 0.6rem;
  color: #ffffff;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.hero-sponsor-line {
  margin: -0.15rem auto 0.6rem;
  color: #8be7ff;
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-date-wrap {
  margin: 1.55rem 0 2rem;
}

.hero-date-wrap > div {
  padding: 0.7rem 1.15rem;
  border-radius: 1rem;
  border-color: rgba(127, 232, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-date-wrap > div > div:first-child {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
}

.hero-date-wrap > div > div:first-child i {
  font-size: 1.3rem;
}

.hero-date-wrap p:last-child {
  font-size: 1.1rem;
}

.hero-partners {
  margin-bottom: 2rem;
}

.hero-partners > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 68rem);
  margin-right: auto;
  margin-left: auto;
  gap: 2.5rem;
  margin-bottom: 0;
}

.hero-partners > div > div {
  min-width: 0;
  width: 100%;
  max-width: none;
  min-height: 6.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.045);
}

.hero-partners > div > div > p {
  margin-bottom: 0.7rem;
}

.hero-partner-label {
  color: rgba(255, 255, 255, 0.64) !important;
  font-size: 1rem !important;
  letter-spacing: 0.16em !important;
  line-height: 1.25;
}

.hero-partners > div > div:last-child .hero-partner-label {
  color: #8be7ff !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.12em !important;
}

.hero-highlights {
  margin-bottom: 2.25rem;
}

.hero-highlights > div {
  gap: 2rem;
}

.hero-highlights > div > div:not(.w-px) {
  min-width: 6.5rem;
}

.hero-actions {
  gap: 0.8rem;
}

.hero-actions .hero-btn {
  min-width: 13rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.85rem;
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .hero-content {
    padding-top: 7.3rem !important;
    padding-bottom: 5rem !important;
  }

  .hero-content > div:first-child {
    margin-bottom: 1.2rem;
  }

  .hero-content > div:first-child > div {
    max-width: 19rem;
    line-height: 1.35;
  }

  .hero-partners > div {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-partners > div > div {
    width: min(100%, 22rem);
    margin: 0 auto;
  }

  .hero-highlights > div {
    gap: 0.85rem;
  }

  .hero-highlights > div > div:not(.w-px) {
    min-width: 5.5rem;
  }

  .hero-actions .hero-btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero-content {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 7rem !important;
    padding-bottom: 2.25rem !important;
  }

  .hero-date-wrap {
    display: none;
  }

  .hero-content > div:first-child {
    margin-bottom: 1rem;
  }

  .hero-content h1 {
    margin-bottom: 0.8rem !important;
  }

  .hero-event-details h2 {
    margin-bottom: 0.5rem;
  }

  .hero-event-details p {
    margin-bottom: 0.25rem;
  }

  .hero-event-details p:last-child {
    margin-top: 0.25rem;
  }

  .hero-partners {
    margin-bottom: 1rem;
  }

  .hero-partners > div > div {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hero-highlights {
    margin-bottom: 1.25rem;
  }

  .hero-actions .hero-btn {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
  }
}

@media (min-width: 768px) and (max-height: 850px) {
  .hero-content {
    padding-top: 6.35rem !important;
    padding-bottom: 0.5rem !important;
  }

  .hero-content > div:first-child {
    margin-bottom: 0.65rem;
  }

  .hero-content h1 span:first-child {
    font-size: clamp(3.7rem, 7vw, 5.6rem);
  }

  .hero-content h1 span:last-child {
    font-size: clamp(3.1rem, 5.5vw, 4.7rem);
  }

  .hero-event-details h2 {
    max-width: 700px;
    font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  }

  .hero-event-details p {
    font-size: 0.9rem;
  }

  .hero-event-details p:last-child {
    font-size: 1.15rem;
  }

  .hero-sponsor-line {
    margin-bottom: 0.35rem;
    font-size: 1.7rem;
  }

  .hero-partners > div {
    gap: 1.5rem;
  }

  .hero-partners > div > div {
    min-height: 5.25rem;
    padding: 0.25rem 1rem;
  }

  .hero-partners > div > div > p {
    margin-bottom: 0.35rem;
  }

  .hero-partner-label {
    font-size: 0.88rem !important;
  }

  .hero-partners > div > div:last-child .hero-partner-label {
    font-size: 1.2rem !important;
  }

  .hero-partners > div > div > div {
    height: 2.35rem;
  }

  .hero-highlights {
    margin-bottom: 0.55rem;
  }

  .hero-highlights .text-3xl,
  .hero-highlights .md\:text-4xl {
    font-size: 1.65rem;
  }

  .hero-actions .hero-btn {
    padding-top: 0.58rem;
    padding-bottom: 0.58rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (min-width: 768px) and (max-height: 780px) {
  .hero-content {
    height: 100vh;
    min-height: 0 !important;
    padding-top: 5.75rem !important;
    padding-bottom: 4.75rem !important;
  }

  .hero-content > div:first-child {
    margin-bottom: 0.4rem;
  }

  .hero-content h1 {
    margin-bottom: 0.55rem !important;
  }

  .hero-content h1 span:first-child {
    font-size: clamp(3.4rem, 6.5vw, 5rem);
  }

  .hero-content h1 span:last-child {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
  }

  .hero-event-details h2 {
    font-size: clamp(1rem, 1.65vw, 1.4rem);
  }

  .hero-sponsor-line {
    font-size: 1.45rem;
  }

  .hero-partners > div > div {
    min-height: 4.75rem;
  }

  .hero-partners > div > div > div {
    height: 2rem;
  }

  .hero-highlights .text-3xl,
  .hero-highlights .md\:text-4xl {
    font-size: 1.45rem;
  }

  .hero-actions .hero-btn {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hero-actions {
    position: absolute;
    left: 50%;
    bottom: 4.25rem;
    width: calc(100% - 2rem);
    transform: translateX(-50%);
    z-index: 30;
  }

  .hero-bg > div:last-child svg {
    height: 3.5rem;
  }
}

/* ========== REDESIGNED HOME HERO ========== */
.hero-redesign {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 2.5rem;
  color: #fff;
  background: radial-gradient(circle at 50% 25%, #17466a 0%, #0b1d36 48%, #050d1a 100%);
}

.hero-redesign::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1.5rem;
  background: #f9fafb;
  clip-path: polygon(0 60%, 20% 95%, 45% 70%, 70% 85%, 100% 48%, 100% 100%, 0 100%);
  z-index: 2;
}

.hero-redesign-particles,
.hero-redesign-glow {
  position: absolute;
  pointer-events: none;
}

.hero-redesign-particles {
  inset: 0;
  z-index: -1;
  opacity: 0.45;
}

.hero-redesign-glow {
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  z-index: -1;
}

.hero-redesign-glow-left {
  top: 18%;
  left: -14rem;
  background: #18b6d0;
}

.hero-redesign-glow-right {
  right: -15rem;
  bottom: 8%;
  background: #1a5ba8;
}

.hero-redesign-inner {
  width: min(100%, 62rem);
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-redesign-kicker {
  width: fit-content;
  margin: 0 auto 1.15rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(132, 224, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 21, 41, 0.5);
  color: #c0efff;
  font: 700 0.72rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-redesign-kicker span {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: #35d2a5;
}

.hero-redesign-title-block h1 {
  margin: 0;
  color: #fff;
  font: 900 clamp(3.4rem, 8vw, 6.8rem)/0.86 'Space Grotesk', sans-serif;
  letter-spacing: -0.07em;
}

.hero-redesign-title-block h1 strong {
  display: block;
  margin-top: 0.5rem;
  color: #23b9d1;
  font-size: 0.76em;
  letter-spacing: -0.06em;
}

.hero-redesign-title-block p {
  margin: 1.2rem auto 0;
  color: #fff;
  font: 700 clamp(1.25rem, 2.55vw, 1.9rem)/1.2 'Poppins', sans-serif;
}

.hero-redesign-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1rem auto 1.25rem;
  color: #b4e7f2;
  font: 500 0.85rem/1.3 'Open Sans', sans-serif;
}

.hero-redesign-details span:nth-child(1),
.hero-redesign-details span:nth-child(2) {
  flex-basis: 100%;
  font-size: 1.05rem;
}

.hero-redesign-details span:nth-child(1) {
  color: #bff3ff;
  font-weight: 700;
}

.hero-redesign-details span:nth-child(2) {
  color: #d8f5fb;
  font-weight: 600;
}

.hero-redesign-details span + span::before {
  content: '/';
  margin-right: 1.4rem;
  color: rgba(255, 255, 255, 0.3);
}

.hero-redesign-details span:nth-child(2)::before,
.hero-redesign-details span:nth-child(3)::before {
  display: none;
}

.hero-redesign-details b {
  color: #7de9ff;
  letter-spacing: 0.12em;
}

.hero-redesign-sponsors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: min(100%, 46rem);
  margin: 0 auto 1.2rem;
}

.hero-redesign-sponsors > div {
  min-height: 5rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(144, 220, 246, 0.16);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.055);
}

.hero-redesign-sponsors small,
.hero-redesign-sponsors img {
  display: block;
  margin: 0 auto;
}

.hero-redesign-sponsors small {
  margin-bottom: 0.45rem;
  color: #b9cbd3;
  font: 700 0.7rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-redesign-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 2.3rem;
}

.hero-redesign-logo-row img,
.hero-redesign-ieee {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.hero-redesign-ieee {
  height: 2.3rem;
}

.hero-redesign-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.2rem;
}

.hero-redesign-stats div {
  min-width: 9rem;
  padding: 0 1.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-redesign-stats div:last-child {
  border-right: 0;
}

.hero-redesign-stats b,
.hero-redesign-stats span {
  display: block;
}

.hero-redesign-stats b {
  color: #fff;
  font: 900 1.55rem/1 'Space Grotesk', sans-serif;
}

.hero-redesign-stats span {
  margin-top: 0.45rem;
  color: #6ed8ed;
  font: 700 0.62rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-redesign-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

.hero-redesign-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.7rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: 700 0.72rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-redesign-actions a:first-child {
  border-color: transparent;
  background: linear-gradient(100deg, #1d9fbb, #2869b8);
  box-shadow: 0 0.6rem 1.5rem rgba(22, 143, 185, 0.25);
}

.hero-redesign-actions a:hover {
  transform: translateY(-2px);
  background: #fff;
  color: #102c4b;
}

@media (max-height: 780px) and (min-width: 768px) {
  .hero-redesign {
    padding-top: 6.1rem;
    padding-bottom: 1.5rem;
  }

  .hero-redesign-kicker {
    margin-bottom: 0.7rem;
  }

  .hero-redesign-title-block p {
    margin-top: 0.8rem;
  }

  .hero-redesign-details {
    margin-top: 0.7rem;
    margin-bottom: 0.8rem;
  }

  .hero-redesign-details span:nth-child(1),
  .hero-redesign-details span:nth-child(2) {
    font-size: 0.95rem;
  }

  .hero-redesign-sponsors {
    margin-bottom: 0.8rem;
  }

  .hero-redesign-sponsors > div {
    min-height: 4.2rem;
    padding: 0.5rem 1rem;
  }

  .hero-redesign-logo-row,
  .hero-redesign-ieee {
    height: 1.8rem;
  }

  .hero-redesign-stats {
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 767px) {
  .hero-redesign {
    min-height: 100svh;
    padding: 7rem 1rem 2rem;
  }

  .hero-redesign-title-block h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .hero-redesign-desktop-break {
    display: none;
  }

  .hero-redesign-title-block p {
    max-width: 22rem;
    font-size: 1rem;
  }

  .hero-redesign-details {
    flex-direction: column;
    gap: 0.35rem;
  }

  .hero-redesign-details span + span::before {
    display: none;
  }

  .hero-redesign-sponsors {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }

  .hero-redesign-stats div {
    min-width: 0;
    padding: 0 0.7rem;
  }

  .hero-redesign-stats b {
    font-size: 1.2rem;
  }

  .hero-redesign-stats span {
    font-size: 0.5rem;
  }

  .hero-redesign-actions {
    flex-direction: column;
    width: min(100%, 22rem);
    margin: 0 auto;
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Date pill silver shine sweep */
.date-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.12) 45%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0.12) 55%,
      rgba(255, 255, 255, 0) 60%,
      transparent 80%);
  animation: date-shine-sweep 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes date-shine-sweep {

  0%,
  70% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(450%);
  }
}

.hero-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

/* Scroll indicator */
@keyframes animate-scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

.animate-scroll-dot {
  animation: animate-scroll-dot 1.5s ease-in-out infinite;
}

/* ========== FLOATING ANIMATIONS ========== */
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(20px, -20px) scale(1.02);
  }

  50% {
    transform: translate(-10px, 15px) scale(0.98);
  }

  75% {
    transform: translate(15px, 10px) scale(1.01);
  }
}

.animate-float {
  animation: float 12s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 15s ease-in-out infinite 3s;
}

@keyframes pulse-slow {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.25;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

/* ========== COMMITTEE CARDS ========== */
.committee-role {
  color: #2F8FA3;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.2rem;
}

/* ========== SUBPAGE HERO ========== */
.page-hero {
  position: relative;
  background: radial-gradient(ellipse at 20% 20%, #1f3f73 0%, #0b1a30 55%, #071326 100%);
  color: #ffffff;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.25), transparent 45%);
  opacity: 0.7;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ========== MEMBER CARDS ========== */
.member-group-title {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1F3F73;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 63, 115, 0.12);
  border-color: rgba(47, 143, 163, 0.25);
}

.member-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, #1F3F73, #2F8FA3);
  flex-shrink: 0;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: #ffffff;
  border: 3px solid #ffffff;
}

.member-name {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1F3F73;
  line-height: 1.25;
}

.member-role {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2F8FA3;
  margin-top: 0.2rem;
}

.member-affiliation {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.committee-card {
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  cursor: default;
}

.committee-card:hover {
  box-shadow: 0 8px 25px rgba(31, 63, 115, 0.08);
  border-color: rgba(47, 143, 163, 0.2);
  transform: translateY(-2px);
}

.committee-card:hover h4 {
  color: #2F8FA3;
}

/* TPC Member pill */
.tpc-member {
  padding: 0.6rem 1rem;
  background: white;
  border-radius: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #1F3F73;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.tpc-member:hover {
  background: linear-gradient(135deg, #1F3F73 0%, #2F8FA3 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(31, 63, 115, 0.2);
}

/* ========== TRACK CARDS ========== */
.track-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1F3F73, #2F8FA3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.track-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(31, 63, 115, 0.1);
  border-color: rgba(47, 143, 163, 0.2);
}

.track-card:hover::before {
  opacity: 1;
}

.track-icon-wrap {
  background: linear-gradient(135deg, rgba(31, 63, 115, 0.06) 0%, rgba(47, 143, 163, 0.06) 100%);
  color: #1F3F73;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  margin-bottom: 1.25rem;
  transition: all 0.4s ease;
}

.track-card:hover .track-icon-wrap {
  background: linear-gradient(135deg, #1F3F73 0%, #2F8FA3 100%);
  color: white;
  transform: rotateY(180deg);
}

/* ========== ZIGZAG MAP TIMELINE ========== */
.zigzag-map {
  position: relative;
  padding: 0 20px;
}

/* SVG winding path behind everything */
.zigzag-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.zigzag-path-line {
  stroke-dashoffset: 0;
  animation: path-draw 3s ease forwards;
}

@keyframes path-draw {
  from {
    stroke-dashoffset: 2000;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Each milestone row */
.zigzag-node {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.zigzag-right {
  justify-content: flex-start;
  padding-left: 5%;
}

.zigzag-left {
  justify-content: flex-end;
  padding-right: 5%;
}

/* Dot + ring at each node */
.zigzag-dot-wrap {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zigzag-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.zigzag-dot.active {
  background: #22d3ee;
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}

.zigzag-dot.final {
  background: linear-gradient(135deg, #22d3ee, #06B6D4);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.7);
  width: 22px;
  height: 22px;
}

.zigzag-dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  animation: ring-pulse 3s ease-in-out infinite;
}

.zigzag-dot-ring.active {
  border-color: rgba(34, 211, 238, 0.2);
}

.zigzag-dot-ring.final {
  border-color: rgba(6, 182, 212, 0.3);
  animation: ring-pulse-final 2s ease-in-out infinite;
}

@keyframes ring-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes ring-pulse-final {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.zigzag-step-num {
  position: absolute;
  bottom: -8px;
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* Milestone cards */
.zigzag-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 20px 28px;
  max-width: 420px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.zigzag-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 211, 238, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 20px rgba(34, 211, 238, 0.08);
}

.zigzag-card-final {
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 30px rgba(34, 211, 238, 0.08);
}

.zigzag-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zigzag-card-icon.final {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(6, 182, 212, 0.1));
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.2);
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .zigzag-path-svg {
    display: none;
  }

  .zigzag-node {
    flex-direction: column !important;
    padding: 0 !important;
  }

  .zigzag-right,
  .zigzag-left {
    justify-content: center;
  }

  .zigzag-card {
    max-width: 100%;
  }

  .zigzag-node {
    margin-bottom: 40px;
  }
}

/* ========== PARTICLES ========== */
#particles-js canvas {
  display: block;
  vertical-align: bottom;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 768px) {
  .hero-title span:first-child {
    font-size: 3.5rem;
  }

  .hero-title span:last-child {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-title span:first-child {
    font-size: 2.5rem;
  }

  .hero-title span:last-child {
    font-size: 2.2rem;
  }
}

/* Track details */
.track-details.is-hidden {
  display: none;
}
.track-toggle {
  margin-top: 12px;
  background: transparent;
  border: 1px dashed rgba(31,63,115,0.08);
  padding: 0.5rem 0.8rem;
  border-radius: 0.75rem;
  color: #1F3F73;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.track-toggle:hover {
  background: rgba(47,143,163,0.06);
  transform: translateY(-2px);
}

.track-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  color: #374151;
  font-size: 0.95rem;
}

.track-card.expanded {
  box-shadow: 0 28px 60px rgba(31,63,115,0.12);
}
