﻿/* ═══════════════════════════════════════════════════════
   MURIOUS 2026 — Cinematic One-Page Styles v2
   Full-screen animation BG + floating transparent UI
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'HarryPotter';
  src: url('../assets/fonts/harry_p/HARRYP__.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ════════════════════════════════════════════════════
   PAGE LOADER
   ════════════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050510;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader-gif {
  max-width: 286px;
  max-height: 286px;
}

:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(10, 10, 20, 0.55);
  --bg-glass: rgba(12, 12, 25, 0.5);
  --bg-glass-hover: rgba(18, 18, 35, 0.65);

  --gold: #d4a853;
  --gold-light: #f0d48a;
  --gold-glow: rgba(212, 168, 83, 0.35);
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.25);

  --text: #e8e4df;
  --text-muted: #9ca3af;
  --text-heading: #f5f0e8;

  --border: rgba(212, 168, 83, 0.12);
  --border-hover: rgba(212, 168, 83, 0.4);

  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --font-display: 'HarryPotter', 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-dark);
  cursor: none !important;
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-dark);

}

html::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;

}

body {
  font-family: var(--font-body);
  background: #050510;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none !important;
}

/* Fixed background that won't jitter on mobile address bar hide/show */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background: url('../assets/images/Background.webp') center center / cover no-repeat;
  z-index: -1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  pointer-events: none;
}

a,
button,
input,
select,
textarea {
  cursor: none !important;
}

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

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

/* ════════════════════════════════════════════════════
   MAGIC WAND CURSOR
   ════════════════════════════════════════════════════ */
.wand-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-10%, -10%) rotate(-30deg);
  transition: transform 0.05s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.wand-cursor img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.12s ease;
}

.wand-cursor .wand-static {
  opacity: 1;
}

.wand-cursor .wand-clicked {
  opacity: 0;
}

.wand-cursor.casting .wand-static {
  opacity: 0;
}

.wand-cursor.casting .wand-clicked {
  opacity: 1;
}

.wand-cursor.casting {
  transform: translate(-10%, -10%) rotate(-25deg) scale(1.15);
}

.wand-shadow {
  position: fixed;
  width: 30px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, 20px);
  filter: blur(3px);
  transition: opacity 0.15s;
}

.wand-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99998;
}

.sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleAnim 0.7s ease-out forwards;
}

@keyframes sparkleAnim {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(var(--sx), var(--sy)) scale(0);
    opacity: 0;
  }
}


@keyframes burstAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }

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

/* 
════════════════════════════════════════════════════
   CINEMATIC BACKGROUND (fixed, full-screen)
════════════════════════════════════════════════════ */

.bg-sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/Background.webp') center center / cover no-repeat, radial-gradient(ellipse at 50% 30%, #1a1a3a 0%, #0a0a15 60%, #050510 100%);
  z-index: 0;
}

.bg-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 5, 10, 0.6) 100%);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════
   CONTENT LAYER (scrollable, above background)
   ════════════════════════════════════════════════════ */
.content-layer {
  position: relative;
  z-index: 10;
}

/* ════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.5s ease;
}

#navbar.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  transition: var(--transition);
}

.nav-logo:hover {
  text-shadow: 0 0 20px var(--gold-glow);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════ */
.hero-section {
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-castle {
  width: clamp(220px, 55vw, 480px);
  position: absolute;
  left: 50%;
  bottom: -95vh;
  transform: translateX(-50%);
  transform-origin: center bottom;
  z-index: 6;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-tree {
  position: absolute;
  bottom: -8vh;
  height: calc(100vh + 8vh);
  width: auto;
  object-fit: cover;
  object-position: bottom;
  z-index: 10;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tree-left {
  left: 0;
  transform: translateX(-110%);
  transform-origin: left bottom;
}

.hero-tree-right {
  right: 0;
  transform: translateX(110%);
  transform-origin: right bottom;
}

.hero-clif {
  position: absolute;
  bottom: -8vh;
  z-index: 7;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-clif-left {
  left: 0;
  transform: translateX(-110%);
  width: 31vw;
  transform-origin: left bottom;
}

.hero-clif-right {
  right: 0;
  transform: translateX(110%);
  transform-origin: right bottom;
  width: 37vw;
}

.hero-content {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  will-change: filter, opacity;
  transition: filter 0.85s ease, opacity 0.85s ease;
}

.hero-pre {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 1s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: 12px;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(29, 23, 10, 0.314), 0 0 80px rgba(43, 35, 21, 0.1);
  opacity: 0;
  animation: fadeInUp 1s 0.6s forwards;
}

.hero-year {
  display: block;
  font-size: 0.35em;
  letter-spacing: 20px;
  color: var(--gold);
  margin-top: 8px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  letter-spacing: 4px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeInUp 1s 0.9s forwards;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  opacity: 0;
  animation: fadeInUp 1s 1.2s forwards;
}

.scroll-indicator {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeInUp 1s 1.5s forwards;
}

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

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 1;
  }

  50% {
    transform: rotate(45deg) translateY(8px);
    opacity: 0.5;
  }
}

/* ════════════════════════════════════════════════════
   GLASS CARD (universal transparent card)
   ════════════════════════════════════════════════════ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 30px var(--gold-glow),
    inset 0 0 30px rgba(212, 168, 83, 0.03);
  transform: translateY(-6px);
}

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

/* ════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════ */
.btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b8922e 100%);
  color: #0a0a0f;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px var(--gold-glow);
}

