/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Colors */
  --bg-deep: #020208;
  --bg-surface: rgba(255, 255, 255, 0.02);
  --bg-surface-hover: rgba(255, 255, 255, 0.05);
  
  --color-primary: #1a5cff;
  --color-primary-glow: rgba(26, 92, 255, 0.4);
  --color-primary-light: #00d9ff;
  
  --accent-blue: #1a5cff;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(26, 92, 255, 0.2);
  
  /* Fonts */
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   AMBIENT BACKGROUND GLOWS
   ========================================================================== */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(2, 2, 8, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.glow-1 {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(26, 92, 255, 0.3) 0%, rgba(2, 2, 8, 0) 70%);
}

.glow-2 {
  top: 40%;
  left: -200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(2, 2, 8, 0) 70%);
}

.glow-3 {
  bottom: 10%;
  right: -200px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.2) 0%, rgba(2, 2, 8, 0) 70%);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered load delays for children elements */
.reveal-delay-1 { transition-delay: 0.08s !important; }
.reveal-delay-2 { transition-delay: 0.16s !important; }
.reveal-delay-3 { transition-delay: 0.24s !important; }
.reveal-delay-4 { transition-delay: 0.32s !important; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d46d2 100%);
  color: #white;
  box-shadow: 0 4px 20px rgba(26, 92, 255, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 92, 255, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #2b6cff 0%, #1a5cff 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 16px;
  font-weight: 500;
}

.btn-text:hover {
  color: var(--text-primary);
}

.btn-text:hover .arrow-icon {
  transform: translateX(4px);
}

.arrow-icon {
  transition: transform var(--transition-fast);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-bottom var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  background-color: rgba(2, 2, 8, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.logo-text small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.desktop-nav ul {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 9999px;
  transition: transform var(--transition-normal);
  transform-origin: center;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: rgba(2, 2, 8, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-light);
  z-index: 99;
  display: flex;
  align-items: center;
  padding: 100px 40px 40px;
  transition: right var(--transition-normal);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--text-primary);
}

.btn-mobile-join {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  color: var(--color-primary-light);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #8ca6e6 50%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Hero Graphic */
.hero-graphic-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic-bg {
  position: absolute;
  width: 120%;
  height: 120%;
  pointer-events: none;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(26, 92, 255, 0.08);
}

.orbit-ring-1 {
  width: 70%;
  height: 70%;
  animation: float 8s ease-in-out infinite;
}

.orbit-ring-2 {
  width: 85%;
  height: 85%;
  border-style: dashed;
  animation: float 12s ease-in-out infinite alternate;
}

.orbit-ring-3 {
  width: 100%;
  height: 100%;
  border-color: rgba(0, 217, 255, 0.05);
  animation: float 16s ease-in-out infinite;
}

.hero-image {
  width: 100%;
  max-width: 460px;
  border-radius: 30px;
  mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
  filter: drop-shadow(0 0 40px rgba(26, 92, 255, 0.2));
  animation: float-hero 6s ease-in-out infinite;
}

@keyframes float-hero {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
}

@keyframes float {
  0%, 100% { transform: rotate(0deg) translateY(0px); }
  50% { transform: rotate(180deg) translateY(-10px); }
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.01);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--border-light);
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  transition: transform var(--transition-normal);
}

.stat-item:hover .stat-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background-color: rgba(26, 92, 255, 0.08);
  border-color: rgba(26, 92, 255, 0.2);
}

.stat-icon {
  width: 24px;
  height: 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-light);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   ECOSYSTEM ORBIT SECTION
   ========================================================================== */
.ecosystem-section {
  padding: 120px 0;
  position: relative;
}

.ecosystem-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--color-primary-light);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

