/* ===========================
   CRYPTO-NET — REDESIGNED CSS
   =========================== */

:root {
  --black: #020408;
  --dark: #080d14;
  --panel: #0d1420;
  --card: #101826;
  --border: #1a2d45;
  --border-bright: #00e5ff44;
  --green: #00ff88;
  --cyan: #00e5ff;
  --blue: #0a84ff;
  --red: #ff3a5c;
  --yellow: #ffd700;
  --white: #e8f4ff;
  --muted: #4a6a8a;
  --font-mono: 'Share Tech Mono', monospace;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --glow-green: 0 0 20px #00ff8866, 0 0 40px #00ff8822;
  --glow-cyan: 0 0 20px #00e5ff66, 0 0 40px #00e5ff22;
  --glow-red: 0 0 20px #ff3a5c66;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ===========================
   SCANLINES
   =========================== */
.scanlines {
  position: fixed; inset: 0; z-index: 9999;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

/* ===========================
   CUSTOM CURSOR
   =========================== */
.cursor-outer {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--cyan); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transition: transform 0.15s ease, border-color 0.2s;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  pointer-events: none; z-index: 10001;
  transform: translate(-50%, -50%);
}
body:hover .cursor-outer { border-color: var(--green); }

/* ===========================
   LOADER
   =========================== */
.loader {
  position: fixed; inset: 0; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; transition: opacity 0.6s ease;
}
.loader.hide { opacity: 0; pointer-events: none; }

.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.loader-hex {
  position: relative; width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.loader-hex svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: var(--cyan); stroke-width: 2;
  animation: hex-spin 4s linear infinite;
  filter: drop-shadow(0 0 8px var(--cyan));
}
.loader-hex i { font-size: 2.2rem; color: var(--green); z-index: 1; }

@keyframes hex-spin { to { transform: rotate(360deg); } }

.loader-text { text-align: center; }
.loader-title {
  font-family: var(--font-display); font-size: 1.6rem;
  letter-spacing: 0.3em; color: var(--green);
  display: block; margin-bottom: 12px;
}
.loader-bar {
  width: 280px; height: 3px; background: var(--border);
  border-radius: 2px; overflow: hidden; margin: 0 auto 8px;
}
.loader-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 0.1s linear;
}
.loader-status {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px; height: 70px;
  display: flex; align-items: center;
  background: rgba(2,4,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--border-bright); }

.nav-inner {
  max-width: 1300px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.1em;
}
.logo-hex {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--green), var(--cyan));
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  color: var(--black); font-size: 1.1rem; font-weight: 900;
}
.logo-hex.sm { width: 30px; height: 30px; font-size: 0.8rem; }
.nav-logo .accent { color: var(--cyan); }

.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.nl {
  color: var(--muted); text-decoration: none; font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.1em; padding: 8px 14px; border-radius: 4px;
  transition: all 0.3s; position: relative;
}
.nl::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 1px; background: var(--cyan);
  transition: all 0.3s;
}
.nl:hover { color: var(--cyan); }
.nl:hover::after { left: 14px; right: 14px; }

.nl.join-btn {
  color: var(--green); border: 1px solid var(--green);
  box-shadow: inset 0 0 0 0 var(--green);
}
.nl.join-btn:hover {
  color: var(--black); background: var(--green);
  box-shadow: var(--glow-green);
}
.nl.join-btn::after { display: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--cyan);
  transition: all 0.3s;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

#networkCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 20px;
  max-width: 900px; margin: 0 auto;
}

.hero-badge {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--cyan); border: 1px solid var(--border-bright);
  padding: 6px 16px; border-radius: 20px;
  background: rgba(0,229,255,0.05);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse-dot 1.5s infinite;
}

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

.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.title-line { display: block; }
.accent-text { color: var(--cyan); }

