/* ========================================
   MedXperia 2K26 â€” Design System & Styles
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Caveat:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens (Spider-Verse) --- */
:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #0f1019;
  --bg-tertiary: #161928;
  --bg-card: rgba(15, 16, 25, 0.8);
  --bg-glass: rgba(22, 25, 40, 0.6);

  --accent-gold: #e23e57;
  --accent-gold-light: #ff6b8a;
  --accent-gold-dim: rgba(226, 62, 87, 0.15);
  --accent-crimson: #2de2e6;
  --accent-crimson-glow: rgba(45, 226, 230, 0.4);
  --accent-teal: #ff2d55;
  --accent-purple: #9b5de5;

  --text-primary: #f5f5f5;
  --text-secondary: #b0b8c8;
  --text-muted: #8b93a5;

  --font-brand: 'Orbitron', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(226, 62, 87, 0.25);
  --shadow-glow-strong: 0 0 50px rgba(226, 62, 87, 0.4);

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol { list-style: none; }

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text-secondary);
  max-width: 640px;
}

.text-gold { color: var(--accent-gold); }
.text-crimson { color: var(--accent-crimson); }

/* --- Animated Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* =====================
   NAVBAR
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 18, 0.97);
  padding: 10px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(226, 62, 87, 0.1);
}

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

.nav-logo {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo span {
  font-size: 0.7em;
  color: var(--text-secondary);
  font-weight: 400;
  display: block;
  letter-spacing: 1px;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-base);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-heading) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--bg-primary) !important;
  border-radius: 50px;
  letter-spacing: 1.5px !important;
  transition: transform var(--transition-base), box-shadow var(--transition-base) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  color: var(--bg-primary) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.nav-hamburger span {
  width: 26px;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-base);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Three.js canvas */
#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

/* Circuit trace decoration */
.hero-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
}

/* Gradient overlays */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(226, 62, 87, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(155, 93, 229, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(45, 226, 230, 0.08) 0%, transparent 60%);
  z-index: 1;
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 62, 87, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 62, 87, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 6s infinite;
}

@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.6; transform: translateY(-30px) scale(1); }
  100% { opacity: 0; transform: translateY(-200px) scale(0.3); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 80px 24px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 16, 25, 0.85);
  border: 1px solid rgba(226, 62, 87, 0.2);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 32px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-dept {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text-primary);
  text-shadow: 0 0 60px rgba(226, 62, 87, 0.2);
}

/* --- Glitch Effect --- */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  pointer-events: none;
  /* Hide the gradient text â€” show flat color offset */
  -webkit-text-fill-color: initial;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.glitch::before {
  color: #00e5ff;
  animation: glitchTop 8s infinite linear;
  clip-path: inset(0 0 65% 0);
  opacity: 0;
}

.glitch::after {
  color: #ff1744;
  animation: glitchBottom 8s infinite linear;
  clip-path: inset(60% 0 0 0);
  opacity: 0;
}

@keyframes glitchTop {
  0%, 87%    { opacity: 0; transform: translate(0); }
  87.5%      { opacity: 0.8; transform: translate(-3px, -2px); clip-path: inset(10% 0 65% 0); }
  88%        { opacity: 0.8; transform: translate(4px, 1px);  clip-path: inset(30% 0 50% 0); }
  88.5%      { opacity: 0.8; transform: translate(-2px, -1px); clip-path: inset(5% 0 70% 0); }
  89%        { opacity: 0.8; transform: translate(3px, 2px);  clip-path: inset(20% 0 55% 0); }
  89.5%      { opacity: 0.8; transform: translate(-4px, 0);   clip-path: inset(15% 0 60% 0); }
  90%        { opacity: 0; transform: translate(0); }
  100%       { opacity: 0; transform: translate(0); }
}

@keyframes glitchBottom {
  0%, 87%    { opacity: 0; transform: translate(0); }
  87.5%      { opacity: 0.8; transform: translate(3px, 2px);  clip-path: inset(55% 0 5% 0); }
  88%        { opacity: 0.8; transform: translate(-4px, -1px); clip-path: inset(65% 0 10% 0); }
  88.5%      { opacity: 0.8; transform: translate(2px, 1px);  clip-path: inset(50% 0 15% 0); }
  89%        { opacity: 0.8; transform: translate(-3px, -2px); clip-path: inset(60% 0 0% 0); }
  89.5%      { opacity: 0.8; transform: translate(4px, 0);    clip-path: inset(70% 0 5% 0); }
  90%        { opacity: 0; transform: translate(0); }
  100%       { opacity: 0; transform: translate(0); }
}