/* Ecosystem Visual */
.ecosystem-visual {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ecosystem-center {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(2, 2, 8, 0.8);
  border: 2px solid rgba(26, 92, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 40px rgba(26, 92, 255, 0.2);
}

.center-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, rgba(0, 217, 255, 0) 70%);
  filter: blur(10px);
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

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

.center-logo-icon {
  margin-bottom: 6px;
  color: var(--color-primary-light);
  filter: drop-shadow(0 0 6px var(--color-primary-light));
}

.center-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.center-subtitle {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.orbit-connectors {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rotator-ring-bg {
  transform-origin: center;
  animation: spin-clockwise 60s linear infinite;
}

.orbit-connectors line {
  transition: stroke var(--transition-normal), stroke-width var(--transition-normal);
}

.orbit-connectors line.highlighted {
  stroke: rgba(0, 217, 255, 0.6);
  stroke-width: 3px;
  stroke-dasharray: none;
}

/* Orbit Nodes Wrapper */
.orbit-nodes-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: spin-clockwise 40s linear infinite;
  transform-origin: center;
}

.orbit-nodes-wrapper.paused {
  animation-play-state: paused;
}

.orbit-node-container {
  position: absolute;
  width: 90px;
  height: 90px;
  top: 50%;
  left: 50%;
  margin-top: -45px;
  margin-left: -45px;
  transform: rotate(var(--angle)) translate(175px) rotate(calc(-1 * var(--angle)));
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.orbit-node {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(2, 2, 8, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: spin-counter-clockwise 40s linear infinite;
  transform-origin: center;
}

.orbit-nodes-wrapper.paused .orbit-node {
  animation-play-state: paused;
}

.node-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
  color: var(--text-secondary);
  line-height: 1.2;
  transition: color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  /* Unrotate labels so they stay flat */
  animation: spin-counter-clockwise 40s linear infinite;
  transform-origin: top center;
}

.orbit-nodes-wrapper.paused .node-label {
  animation-play-state: paused;
}

/* Orbit Hover States */
.orbit-node-container:hover .orbit-node {
  transform: scale(1.2);
  color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.orbit-node-container:hover .node-label {
  color: var(--text-primary);
  transform: scale(1.05);
}

/* Tooltip Overlay In Ecosystem center on hover */
.ecosystem-tooltip-overlay {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(2, 2, 8, 0.95);
  border: 2px solid var(--color-primary-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  text-align: center;
  z-index: 11;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

.ecosystem-tooltip-overlay.active {
  opacity: 1;
  transform: scale(1);
}

.tooltip-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 4px;
}

.tooltip-text {
  font-size: 0.55rem;
  line-height: 1.3;
  color: var(--text-secondary);
}

@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-counter-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ==========================================================================
   FEATURED GROUPS
   ========================================================================== */
.groups-section {
  padding: 80px 0;
  position: relative;
}

.groups-header {
  margin-bottom: 40px;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.group-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.group-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.card-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  top: -40px;
  right: -40px;
  transition: opacity var(--transition-normal), filter var(--transition-normal);
  pointer-events: none;
  z-index: 0;
}

.group-card.accent-blue .card-glow { background: var(--accent-blue); }
.group-card.accent-purple .card-glow { background: var(--accent-purple); }
.group-card.accent-green .card-glow { background: var(--accent-green); }
.group-card.accent-orange .card-glow { background: var(--accent-orange); }

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
  z-index: 2;
}

.group-card.accent-blue .card-icon-wrapper { background: rgba(26, 92, 255, 0.08); border-color: rgba(26, 92, 255, 0.15); color: var(--accent-blue); }
.group-card.accent-purple .card-icon-wrapper { background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.group-card.accent-green .card-icon-wrapper { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.group-card.accent-orange .card-icon-wrapper { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }

.card-icon {
  width: 20px;
  height: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
  transform: translateZ(10px);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  z-index: 2;
  transform: translateZ(15px);
}

.card-link .arrow-icon {
  transition: transform var(--transition-fast);
}

.group-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.group-card:hover .card-glow {
  opacity: 0.35;
  filter: blur(40px);
}

.group-card:hover .card-link {
  color: var(--text-primary);
}

.group-card:hover .card-link .arrow-icon {
  transform: translateX(4px);
}

.group-card.accent-blue:hover { border-color: rgba(26, 92, 255, 0.4); box-shadow: 0 10px 30px rgba(26, 92, 255, 0.1); }
.group-card.accent-purple:hover { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1); }
.group-card.accent-green:hover { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1); }
.group-card.accent-orange:hover { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1); }

/* ==========================================================================
   REGIONAL CHAPTER (ROS TAMIL NADU)
   ========================================================================== */
.regional-section {
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--border-light);
}

.regional-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 64px;
}

.regional-content {
  max-width: 440px;
}

.regional-visual {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 24px;
}

.badge-container {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--border-light);
  z-index: 2;
  transition: transform var(--transition-normal);
}