/* GLITCH */
.glitch-wrap { position: relative; display: inline-block; }
.glitch {
  position: relative; display: inline-block;
  color: var(--green);
  text-shadow: var(--glow-green);
  animation: fadeUp 0.8s ease 0.4s both;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--red); left: 3px;
  animation: glitch1 4s infinite;
  clip-path: polygon(0 10%, 100% 10%, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--cyan); left: -3px;
  animation: glitch2 4s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 80%, 0 80%);
}
@keyframes glitch1 {
  0%,90%,100% { transform: none; opacity: 0; }
  92% { transform: translateX(4px) skewX(-5deg); opacity: 0.9; }
  94% { transform: translateX(-4px) skewX(5deg); opacity: 0.7; }
  96% { transform: translateX(2px); opacity: 0.8; }
}
@keyframes glitch2 {
  0%,85%,100% { transform: none; opacity: 0; }
  87% { transform: translateX(-5px) skewX(8deg); opacity: 0.8; }
  89% { transform: translateX(5px) skewX(-8deg); opacity: 0.6; }
}

.hero-sub {
  font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.2em;
  color: var(--muted); margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.6s both;
}

.typing-wrap {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 1rem; color: var(--green);
  height: 28px; margin-bottom: 36px;
  animation: fadeUp 0.8s ease 0.8s both;
}
.prompt { color: var(--cyan); }
.caret { animation: blink 1s step-start infinite; color: var(--green); }
@keyframes blink { 50% { opacity: 0; } }

.hero-ctas {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 48px;
  animation: fadeUp 0.8s ease 1s both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 6px; font-weight: 700;
  font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.05em;
  text-decoration: none; color: var(--black);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  transition: all 0.3s; box-shadow: var(--glow-green);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 40px #00ff8888; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 6px; font-weight: 600;
  font-family: var(--font-body); font-size: 0.95rem;
  text-decoration: none; color: var(--cyan);
  border: 1px solid var(--cyan);
  transition: all 0.3s;
}
.btn-ghost:hover { background: rgba(0,229,255,0.08); transform: translateY(-2px); }

.hero-stats {
  display: flex; align-items: center; gap: 32px;
  animation: fadeUp 0.8s ease 1.2s both;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-display); font-size: 2rem;
  font-weight: 900; color: var(--cyan);
}
.stat-lbl {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.15em; color: var(--muted);
}
.stat-div { width: 1px; height: 40px; background: var(--border); }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
}
.scroll-hint span {
  display: block; width: 26px; height: 42px;
  border: 2px solid var(--border-bright); border-radius: 13px;
  position: relative;
}
.scroll-hint span::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--cyan);
  animation: scroll-ball 2s ease-in-out infinite;
}
@keyframes scroll-ball {
  0% { top: 6px; opacity: 1; }
  100% { top: 26px; opacity: 0; }
}

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

/* ===========================
   COUNTDOWN
   =========================== */
.countdown-section {
  background: var(--panel); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 32px 20px;
}
.count-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.count-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--muted); margin-bottom: 20px;
}
.pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse-dot 1.5s infinite;
}
.countdown {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.time-block { text-align: center; }
.time-block span {
  display: block; font-family: var(--font-display); font-size: 3rem;
  font-weight: 900; color: var(--cyan);
  text-shadow: var(--glow-cyan); line-height: 1;
}
.time-block small {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em;
  color: var(--muted);
}
.time-sep { font-family: var(--font-display); font-size: 2rem; color: var(--border-bright); }
.count-sub { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-top: 12px; }

/* ===========================
   SECTIONS COMMON
   =========================== */
.section { padding: 100px 20px; position: relative; overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }
.sh-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.25em; color: var(--cyan); margin-bottom: 12px;
}
.sh-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: var(--white); letter-spacing: 0.02em;
}
.sh-title .accent { color: var(--cyan); }

.sub-heading {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.2em;
  color: var(--green); margin-bottom: 32px;
}