.btn-outline {
  background: rgba(212, 168, 83, 0.08);
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 168, 83, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-full {
  width: 100%;
  padding: 16px;
}

.btn-text,
.btn-magic {
  transition: 0.4s ease;
}

.btn-magic {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  white-space: nowrap;
}

.btn.submitted .btn-text {
  opacity: 0;
  transform: translateY(-20px);
}

.btn.submitted .btn-magic {
  opacity: 1;
}

/* ════════════════════════════════════════════════════
   SECTIONS (with transparent backgrounds)
   ════════════════════════════════════════════════════ */
.section {
  padding: 120px 0;
  position: relative;
}

.section::before {
  display: none;
}

.hero-section::before {
  display: none;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  /* increased size */
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 12px;

  text-shadow:
    0 0 6px rgba(212, 168, 83, 0.7),
    0 0 12px rgba(212, 168, 83, 0.5);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 3px;
  text-shadow: 0 0 30px rgba(212, 168, 83, 0.15);
}

.title-ornament {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  margin: 16px auto 0;
  border-radius: 2px;
  position: relative;
}

.title-ornament::before,
.title-ornament::after {
  content: '✦';
  position: absolute;
  top: -8px;
  font-size: 10px;
  color: var(--gold);
}

.title-ornament::before {
  left: -20px;
}

.title-ornament::after {
  right: -20px;
}

/* ════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.about-text .about-lead {
  font-size: 1.2rem;
  color: var(--text);
}

.about-text strong {
  color: var(--gold);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.highlight-card {
  padding: 28px 22px;
  text-align: center;
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.highlight-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

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

/* ════════════════════════════════════════════════════
   EVENTS
   ════════════════════════════════════════════════════ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  padding: 40px 20px;
}

.event-card {
  padding: 36px 28px;
  overflow: visible;
}

.event-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.event-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.event-type {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
  background: var(--purple-glow);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.event-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.event-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--gold);
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

/* DARK MAGIC CARD GLOW */

.evt-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;

  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
  transition: 0.4s;
}

.evt-card:hover .evt-card-img {
  transform: scale(1.05);

  filter: drop-shadow(0 0 25px rgba(0, 0, 0, 1));
}

/* SPELL GLOW */

.spell-glow {
  position: absolute;
  inset: 0;

  background: radial-gradient(circle at 50% 30%,
      rgba(0, 0, 0, 0.9),
      rgba(50, 0, 70, 0.5),
      transparent 70%);

  opacity: 0;
  transition: 0.5s;
  pointer-events: none;
}

.evt-card:hover .spell-glow {
  opacity: 1;
}

/* DARK WIZARD HOVER */

.evt-card:hover .evt-card-inner {

  transform: translateY(-10px) scale(1.03);

  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(60, 0, 90, 0.6);
}

/* RUNE BORDER */

.evt-card-inner::before {

  content: "";
  position: absolute;
  inset: 0;

  border-radius: 16px;
  padding: 1px;

  background: linear-gradient(120deg,
      transparent,
      #000000,
      #4c1d95,
      #000000,
      transparent);

  background-size: 300% 300%;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  animation: runeBorder 6s linear infinite;

  opacity: 0.7;
}

@keyframes runeBorder {

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

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

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

}

/* MAGIC PARTICLES */