.badge-glow-ring {
  position: absolute;
  width: 108%;
  height: 108%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(2, 2, 8, 0) 70%);
  border: 1px dashed rgba(16, 185, 129, 0.2);
  z-index: 1;
  animation: spin-clockwise 25s linear infinite;
}

.badge-container:hover .badge-img {
  transform: scale(1.05) rotate(3deg);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Map Styling */
.map-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  background: rgba(2, 2, 8, 0.4);
  backdrop-filter: blur(12px);
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(26, 92, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.map-container:hover {
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 15px 45px rgba(26, 92, 255, 0.15), inset 0 0 20px rgba(26, 92, 255, 0.1);
}

.map-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  opacity: 0.85;
  filter: drop-shadow(0 0 20px rgba(26, 92, 255, 0.2));
  transition: opacity var(--transition-normal), transform var(--transition-slow);
}

.map-container:hover .map-img {
  opacity: 0.95;
  transform: scale(1.03);
}

/* ==========================================================================
   HOW TO JOIN
   ========================================================================== */
.join-section {
  padding: 100px 0 120px;
  border-top: 1px solid var(--border-light);
}

.join-header {
  margin-bottom: 60px;
}

.join-steps-container {
  position: relative;
  margin-bottom: 80px;
}

.steps-connector-svg {
  position: absolute;
  left: 0;
  top: 75px;
  width: 100%;
  height: 20px;
  pointer-events: none;
  z-index: 0;
}

.running-dots {
  animation: stroke-offset 15s linear infinite;
}

@keyframes stroke-offset {
  to { stroke-dashoffset: -120; }
}

.join-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 20px;
  position: relative;
  transition: all var(--transition-normal);
}

.step-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}

.step-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

/* Step hover effects */
.step-card:hover .step-circle-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.step-card:hover .step-icon-wrapper {
  transform: translateY(-5px);
  background: rgba(26, 92, 255, 0.06);
  border-color: rgba(26, 92, 255, 0.3);
  color: var(--color-primary-light);
  box-shadow: 0 8px 20px rgba(26, 92, 255, 0.1);
}

.step-card:hover .step-title {
  color: var(--color-primary-light);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(26, 92, 255, 0.05) 0%, rgba(0, 217, 255, 0.02) 100%);
  border: 1px solid rgba(26, 92, 255, 0.2);
  border-radius: 24px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 92, 255, 0.1) 0%, rgba(2, 2, 8, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.cta-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(26, 92, 255, 0.1);
  border: 1px solid rgba(26, 92, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
}

.cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cta-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cta-right {
  position: relative;
  z-index: 2;
}

.btn-cta {
  padding: 14px 36px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
  background: rgba(1, 1, 4, 0.9);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr) 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: inline-flex;
}

.footer-slogan {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--color-primary-light);
}

.footer-social h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.social-icons a:hover {
  color: var(--color-primary-light);
  border-color: rgba(0, 217, 255, 0.3);
  background: rgba(0, 217, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 217, 255, 0.1);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 30px 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
}