/* HEX BG */
.hex-bg {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='52' viewBox='0 0 60 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 17.3V34.7L30 52L0 34.7V17.3Z' fill='none' stroke='%2300e5ff' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px;
}

/* ===========================
   ABOUT
   =========================== */
.about-section { background: var(--dark); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; margin-bottom: 80px;
}

.shield-anim {
  position: relative; width: 340px; height: 340px;
  margin: 0 auto; display: flex; align-items: center; justify-content: center;
}
.shield-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: ring-spin linear infinite;
}
.r1 { width: 100%; height: 100%; border-color: rgba(0,229,255,0.15); animation-duration: 20s; }
.r2 { width: 75%; height: 75%; border-color: rgba(0,255,136,0.2); animation-duration: 15s; animation-direction: reverse; }
.r3 { width: 50%; height: 50%; border-color: rgba(0,229,255,0.25); animation-duration: 10s; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.shield-core {
  width: 120px; height: 120px; z-index: 2;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  color: var(--black); font-size: 2.8rem;
  box-shadow: var(--glow-green); animation: core-pulse 3s ease-in-out infinite;
}
@keyframes core-pulse {
  0%,100% { box-shadow: var(--glow-green); }
  50% { box-shadow: 0 0 50px #00ff8888, 0 0 80px #00ff8844; }
}

.orbit-dot {
  position: absolute; width: 36px; height: 36px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--cyan); z-index: 3;
}
.od1 { top: 10%; left: 50%; transform: translateX(-50%); animation: orbit1 8s linear infinite; }
.od2 { top: 50%; right: 5%; transform: translateY(-50%); animation: orbit2 10s linear infinite; }
.od3 { bottom: 10%; left: 50%; transform: translateX(-50%); animation: orbit3 9s linear infinite; }
.od4 { top: 50%; left: 5%; transform: translateY(-50%); animation: orbit4 7s linear infinite; }
@keyframes orbit1 { 0%,100%{top:10%;left:50%} 25%{top:50%;right:5%;left:auto} 50%{bottom:10%;top:auto;left:50%} 75%{top:50%;left:5%} }
@keyframes orbit2 { 0%,100%{top:50%;right:5%} 25%{bottom:10%;top:auto;left:50%} 50%{top:50%;left:5%} 75%{top:10%;left:50%} }
@keyframes orbit3 { 0%,100%{bottom:10%;left:50%} 25%{top:50%;left:5%} 50%{top:10%;left:50%} 75%{top:50%;right:5%;left:auto} }
@keyframes orbit4 { 0%,100%{top:50%;left:5%} 25%{top:10%;left:50%} 50%{top:50%;right:5%;left:auto} 75%{bottom:10%;top:auto;left:50%} }

.about-text { display: flex; flex-direction: column; gap: 24px; }

.mv-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: all 0.3s;
}
.mv-card:hover { border-color: var(--border-bright); transform: translateX(6px); }
.mvc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,229,255,0.15));
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 1.1rem; flex-shrink: 0;
}
.mv-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.mv-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin: 0; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: 4px;
  background: rgba(0,229,255,0.07); border: 1px solid var(--border);
  color: var(--cyan); transition: all 0.3s;
}
.skill-tags span:hover { background: rgba(0,229,255,0.15); border-color: var(--cyan); }

/* TEAM */
.team-section { margin-bottom: 80px; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.team-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 24px; text-align: center;
  overflow: hidden; transition: all 0.4s;
}
.team-card:hover { border-color: var(--border-bright); transform: translateY(-8px); }
.team-card.featured { border-color: rgba(0,255,136,0.3); }

.tc-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.team-card.featured .tc-glow { background: radial-gradient(circle, rgba(0,255,136,0.15) 0%, transparent 70%); }