.magic-particles span {

  position: absolute;
  width: 4px;
  height: 4px;

  background: #000;

  border-radius: 50%;

  box-shadow:
    0 0 10px #000,
    0 0 20px #4c1d95;

  animation: particleFloat 4s infinite;
}

@keyframes particleFloat {

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

  50% {
    opacity: 1;
  }

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

}



/* ════════════════════════════════════════════════════
   MARAUDER'S MAP — 2D SCATTERED LAYOUT
   ════════════════════════════════════════════════════ */

@font-face {
  font-family: 'HarryP';
  src: url('../assets/fonts/harry_p/HARRYP__.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Parchment Container ── */
.marauder-map {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(160deg,
      #d4b896 0%, #c9a87c 15%, #dcc8a0 30%,
      #c4a06a 50%, #d8c09c 70%, #c9a87c 85%, #bfa070 100%);
  border: 3px solid #8b6914;
  border-radius: 6px;
  padding: 50px 30px 40px;
  margin: 0 auto;
  max-width: 1100px;
  box-shadow:
    inset 0 0 80px rgba(139, 105, 20, 0.25),
    0 10px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(139, 105, 20, 0.3);
  overflow: hidden;
}

.marauder-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(101, 67, 33, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Corner Ornaments ── */
.map-corner {
  position: absolute;
  width: 70px;
  height: 70px;
  z-index: 2;
  opacity: 0.6;
}

.map-corner::before,
.map-corner::after {
  content: '';
  position: absolute;
  background: #5a3a1a;
}

.map-corner--tl {
  top: 12px;
  left: 12px;
}

.map-corner--tl::before {
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
}

.map-corner--tl::after {
  top: 0;
  left: 0;
  width: 2px;
  height: 40px;
}

.map-corner--tr {
  top: 12px;
  right: 12px;
}

.map-corner--tr::before {
  top: 0;
  right: 0;
  width: 40px;
  height: 2px;
}

.map-corner--tr::after {
  top: 0;
  right: 0;
  width: 2px;
  height: 40px;
}

.map-corner--bl {
  bottom: 12px;
  left: 12px;
}

.map-corner--bl::before {
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
}

.map-corner--bl::after {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 40px;
}

.map-corner--br {
  bottom: 12px;
  right: 12px;
}

.map-corner--br::before {
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
}

.map-corner--br::after {
  bottom: 0;
  right: 0;
  width: 2px;
  height: 40px;
}

/* ── Compass Rose ── */
.map-compass {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 55px;
  height: 55px;
  z-index: 2;
  opacity: 0.35;
}

.map-compass::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: #5a3a1a;
}

.map-compass::after {
  content: 'N';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'HarryP', serif;
  font-size: 14px;
  color: #5a3a1a;
}

/* ── Central Shield Title ── */
.map-shield {
  text-align: center;
  margin: 0 auto 10px;
  position: relative;
  z-index: 5;
  max-width: 280px;
}

.map-shield-inner {
  background: linear-gradient(180deg, #7a1a1a 0%, #5c1010 100%);
  border: 3px solid #8b6914;
  border-radius: 8px 8px 50% 50% / 8px 8px 20% 20%;
  padding: 20px 24px 28px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
}

.map-shield-inner::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 4px 4px 50% 50% / 4px 4px 18% 18%;
  pointer-events: none;
}

.map-shield-pre {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(240, 212, 138, 0.7);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.map-shield-title {
  font-family: 'HarryP', 'Cinzel Decorative', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #f0d48a;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  letter-spacing: 2px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.map-oath {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  color: rgba(240, 212, 138, 0.6);
  letter-spacing: 2px;
  font-style: italic;
}

/* ── Parchment Tabs ── */
.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.schedule-tab {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 8px 20px;
  border: 1.5px solid #8b6914;
  border-radius: 4px;
  background: rgba(201, 168, 124, 0.4);
  color: #5a3a1a;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  text-transform: uppercase;
}

.schedule-tab:hover {
  background: rgba(139, 105, 20, 0.2);
  box-shadow: 0 0 12px rgba(139, 105, 20, 0.25);
}

.schedule-tab.active {
  background: linear-gradient(135deg, #8b6914, #a67c1e);
  color: #f5e6c8;
  border-color: #6b4e12;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(139, 105, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ── SVG Dotted Paths ── */
.map-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.map-route {
  stroke: #5a3a1a;
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  stroke-linecap: round;
  fill: none;
  opacity: 0.4;
}

.map-walker {
  opacity: 0.6;
}

/* ── Map Locations Grid (2D scattered) ── */
.map-locations {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  padding: 10px 0;
  min-height: 200px;
}

/* ── Location Item ── */
.map-loc {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.map-loc.map-revealed {
  opacity: 1;
  transform: scale(1);
}

/* Zigzag offset to look scattered */
.map-loc--1 {
  justify-self: start;
}

.map-loc--2 {
  justify-self: end;
}

.map-loc--3 {
  justify-self: start;
  margin-left: 5%;
}

.map-loc--4 {
  justify-self: end;
  margin-right: 5%;
}

.map-loc--5 {
  justify-self: center;
  grid-column: 1 / -1;
}

/* ── Numbered Shield Marker ── */
.map-marker {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, #c0392b 0%, #8b1a1a 100%);
  border: 2.5px solid #8b6914;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: #f0d48a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  margin-top: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-marker span,
.map-marker {
  line-height: 1;
}

/* Un-rotate the text inside */
.map-marker::after {
  content: attr(data-num);
}

.map-loc:hover .map-marker {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 4px 16px rgba(139, 26, 26, 0.5);
}

/* ── Gold Banner Event Card ── */
.map-card {
  flex: 1;
  background: linear-gradient(180deg,
      rgba(196, 160, 106, 0.6) 0%,
      rgba(180, 146, 90, 0.5) 100%);
  border: 1.5px solid #8b6914;
  border-radius: 4px;
  padding: 14px 18px;
  position: relative;
  transition: all 0.3s ease;
  max-width: 380px;
}

/* Left gold accent (like a banner ribbon) */
.map-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #d4a853, #8b6914);
  border-radius: 4px 0 0 4px;
}

.map-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.5), transparent);
}

.map-loc:hover .map-card {
  background: linear-gradient(180deg,
      rgba(196, 160, 106, 0.75) 0%,
      rgba(180, 146, 90, 0.65) 100%);
  box-shadow: 0 4px 16px rgba(139, 105, 20, 0.25);
  transform: translateY(-2px);
}

.map-card-time {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #8b6914;
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.map-card h4 {
  font-family: 'HarryP', 'Cinzel Decorative', serif;
  font-size: 1.15rem;
  color: #3b2510;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.map-card p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  color: #5a3a1a;
  line-height: 1.5;
  margin: 0;
}

/* ── Mischief Managed Footer ── */
.map-footer {
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 5;
}

.map-footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.map-footer-line::before,
.map-footer-line::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b6914, transparent);
}

.map-managed {
  font-family: 'HarryP', 'Cinzel Decorative', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #3b2510;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* ── Section Title Override ── */
#schedule .section-header {
  margin-bottom: 30px;
}

#schedule .section-title {
  font-family: 'HarryP', 'Cinzel Decorative', serif;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(212, 168, 83, 0.3);
}

/* ── Parchment unfold animation ── */
.marauder-map {
  animation: parchmentUnfold 0.8s ease-out both;
  animation-play-state: paused;
}

.marauder-map.map-visible {
  animation-play-state: running;
}

@keyframes parchmentUnfold {
  0% {
    opacity: 0;
    transform: scale(0.95) rotateX(3deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotateX(0deg);
  }
}

/* ── Ink Splatters ── */
.map-splatter {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(90, 58, 26, 0.15);
  border-radius: 50%;
  z-index: 1;
}

.map-splatter:nth-child(1) {
  top: 15%;
  right: 18%;
  width: 4px;
  height: 4px;
}

.map-splatter:nth-child(2) {
  top: 40%;
  left: 8%;
  width: 8px;
  height: 8px;
  opacity: 0.08;
}

.map-splatter:nth-child(3) {
  bottom: 25%;
  right: 10%;
  width: 5px;
  height: 5px;
}

/* ════════════════════════════════════════════════════
   REGISTER
   ════════════════════════════════════════════════════ */
.register-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.register-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.register-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.register-perks {
  list-style: none;
}

.register-perks li {
  font-size: 0.95rem;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: 0.3s ease;
}

.register-perks li:hover {
  padding-left: 10px;
  color: var(--gold);
}

.register-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px;
}

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

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  background: rgba(10, 10, 20, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: var(--transition);
  outline: none;
  cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(156, 163, 175, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  background: rgba(10, 10, 20, 0.7);
}

.form-group select {
  cursor: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a853' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text);
}

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

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* ════════════════════════════════════════════════════
   REGISTRATION SECTION
   ════════════════════════════════════════════════════ */
.register-content {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.register-form {
  position: relative;
}

/* Fee Display */
.fee-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(212, 168, 83, 0.25);
  animation: feeSlideIn 0.4s ease forwards;
}

.fee-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fee-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
  animation: feePulse 2s ease-in-out infinite;
}

@keyframes feeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes feePulse {

  0%,
  100% {
    text-shadow: 0 0 20px var(--gold-glow);
  }

  50% {
    text-shadow: 0 0 35px var(--gold-glow), 0 0 60px rgba(212, 168, 83, 0.15);
  }
}

/* Loading Overlay */
.reg-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 20;
}

.reg-loading-overlay.active {
  display: flex;
}

.reg-loading-overlay span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.reg-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(212, 168, 83, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: regSpin 0.8s linear infinite;
}

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

/* Success / Error Messages */
.reg-message {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  animation: msgSlideIn 0.5s ease forwards;
}

.reg-message.active {
  display: flex;
}

.reg-msg-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.reg-message strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
}