.scroll-top-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  outline: none;
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.scroll-top-btn:hover {
  color: var(--color-primary-light);
  border-color: rgba(0, 217, 255, 0.3);
  background: rgba(0, 217, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
  transform: translateY(-3px);
}

.scroll-top-btn:hover svg {
  transform: translateY(-2px);
}

.scroll-top-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE STYLES (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
  
  .ecosystem-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .section-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .ecosystem-text .btn {
    justify-content: center;
  }
  
  .groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .regional-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .regional-content {
    max-width: 100%;
    text-align: center;
  }
  
  .regional-content .btn {
    justify-content: center;
  }
  
  .regional-visual {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .join-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .steps-connector-svg {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav, .btn-header {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 360px;
  }
  
  .cta-banner {
    flex-direction: column;
    gap: 28px;
    text-align: center;
    padding: 32px;
  }
  
  .cta-left {
    flex-direction: column;
    gap: 16px;
  }
  
  .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-container {
    flex-direction: column-reverse;
    gap: 16px;
  }
  
  .footer-bottom p {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-item {
    padding: 8px;
    gap: 12px;
  }
  
  .stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  
  .stat-icon {
    width: 18px;
    height: 18px;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-plus {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.78rem;
    margin-top: 2px;
  }
  
  .stat-item::after {
    display: none !important;
  }
  
  .ecosystem-visual {
    width: 320px;
    height: 320px;
  }
  
  .ecosystem-center {
    width: 90px;
    height: 90px;
  }
  
  .center-title {
    font-size: 0.75rem;
  }
  
  .center-subtitle {
    font-size: 0.5rem;
  }
  
  .orbit-node-container {
    width: 70px;
    height: 70px;
    margin-top: -35px;
    margin-left: -35px;
    transform: rotate(var(--angle)) translate(110px) rotate(calc(-1 * var(--angle))) !important;
  }
  
  .orbit-node {
    width: 38px;
    height: 38px;
  }
  
  .node-icon {
    width: 16px;
    height: 16px;
  }
  
  .node-label {
    font-size: 0.55rem;
    margin-top: 4px;
  }
  
  .orbit-connectors circle {
    r: 110px;
  }
  
  .orbit-connectors line {
    display: none;
  }
  
  .ecosystem-tooltip-overlay {
    width: 100px;
    height: 100px;
    padding: 8px;
  }
  
  .tooltip-title {
    font-size: 0.65rem;
  }
  
  .tooltip-text {
    font-size: 0.45rem;
  }
  
  .groups-grid {
    grid-template-columns: 1fr;
  }
  
  .regional-visual {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .map-container {
    max-width: 100%;
  }
  
  .join-steps {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   REGISTRATION MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 2, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  background: #090915;
  background: radial-gradient(circle at top right, rgba(26, 92, 255, 0.08), #090915 60%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 90%;
  max-width: 520px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 
              0 0 40px rgba(26, 92, 255, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Modal Steps */
.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
  animation: modalFadeIn var(--transition-normal);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-logo {
  height: 40px;
  margin: 0 auto 16px auto;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form Styling */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-group label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.form-group input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(26, 92, 255, 0.2);
}

/* Designation Toggle Buttons */
.designation-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: 12px;
}

.designation-option {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-transform: none;
}

.designation-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.designation-option.active {
  background: var(--color-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(26, 92, 255, 0.2);
}

.designation-option:not(.active):hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Form Error Message */
.form-error-message {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

/* Submit Button & Spinner */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-top: 10px;
}

.btn-submit.loading span,
.btn-submit.loading svg {
  visibility: hidden;
  opacity: 0;
}

.spinner {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: modalSpin 0.8s linear infinite;
}

.btn-submit.loading .spinner {
  display: block;
}

@keyframes modalSpin {
  to { transform: rotate(360deg); }
}

/* Step 2: Success State CSS */
#modal-step-success {
  text-align: center;
  padding: 20px 0 10px 0;
}

.success-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 28px auto;
}

.success-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-green);
  filter: blur(16px);
  opacity: 0.35;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #fff;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--accent-green);
  animation: fillGreen .4s ease-in-out .4s forwards, scaleCheckmark .3s ease-in-out .9s both;
}

.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--accent-green);
  fill: none;
  animation: strokeCircle .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes fillGreen {
  100% { box-shadow: inset 0px 0px 0px 40px var(--accent-green); }
}

@keyframes scaleCheckmark {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

.success-title {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-subtitle {
  margin-bottom: 32px;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 12px;
  margin-bottom: 24px;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #2fe672 0%, #16a090 100%);
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

.whatsapp-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.4;
}

.whatsapp-note svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Disable background scroll when modal open */
body.modal-open {
  overflow: hidden;
}