.tc-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--panel), var(--card));
  border: 2px solid var(--border); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--cyan);
}
.tc-role {
  display: inline-block; font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; padding: 4px 12px; border-radius: 20px;
  margin-bottom: 10px;
}
.tc-role.president { background: rgba(255,58,92,0.15); color: var(--red); border: 1px solid rgba(255,58,92,0.3); }
.tc-role.tech-lead { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.3); }
.tc-role.faculty { background: rgba(10,132,255,0.1); color: var(--blue); border: 1px solid rgba(10,132,255,0.3); }

.tc-info h4 { font-family: var(--font-display); font-size: 0.9rem; color: var(--white); margin-bottom: 8px; }
.tc-info p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin: 0; }

.tc-hex {
  position: absolute; bottom: -20px; right: -20px;
  width: 80px; height: 80px; opacity: 0.05;
  background: var(--cyan);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}

/* TIMELINE */
.timeline-section { }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--green), var(--cyan), transparent);
}
.tl-item { position: relative; margin-bottom: 40px; }
.tl-node {
  position: absolute; left: -40px; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 0.75rem;
  box-shadow: var(--glow-cyan);
}
.tl-item.future .tl-node { border-color: var(--green); color: var(--green); box-shadow: var(--glow-green); }

.tl-content {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px;
  transition: all 0.3s;
}
.tl-content:hover { border-color: var(--border-bright); transform: translateX(6px); }
.tl-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); letter-spacing: 0.15em; margin-bottom: 6px; display: block; }
.tl-content h4 { font-family: var(--font-display); font-size: 0.95rem; color: var(--white); margin-bottom: 6px; }
.tl-content p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ===========================
   EVENTS
   =========================== */
.events-section { background: var(--panel); }

.events-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 24px;
  margin-bottom: 48px;
}

.event-card {
  position: relative; display: flex; gap: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: all 0.4s;
}
.event-card:hover { transform: translateY(-6px); border-color: var(--border-bright); }
.event-card:hover .ec-glow { opacity: 1; }

.ec-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px; min-width: 90px; text-align: center;
  font-family: var(--font-display); font-weight: 900;
}
.ec-date span { font-size: 2rem; line-height: 1; color: var(--white); }
.ec-date { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--muted); }

.ec1 .ec-date { background: linear-gradient(180deg, rgba(0,255,136,0.15), rgba(0,229,255,0.15)); }
.ec2 .ec-date { background: linear-gradient(180deg, rgba(0,229,255,0.12), rgba(10,132,255,0.12)); }
.ec3 .ec-date { background: linear-gradient(180deg, rgba(255,215,0,0.1), rgba(255,165,0,0.1)); }
.ec4 .ec-date { background: linear-gradient(180deg, rgba(255,58,92,0.12), rgba(255,100,0,0.12)); }

.ec-body { padding: 24px; flex: 1; }
.ec-type {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em;
  color: var(--muted); margin-bottom: 8px;
}
.ec-body h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); margin-bottom: 8px; }
.ec-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.ec-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ec-tags span {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(0,229,255,0.07); border: 1px solid var(--border); color: var(--cyan);
}

.ec-glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.categories-strip {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.cat-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 20px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
  transition: all 0.3s; cursor: default;
}
.cat-item i { color: var(--cyan); }
.cat-item:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,0.05); }

/* ===========================
   PROJECTS
   =========================== */
.projects-section { background: var(--dark); }
.projects-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

.proj-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; transition: all 0.4s; position: relative; overflow: hidden;
}
.proj-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  opacity: 0; transition: opacity 0.3s;
}
.proj-card:hover { border-color: var(--border-bright); transform: translateY(-6px); }
.proj-card:hover::after { opacity: 1; }
.proj-card.featured { border-color: rgba(0,255,136,0.25); }
.proj-card.featured::after { opacity: 1; }