.reg-message p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.reg-message--success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.reg-message--success strong {
  color: #22c55e;
}

.reg-message--success .reg-msg-icon {
  color: #22c55e;
}

.reg-message--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.reg-message--error strong {
  color: #ef4444;
}

.reg-message--error .reg-msg-icon {
  color: #ef4444;
}

@keyframes msgSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* ════════════════════════════════════════════════════
   SPONSORS
   ════════════════════════════════════════════════════ */
.sponsors-tier {
  margin-bottom: 50px;
  text-align: center;
}

.tier-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.sponsors-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.sponsor-card {
  padding: 36px 48px;
  position: relative;
}

/* .sponsor-card {
  padding: 20px 30px;
  position: relative;
}

.sponsors-grid-title .sponsor-card {
  padding: 48px 80px;
  font-size: 1.4rem;
}
.sponsor-card img {
  width: 100px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  display: block;
}
/* === CLEAN SPONSOR CAROUSEL === */

.sponsors-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 30px 0;
}

.sponsors-track {
  display: flex;
  gap: 30px;
  width: max-content;
  /* VERY IMPORTANT */
  animation: scrollSponsors 25s linear infinite;
  will-change: transform;
}

.sponsors-track:hover {
  animation-play-state: paused;
}

/* .sponsor-card {
  min-width: 140px;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
} */
.sponsor-card {
  width: 220px;
  /* fixed width */
  height: 180px;
  /* fixed height */
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* .sponsor-card img {
  width: 100px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
} */
.sponsor-card img {
  max-width: 120px;
  max-height: 70px;
  object-fit: contain;
}

/* Infinite smooth animation */
@keyframes scrollSponsors {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


.sponsors-grid-gold .sponsor-card {
  padding: 36px 56px;
  font-size: 1.1rem;
}

.sponsors-grid-silver .sponsor-card {
  padding: 28px 40px;
  font-size: 0.95rem;
}

.sponsor-card span {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: 2px;
}

.sponsor-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1;
}

.sponsor-card:hover .sponsor-glow {
  width: 200px;
  height: 200px;
  opacity: 1;
}

/* ════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.contact-info>p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.5rem;
  margin-top: 2px;
}

.contact-item strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--text-heading);
  display: block;
  margin-bottom: 4px;
}

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

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer {
  position: relative;
  padding: 50px 30px 30px;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: rgba(156, 163, 175, 0.5);
}

/* ════════════════════════════════════════════════════
   FEATURED EVENT (HackVortex)
   ════════════════════════════════════════════════════ */
.featured-event {
  padding: 48px;
  margin-bottom: 48px;
  border: 1px solid var(--gold-glow);
  background: rgba(212, 168, 83, 0.04);
}

.featured-event-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.featured-event-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.featured-event-content strong {
  color: var(--gold-light);
}

.featured-sub {
  font-style: italic;
  color: var(--text) !important;
}

.featured-type {
  background: linear-gradient(135deg, var(--gold), #b8922e) !important;
  color: #0a0a0f !important;
  font-weight: 700 !important;
}

.events-grid-small {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 700px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════
   SPONSORS
   ════════════════════════════════════════════════════ */
.sponsors-tier {
  margin-bottom: 50px;
  text-align: center;
}

.tier-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.sponsors-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.sponsor-card {
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 180px;
  position: relative;
}

.sponsor-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  filter: brightness(0.9);
  transition: var(--transition);
}

.sponsor-card:hover .sponsor-img {
  filter: brightness(1.1);
  transform: scale(1.08);
}

.sponsor-card span {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: 2px;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.sponsor-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1;
}

.sponsor-card:hover .sponsor-glow {
  width: 200px;
  height: 200px;
  opacity: 1;
}

/* ════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.events-grid .event-card.reveal.active:nth-child(1) {
  transition-delay: 0s;
}

.events-grid .event-card.reveal.active:nth-child(2) {
  transition-delay: 0.1s;
}

.events-grid .event-card.reveal.active:nth-child(3) {
  transition-delay: 0.2s;
}

.events-grid .event-card.reveal.active:nth-child(4) {
  transition-delay: 0.3s;
}

.events-grid .event-card.reveal.active:nth-child(5) {
  transition-delay: 0.4s;
}

.events-grid .event-card.reveal.active:nth-child(6) {
  transition-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ════════════════════════════════════════════════════
   EVENT SCROLL GALLERY
   ════════════════════════════════════════════════════ */
.event-scroll-container {
  height: 1200vh;
}

@media (max-width:768px) {
  .event-scroll-container {
    height: auto;
  }
}

.event-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  /* background: radial-gradient(ellipse at center, rgba(10, 10, 20, 0.92) 0%, rgba(5, 5, 10, 0.96) 70%); */
}

.evt-section-label {
  position: absolute;
  top: 30px;
  left: 40px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 20;
  opacity: 0.7;
}

.event-card-gallery {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.1);
}