/* Disable glitch on reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glitch::before,
  .glitch::after {
    animation: none;
    display: none;
  }
}

.hero-title .gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-edition {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 10px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-meta-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(15, 16, 25, 0.85);
  border: 1px solid rgba(226, 62, 87, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 80px;
  text-align: center;
}

.countdown-item .number {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}

.countdown-item .label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(226, 62, 87, 0.3);
  border-radius: 50px;
  transition: var(--transition-base);
}

.btn-secondary:hover {
  background: rgba(226, 62, 87, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2s infinite;
}

.hero-scroll span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* =====================
   ABOUT SECTION
   ===================== */
.about {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(226, 62, 87, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

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

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background: rgba(15, 16, 25, 0.85);
  border: 1px solid rgba(226, 62, 87, 0.1);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition-base);
}

.stat-card:hover {
  border-color: rgba(226, 62, 87, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-brand);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.about-visual {
  position: relative;
}

.about-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 62, 87, 0.15);
  transition: var(--transition-base);
}

.about-poster:hover {
  box-shadow: var(--shadow-glow);
}

.about-poster img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating circuit decoration */
.about-decor {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(226, 62, 87, 0.1);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* =====================
   EVENTS SECTION
   ===================== */
.events {
  background: var(--bg-secondary);
  position: relative;
}

.events-header {
  text-align: center;
  margin-bottom: 64px;
}

.events-header .section-subtitle {
  margin: 0 auto;
}

/* Category tabs */
.events-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  background: var(--bg-glass);
  border: 1px solid rgba(226, 62, 87, 0.1);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-base);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  perspective: 1200px;
}

.event-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(226, 62, 87, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.event-card:hover {
  box-shadow: 0 20px 60px rgba(226, 62, 87, 0.15), 0 4px 20px rgba(0,0,0,0.4);
  border-color: rgba(226, 62, 87, 0.25);
}

.event-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-card-image img {
  transform: scale(1.08);
}

.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 18, 0.9) 0%, rgba(10, 10, 18, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.event-card:hover .event-card-overlay {
  opacity: 1;
}

.event-card-overlay .btn-small {
  padding: 8px 20px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  transition: var(--transition-base);
}

.event-card-overlay .btn-small:hover {
  background: var(--accent-gold-light);
  box-shadow: var(--shadow-glow);
}

.event-card-body {
  padding: 20px 24px 24px;
}

.event-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-gold-dim);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.event-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.event-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =====================
   HACKATHON PROBLEM STATEMENTS
   ===================== */
.hackathon {
  background: var(--bg-secondary);
}

.hackathon-header {
  text-align: center;
  margin-bottom: 48px;
}

.hackathon-header .section-subtitle {
  margin: 0 auto;
}

/* Instructions */
.hack-instructions {
  background: var(--bg-card);
  border: 1px solid rgba(226, 62, 87, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
}

.hack-rules {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.hack-rules li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hack-rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.hack-judging {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 62, 87, 0.1);
}

.hack-judging-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 16px;
  background: var(--accent-gold-dim);
  border-radius: var(--radius-sm);
}

.hack-judging-item strong {
  color: var(--accent-gold);
}

/* Track */
.hack-track {
  margin-bottom: 48px;
}

.hack-track-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hack-track-title svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.hack-track-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Problem Cards Grid */
.hack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.hack-card {
  background: var(--bg-card);
  border: 1px solid rgba(226, 62, 87, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.hack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gold);
  border-radius: 4px 0 0 4px;
}