.proj-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,255,136,0.12), rgba(0,229,255,0.12));
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--green); margin-bottom: 20px;
}
.proj-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); margin-bottom: 10px; }
.proj-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.proj-stack { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.proj-stack span {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(10,132,255,0.1); border: 1px solid rgba(10,132,255,0.2);
  color: var(--blue);
}

.proj-status {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 20px; display: inline-block;
}
.proj-status.coming {
  background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.3); color: var(--yellow);
}

/* ===========================
   ACHIEVEMENTS
   =========================== */
.achievements-section { background: var(--panel); }

.ach-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-bottom: 60px; }

.ach-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; transition: all 0.4s;
}
.ach-card:hover { border-color: var(--border-bright); transform: translateY(-4px); }

.ach-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,165,0,0.1));
  border: 1px solid rgba(255,215,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--yellow); margin-bottom: 20px;
}
.ach-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 8px; }
.ach-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.ach-progress { display: flex; align-items: center; gap: 12px; }
.ap-bar {
  flex: 1; height: 4px; background: var(--border); border-radius: 2px;
  position: relative; overflow: hidden;
}
.ap-bar::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  width: var(--w); background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 2px;
}
.ach-progress span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }

/* THREAT WIDGET */
.threat-widget {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.tw-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.1em;
}
.tw-badge {
  margin-left: auto; padding: 3px 10px; border-radius: 4px;
  background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.3);
  color: var(--yellow); font-size: 0.65rem;
}
#threatCanvas { width: 100%; height: 220px; display: block; }
.tw-legend {
  display: flex; gap: 20px; padding: 12px 20px; 
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

/* ===========================
   CONTACT
   =========================== */
.contact-section { background: var(--dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }

.benefits-col h3 {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--white);
  margin-bottom: 24px;
}
.benefit-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.bitem {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; transition: all 0.3s;
}
.bitem:hover { border-color: var(--border-bright); }
.bi-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,255,136,0.1), rgba(0,229,255,0.1));
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 0.95rem;
}
.bitem h4 { font-family: var(--font-display); font-size: 0.88rem; color: var(--white); margin-bottom: 4px; }
.bitem p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0; }

.contact-details h3 {
  font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 16px;
}
.cd-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  margin-bottom: 12px;
}
.cd-item i { color: var(--cyan); width: 16px; }

.social-row { display: flex; gap: 12px; margin-top: 20px; }
.soc {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; transition: all 0.3s;
}
.soc:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,0.07); }

/* FORM */
.form-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.fc-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
  background: var(--panel);
}
.email-link {
  color: var(--glow-green);
  text-decoration: none;
  transition: 0.3s ease;
}

.email-link:hover {
  color: var(--green);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}
.fc-dots { display: flex; gap: 6px; margin-left: auto; }
.fc-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.fc-dots span:nth-child(1) { background: var(--red); }
.fc-dots span:nth-child(2) { background: var(--yellow); }
.fc-dots span:nth-child(3) { background: var(--green); }

form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--muted);
}
.fg input, .fg select, .fg textarea {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px; color: var(--white);
  font-family: var(--font-body); font-size: 0.88rem;
  outline: none; transition: border-color 0.3s; resize: none;
}
.fg textarea { height: 80px; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--cyan); }
.fg select option { background: var(--panel); }

.submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border: none; border-radius: 8px; cursor: none;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: var(--black); font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 700; letter-spacing: 0.05em;
  transition: all 0.3s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: var(--glow-green); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--panel); border-top: 1px solid var(--border);
  padding: 40px 20px; text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.footer-logo .accent { color: var(--cyan); }
.footer-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 20px; }
.footer-nav { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-nav a {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--muted); text-decoration: none; transition: color 0.3s;
}
.footer-nav a:hover { color: var(--cyan); }
.footer-copy { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }

/* ===========================
   TOAST
   =========================== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--card); border: 1px solid var(--green); border-radius: 10px;
  padding: 14px 24px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--green);
  z-index: 9990; transition: transform 0.4s ease; box-shadow: var(--glow-green);
}
.toast.show { transform: translateX(-50%) translateY(0); }


/* ===========================
   INTERSECTION OBSERVER ANIMS
   =========================== */