.evt-card {
  position: absolute;
  width: 280px;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.evt-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.evt-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, var(--gold-glow) 0%, transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

.evt-card-icon {
  font-size: 4rem;
  filter: drop-shadow(0 4px 20px rgba(212, 168, 83, 0.4));
  position: relative;
  z-index: 2;
}

.evt-card-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-align: center;
  color: var(--text-heading);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

/* ── Text panel ── */
.evt-text-panel {
  position: absolute;
  bottom: 100px;
  left: 60px;
  max-width: 400px;
  z-index: 10;
  will-change: transform, opacity;
}

.evt-text-type {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-light);
  background: var(--purple-glow);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.evt-text-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow);
}

.evt-text-panel p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ── Card counter ── */
.evt-card-counter {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 20;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.evt-card-counter .evt-current {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 700;
}

/* ── Dot indicators ── */
.evt-dot-indicators {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.evt-dot.active {
  background: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ── Bottom progress bar ── */
.evt-bottom-bar {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  z-index: 20;
}

.evt-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.evt-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  border-radius: 2px;
  transition: width 0.1s ease;
}

/* ── Gallery responsive ── */
@media (max-width: 768px) {
  .evt-card {
    width: 200px;
    height: 270px;
    border-radius: 14px;
  }

  .evt-card-icon {
    font-size: 2.8rem;
  }

  .evt-card-label {
    font-size: 0.85rem;
  }

  .evt-text-panel {
    left: 20px;
    bottom: 85px;
    max-width: 220px;
  }

  .evt-text-panel h2 {
    font-size: 1.3rem;
  }

  .evt-text-panel p {
    font-size: 0.78rem;
  }

  .evt-dot-indicators {
    right: 14px;
  }

  .evt-bottom-bar {
    width: 150px;
  }

  .evt-section-label {
    left: 20px;
    font-size: 0.65rem;
  }

  .event-scroll-container {
    height: 1200vh;
  }

  @media (max-width:768px) {
    .event-scroll-container {
      height: 850vh;
    }
  }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Hide wand on touch devices */
  .wand-cursor,
  .wand-shadow,
  .wand-trail {
    display: none;
  }

  html,
  body,
  a,
  button,
  input,
  select,
  textarea {
    cursor: auto !important;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    padding: 80px 30px 30px;
    gap: 4px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border);
  }

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

  .nav-link {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 80px 0;
  }

  .about-grid,
  .register-wrapper,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .hero-title {
    letter-spacing: 4px;
  }

  .hero-year {
    letter-spacing: 10px;
  }

  /* Castle positioning for tablet */
  .hero-castle {
    width: clamp(180px, 50vw, 400px);
    bottom: -85vh;
  }

  /* Trees positioning for tablet */
  .hero-tree {
    bottom: -5vh;
  }

  .hero-tree-left,
  .hero-tree-right {
    width: 25vw;
    max-width: 200px;
    display: none;
  }

  /* Cliffs (rocks) positioning for tablet */
  .hero-clif {
    bottom: -5vh;
  }

  .hero-clif-left {
    width: 28vw;
  }

  .hero-clif-right {
    width: 32vw;
  }

  /* Marauder's Map responsive — 2D grid */
  .marauder-map {
    padding: 40px 18px 35px;
    margin: 0 -10px;
  }

  .map-shield-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
  }

  .map-corner {
    width: 45px;
    height: 45px;
  }

  .map-corner::before {
    width: 25px !important;
  }

  .map-corner::after {
    height: 25px !important;
  }

  .map-compass {
    display: none;
  }

  .map-locations {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .map-loc--1,
  .map-loc--2,
  .map-loc--3,
  .map-loc--4,
  .map-loc--5 {
    justify-self: stretch;
    margin: 0;
  }

  .map-paths {
    display: none;
  }

  .schedule-tabs {
    flex-direction: column;
    align-items: center;
  }

  .schedule-tab {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .sponsor-card {
    padding: 24px 32px !important;
  }

  .register-form,
  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-pre {
    font-size: 0.7rem;
    letter-spacing: 3px;
  }

  /* Tagline Readability Correction */

  .hero-tagline {
    color: #F2EAD3;
  }

  /* Castle positioning for mobile */
  .hero-castle {
    width: clamp(160px, 100vw, 320px);
    bottom: -80vh;
  }

  /* Trees positioning for mobile */
  .hero-tree {
    bottom: -3vh;
  }

  .hero-tree-left,
  .hero-tree-right {
    width: 50vw;
    max-width: 400px;
    display: none;

  }

  /* Cliffs (rocks) positioning for mobile */
  .hero-clif {
    bottom: -3vh;
  }

  .hero-clif-left {
    width: 40vw;
  }

  .hero-clif-right {
    width: 45vw;
  }

  .section-container {
    padding: 0 16px;
  }

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

  .sponsors-grid {
    flex-direction: column;
    align-items: center;
  }

  /* Marauder's Map — small mobile */
  .marauder-map {
    padding: 30px 12px 25px;
  }

  .map-shield-title {
    font-size: 1.3rem;
  }

  .map-shield-inner {
    padding: 14px 16px 20px;
  }

  .map-oath {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
  }

  .map-card {
    padding: 12px 14px;
  }

  .map-marker {
    width: 36px;
    height: 36px;
    font-size: 0.65rem;
  }

  .map-managed {
    font-size: 1.1rem;
  }
}

/* =================================
TEAM SECTION
================================= */

.team-category-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 60px 0 40px;
}

/* grid */

.team-grid {
  display: grid;
  gap: 30px;
  justify-content: center;
  justify-items: center;
  align-items: stretch;
  margin-top: 30px;
}

.team-grid-1 {
  grid-template-columns: 280px;
}

.team-grid-2 {
  grid-template-columns: repeat(2, 280px);
}

.team-grid-3 {
  grid-template-columns: repeat(3, 260px);
}

.team-grid-4 {
  grid-template-columns: repeat(4, 240px);
}

/* card */

.team-card {
  overflow: hidden;
  text-align: center;
  padding-bottom: 15px;
  max-width: 280px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top;
  transition: 0.4s;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* info */

.team-info {
  padding: 18px;
  margin-top: auto;
}

.team-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.team-info span {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

/* socials */

.team-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.team-socials a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: 0.3s;
}

.team-socials a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 900px) {

  .team-grid-4 {
    grid-template-columns: repeat(2, 260px);
  }

  .team-grid-3 {
    grid-template-columns: repeat(2, 260px);
  }

}

@media (max-width: 600px) {

  .team-grid-4,
  .team-grid-3,
  .team-grid-2 {
    grid-template-columns: 260px;
  }


}

.team-card:hover {
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 25px var(--gold-glow);
  transform: translateY(-6px);
}

/* ═════════════════════════════════
   MOBILE NAVBAR
═════════════════════════════════ */

@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
    z-index: 1100;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -260px;
    height: 100vh;
    width: 240px;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px;
    gap: 18px;
    transition: right 0.35s ease;
  }

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

  .nav-link {
    font-size: 0.9rem;
    width: 100%;
  }

}