.hack-card:hover {
  border-color: rgba(226, 62, 87, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.hack-card-id {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: var(--accent-gold-dim);
  border-radius: var(--radius-sm);
}

.hack-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.hack-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Coordinators */
.hack-coordinators {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.hack-coordinators strong {
  color: var(--accent-gold);
}

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

  .hack-judging {
    flex-direction: column;
    gap: 10px;
  }

  .hack-instructions {
    padding: 20px;
  }
}

/* =====================
   SCHEDULE / TIMELINE
   ===================== */
.schedule {
  background: var(--bg-primary);
  position: relative;
}

.schedule-header {
  text-align: center;
  margin-bottom: 64px;
}

.schedule-header .section-subtitle {
  margin: 0 auto;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-gold), rgba(226, 62, 87, 0.1));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 48px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(226, 62, 87, 0.3);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-time {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =====================
   CONTACT / REGISTRATION
   ===================== */
.contact {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155, 93, 229, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
}

.contact-item-text h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-item-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-item-text a {
  color: var(--accent-gold);
  transition: color var(--transition-base);
}

.contact-item-text a:hover {
  color: var(--accent-gold-light);
}

/* Registration form */
.reg-form {
  background: rgba(15, 16, 25, 0.9);
  border: 1px solid rgba(226, 62, 87, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.reg-form h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid rgba(226, 62, 87, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(226, 62, 87, 0.1);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

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

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: var(--transition-base);
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: #060810;
  padding: 64px 0 0;
  border-top: 1px solid rgba(226, 62, 87, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.footer-col a:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid rgba(226, 62, 87, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  padding: 0;
}

.footer-social a:hover {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  padding-left: 0;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer-social a:hover svg {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(226, 62, 87, 0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  display: inline;
  color: var(--accent-gold);
  padding: 0;
}

.footer-bottom a:hover {
  color: var(--accent-gold-light);
  padding-left: 0;
}

/* =====================
   RESPONSIVE
   ===================== */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 56px;
    padding-right: 0;
  }

  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section-padding {
    padding: 64px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right var(--transition-base);
    border-left: 1px solid rgba(226, 62, 87, 0.1);
    z-index: 999;
  }

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

  .nav-hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero-meta {
    gap: 20px;
  }

  .countdown {
    gap: 10px;
  }

  .countdown-item {
    padding: 12px 14px;
    min-width: 68px;
  }

  .countdown-item .number {
    font-size: 1.5rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
    letter-spacing: 2px;
  }

  .hero-edition {
    font-size: clamp(1.2rem, 7vw, 2rem);
    letter-spacing: 5px;
  }

  .countdown-item {
    padding: 10px 10px;
    min-width: 60px;
  }

  .countdown-item .number {
    font-size: 1.2rem;
  }

  .reg-form {
    padding: 24px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stat-card {
    padding: 16px 8px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* =============================================
   IMMERSIVE LAYER â€” CSS ADDITIONS
   ============================================= */



/* --- Section Emerge (observer-driven, not per-frame) --- */
.section-emerge {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-emerge.emerged {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Card depth shadow layers --- */
.event-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(226, 62, 87, 0.08), transparent 50%, rgba(155, 93, 229, 0.06));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* --- Timeline dot glow --- */
.timeline-dot {
  animation: dotGlow 3s ease-in-out infinite;
}

@keyframes dotGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(226, 62, 87, 0.3); }
  50% { box-shadow: 0 0 12px 4px rgba(226, 62, 87, 0.2), 0 0 0 3px rgba(226, 62, 87, 0.3); }
}

/* --- Timeline connecting line fade --- */
.timeline::before {
  background: linear-gradient(to bottom,
    var(--accent-gold),
    rgba(226, 62, 87, 0.4) 30%,
    rgba(226, 62, 87, 0.15) 70%,
    rgba(226, 62, 87, 0.05)
  ) !important;
}

/* --- Countdown subtle glow (no shimmer for perf) --- */
.countdown-item {
  position: relative;
  box-shadow: inset 0 0 20px rgba(226, 62, 87, 0.03);
}

/* --- Button micro-interaction: arrow slide --- */
.btn-primary svg,
.btn-secondary svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

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

/* --- Section gradient dividers --- */
.about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 62, 87, 0.15), transparent);
}

.events::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 62, 87, 0.1), transparent);
}

.schedule::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 93, 229, 0.12), transparent);
}

/* --- Background cursor-reactive shift --- */
.hero-grid {
  transform: translate(var(--cursor-shift-x, 0), var(--cursor-shift-y, 0));
  transition: transform 0.5s ease-out;
}

.about-decor {
  transform: translate(var(--cursor-shift-x, 0), var(--cursor-shift-y, 0));
  transition: transform 0.6s ease-out;
}

/* --- Stat card depth on reveal --- */
.stat-card {
  transition: var(--transition-base), opacity 0.7s ease, transform 0.7s ease;
}

/* --- Enhanced scroll hint --- */
.scroll-line {
  animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0%, 100% { opacity: 0.4; height: 40px; }
  50% { opacity: 1; height: 50px; }
}