.reveal {
  opacity: 0; transform: translateY(40px); transition: all 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   LOGO STYLES
   =========================== */
.nav-logo-img {
  height: 44px; width: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.hero-logo-img-wrap {
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-logo-img {
  height: clamp(80px, 18vw, 160px);
  width: auto; object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 30px rgba(0,229,255,0.35));
}
.footer-logo-img {
  height: 48px; width: auto;
  object-fit: contain; border-radius: 6px;
  margin-bottom: 12px; display: block; margin-left: auto; margin-right: auto;
}

/* ===========================
   YANTRAVERSE BANNER
   =========================== */
.yantraverse-banner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
  background: linear-gradient(135deg, rgba(16,24,38,0.95), rgba(10,12,28,0.95));
  border: 1px solid rgba(179,71,255,0.35);
  border-radius: 20px; padding: 48px;
  position: relative; overflow: hidden; margin-bottom: 24px;
}
.yantraverse-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(179,71,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.yantraverse-banner::after {
  content: 'YANTRAVERSE'; position: absolute;
  right: -20px; top: 50%; transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-display); font-size: 5rem; font-weight: 900;
  color: rgba(179,71,255,0.04); letter-spacing: 0.1em;
  pointer-events: none; white-space: nowrap;
}
.yb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em;
  color: #b347ff; border: 1px solid rgba(179,71,255,0.4);
  padding: 5px 14px; border-radius: 20px;
  background: rgba(179,71,255,0.08); margin-bottom: 16px;
}
.yb-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 6px;
}
.yb-title span { color: #b347ff; }
.yb-sub {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.15em;
  color: var(--muted); margin-bottom: 16px;
}
.yb-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 28px; max-width: 480px; }
.yb-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.yb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-weight: 700;
  font-family: var(--font-body); font-size: 0.88rem;
  text-decoration: none; transition: all 0.3s; cursor: pointer;
}
.yb-btn.primary {
  background: linear-gradient(135deg, #b347ff, #6a1fd4);
  color: var(--white); box-shadow: 0 0 20px rgba(179,71,255,0.4);
}
.yb-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(179,71,255,0.6); }
.yb-btn.ghost {
  border: 1px solid #b347ff; color: #b347ff;
  background: rgba(179,71,255,0.06);
}
.yb-btn.ghost:hover { background: rgba(179,71,255,0.15); transform: translateY(-2px); }

/* Yantraverse animated visual */
.yb-circuit {
  position: relative; width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.yb-hex-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: ring-spin linear infinite;
}
.yb-hex-ring.r1 { width: 100%; height: 100%; border-color: rgba(179,71,255,0.2); animation-duration: 18s; }
.yb-hex-ring.r2 { width: 70%; height: 70%; border-color: rgba(179,71,255,0.35); animation-duration: 12s; animation-direction: reverse; }
.yb-icon {
  width: 80px; height: 80px; z-index: 2;
  background: linear-gradient(135deg, #b347ff, #6a1fd4);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 2rem;
  box-shadow: 0 0 30px rgba(179,71,255,0.5);
  animation: core-pulse 3s ease-in-out infinite;
}
.yb-orbit {
  position: absolute; width: 32px; height: 32px;
  background: rgba(179,71,255,0.1); border: 1px solid rgba(179,71,255,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #b347ff; font-size: 0.75rem;
}
.yo1 { top: 6%; left: 50%; transform: translateX(-50%); }
.yo2 { bottom: 6%; right: 8%; }
.yo3 { bottom: 6%; left: 8%; }

/* Yantraverse card poster button */
.ec-poster-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; color: #b347ff;
  border: 1px solid rgba(179,71,255,0.35); border-radius: 6px;
  padding: 6px 14px; text-decoration: none; transition: all 0.3s;
  background: rgba(179,71,255,0.06);
}
.ec-poster-btn:hover { background: rgba(179,71,255,0.18); transform: translateY(-1px); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
  .yantraverse-banner { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .yantraverse-banner::after { display: none; }
  .yb-circuit { margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .shield-anim { width: 260px; height: 260px; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* Events: stack to single column */
  .events-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  /* Event cards: stack date above content */
  .event-card { flex-direction: column; }
  .ec-date {
    flex-direction: row; justify-content: flex-start;
    align-items: center; gap: 10px;
    min-width: unset; padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .ec-date span { font-size: 1.4rem; }

  /* Timeline: reduce left padding */
  .timeline { padding-left: 28px; }
  .timeline::before { left: 6px; }
  .tl-node { left: -28px; width: 28px; height: 28px; font-size: 0.65rem; }
}

/* ===========================
   MOBILE NAV + FOOTER FIX
   =========================== */

@media (max-width: 768px) {
  /* keep navbar above everything */
  .navbar {
    height: 64px;
    padding: 0 16px;
    z-index: 2000;
  }

  /* mobile menu panel */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    flex-direction: column;
    background: rgba(2, 4, 8, 0.98);
    padding: 20px 16px 28px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(20px);
    z-index: 1999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  /* make links full width */
  .nl {
    display: block;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
  }

  /* prevent page from feeling cramped under navbar */
  .hero-content {
    padding-top: 110px;
  }

  /* footer safe spacing */
  .footer {
    padding: 36px 16px 90px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }

  .footer-nav a {
    display: inline-block;
    white-space: nowrap;
  }

  .footer-copy {
    font-size: 0.78rem;
    line-height: 1.6;
    max-width: 320px;
  }

  /* contact section spacing before footer */
  .contact-section {
    padding-bottom: 70px;
  }
  
}
body.menu-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  /* Hero */
  .hero-ctas { flex-direction: column; align-items: center; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 100%; justify-content: center; }
  .hero-logo-img { height: 56px; }
  .hero-badge { font-size: 0.58rem; letter-spacing: 0.1em; }

  /* Section headers */
  .sh-title { font-size: 1.6rem; }
  .section-header { margin-bottom: 40px; }
  .section { padding: 50px 12px; }

  /* Event cards full bleed */
  .event-card { border-radius: 12px; }
  .ec-body h3 { font-size: 0.95rem; }
  .ec-body p { font-size: 0.8rem; }

  /* Countdown tiny */
  .time-block span { font-size: 1.7rem; }
  .time-block small { font-size: 0.55rem; }

  /* Team card */
  .team-card { padding: 24px 16px; }

  /* Benefits */
  .bitem { flex-direction: column; gap: 10px; }
  .bi-icon { align-self: flex-start; }

  /* Contact details */
  .cd-item { font-size: 0.72rem; }

  /* Yantraverse banner */
  .yantraverse-banner { padding: 20px 16px; }
  .yb-desc { font-size: 0.82rem; }
  .yb-circuit { display: none; }

  /* Threat widget log */
  .tw-log { height: 70px; font-size: 0.62rem; }
  .tw-header { font-size: 0.62rem; padding: 10px 12px; }
  .tw-counters { display: none; }
}

/* SUB TEAM SECTION */
.subteam-section {
  margin-top: 70px;
}

.subteam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.subteam-card {
  position: relative;
  background: rgba(10, 16, 26, 0.85);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 18px;
  padding: 24px 22px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.05);
}

.subteam-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.12);
}

.st-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0,255,136,0.12), transparent 45%);
  pointer-events: none;
}

.st-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.18);
  margin-bottom: 16px;
}

.subteam-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #fff;
}

.team-lead {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #b8c7d9;
  font-weight: 500;
}

.team-lead span {
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.35);
}

.member-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #dce7f3;
  font-size: 0.95rem;
}

.member-list li:last-child {
  border-bottom: none;
}