/* ============================================
   PANDEMONIUM DMV — Stylesheet
   Vibe: Neon Caribbean Carnival, gritty, electric
   ============================================ */

:root {
  --yellow: #FFD400;
  --yellow-soft: #FFE55C;
  --blue: #1A2B8C;
  --blue-deep: #0D1454;
  --pink: #FF2D87;
  --green: #00F5A0;
  --cyan: #00E5FF;
  --purple: #8B2FFF;
  --black: #0A0A0F;
  --off-white: #FAF8F2;

  --font-display: 'Bungee', 'Anton', sans-serif;
  --font-impact: 'Anton', 'Bungee', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  --max-width: 1400px;
  --section-pad: clamp(4rem, 10vw, 8rem);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all .25s ease; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }

/* GRAIN OVERLAY */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: .08;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 212, 0, .2);
  transition: all .3s ease;
}
.nav-logo img { height: 40px; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--off-white);
  position: relative;
}
.nav-links a:hover { color: var(--yellow); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-ig {
  background: var(--yellow);
  color: var(--blue) !important;
  padding: .6rem 1.1rem;
  border-radius: 50px;
  border: 2px solid var(--yellow);
}
.nav-ig:hover {
  background: transparent;
  color: var(--yellow) !important;
  transform: rotate(-2deg);
}
.nav-ig::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 1001;
}
.nav-toggle span {
  width: 28px; height: 3px;
  background: var(--yellow);
  transition: all .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.3) contrast(1.1);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 15, .4) 50%, rgba(10, 10, 15, .85) 100%),
    linear-gradient(180deg, rgba(26, 43, 140, .3) 0%, transparent 30%, rgba(10, 10, 15, .6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 1200px;
}
.hero-tagline {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .35em;
  font-size: clamp(.75rem, 1.2vw, 1rem);
  color: var(--yellow);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp .8s ease .3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: .9;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  word-spacing: -.3em;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .hero-title { white-space: normal; font-size: clamp(3.5rem, 14vw, 6rem); }
}
.hero-title .word {
  display: inline-block;
  color: var(--yellow);
  text-shadow:
    4px 4px 0 var(--blue),
    8px 8px 0 var(--blue-deep);
  opacity: 0;
  transform: translateY(40px);
  animation: dropIn .6s cubic-bezier(.2, 1.2, .3, 1) forwards;
}
.hero-title .word-1 { animation-delay: .1s; }
.hero-title .word-2 { animation-delay: .25s; color: var(--yellow); }
.hero-title .word-3 { animation-delay: .4s; }
.hero-title .word-4 { animation-delay: .55s; }
@keyframes dropIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeInUp .8s ease .9s forwards;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp .8s ease 1.1s forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--yellow);
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1s ease 1.5s forwards;
}
.scroll-line {
  width: 1px; height: 40px;
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -40px; left: 0;
  width: 100%; height: 40px;
  background: var(--off-white);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  to { top: 100%; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .3s cubic-bezier(.2, 1, .3, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--yellow);
  color: var(--blue-deep);
  border-color: var(--yellow);
  box-shadow: 0 4px 0 var(--blue), 0 4px 20px rgba(255, 212, 0, .3);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue), 0 8px 30px rgba(255, 212, 0, .5);
  background: var(--yellow-soft);
}
.btn-primary:active {
  transform: translate(0, 2px);
  box-shadow: 0 2px 0 var(--blue);
}
.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border-color: var(--off-white);
}
.btn-ghost:hover {
  background: var(--off-white);
  color: var(--black);
  transform: translate(-2px, -2px);
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--yellow);
  color: var(--blue-deep);
  padding: 1.2rem 0;
  overflow: hidden;
  border-top: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: scrollMarquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: .1em;
}
.marquee-track span { padding-right: 2rem; }
@keyframes scrollMarquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTIONS — common
   ============================================ */
.section {
  padding: var(--section-pad) 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .3em;
  color: var(--yellow);
  margin-bottom: 1rem;
  font-weight: 700;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: .95;
  margin-bottom: 1rem;
  letter-spacing: -.01em;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--blue), 6px 6px 0 var(--blue-deep);
}
.section-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  opacity: .8;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   EVENTS
   ============================================ */
.events-section { background: var(--black); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.event-card {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border: 2px solid var(--yellow);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all .4s cubic-bezier(.2, 1, .3, 1);
}
.event-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 212, 0, .15), transparent 60%);
  pointer-events: none;
}
.event-card:hover {
  transform: translateY(-6px) rotate(-.5deg);
  box-shadow: 0 20px 40px rgba(255, 212, 0, .25);
}
.event-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--yellow);
  color: var(--blue-deep);
  padding: .6rem 1rem;
  border-radius: 12px;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
  min-width: 80px;
}
.event-date-badge .month {
  font-size: .8rem;
  letter-spacing: .15em;
}
.event-date-badge .day {
  font-size: 2rem;
  line-height: 1;
}
.event-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--blue-deep);
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  opacity: .9;
}
.event-meta .meta-item::before {
  content: '◆';
  color: var(--yellow);
  margin-right: .5rem;
}
.event-desc {
  font-size: .95rem;
  margin-bottom: 1.5rem;
  opacity: .85;
}
.event-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--yellow);
  color: var(--blue-deep);
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .9rem;
}
.event-cta:hover {
  background: var(--off-white);
  transform: scale(1.02);
}
.event-cta.sold-out {
  background: var(--blue-deep);
  color: var(--off-white);
  border: 2px dashed var(--yellow);
  cursor: not-allowed;
  opacity: .6;
}
.event-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  opacity: .5;
}
.no-events {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  background: var(--blue-deep);
  border-radius: 24px;
  border: 2px dashed var(--yellow);
}
.no-events h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 1rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  background: linear-gradient(180deg, var(--black) 0%, var(--blue-deep) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
}
.about-text .section-title { text-align: left; margin-bottom: 1.5rem; }
.about-text .section-label { display: block; }
.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  opacity: .9;
}
.about-text em {
  color: var(--yellow);
  font-style: italic;
}
.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  opacity: .7;
  margin-top: .5rem;
}
.about-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--yellow);
  transform: rotate(2deg);
  box-shadow: -10px 10px 0 var(--blue), 0 30px 60px rgba(0, 0, 0, .5);
  transition: transform .5s ease;
}
.about-image:hover { transform: rotate(0deg) scale(1.02); }
.about-image img {
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
  background: var(--blue-deep);
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.gallery-section > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px 200px;
  gap: 1rem;
  margin: 3rem auto;
}
.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.4);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 212, 0, .3));
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gi-1 { grid-column: span 2; grid-row: span 2; }
.gi-2 { grid-column: span 1; grid-row: span 1; }
.gi-3 { grid-column: span 1; grid-row: span 1; }
.gi-4 { grid-column: span 1; grid-row: span 2; }
.gi-5 { grid-column: span 1; grid-row: span 1; }
.gi-6 { grid-column: span 2; grid-row: span 1; }

.gallery-cta {
  text-align: center;
  margin-top: 3rem;
}
.gallery-note {
  margin-top: 1.5rem;
  opacity: .7;
  font-size: .95rem;
}
.gallery-note a {
  color: var(--yellow);
  border-bottom: 1px solid var(--yellow);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  background: var(--yellow);
  color: var(--blue-deep);
  text-align: center;
}
.newsletter-section .section-label { color: var(--blue); }
.newsletter-section .section-title {
  color: var(--blue-deep);
  text-shadow: 4px 4px 0 var(--off-white);
}
.newsletter-box {
  max-width: 700px;
  margin: 0 auto;
}
.newsletter-box p {
  font-size: 1.1rem;
  margin: 1rem 0 2rem;
}
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.25rem;
  border: 2px solid var(--blue-deep);
  border-radius: 50px;
  background: var(--off-white);
  color: var(--blue-deep);
}
.newsletter-form input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 4px rgba(26, 43, 140, .2);
}
.newsletter-form .btn-primary {
  background: var(--blue-deep);
  color: var(--yellow);
  border-color: var(--blue-deep);
  box-shadow: 0 4px 0 var(--off-white);
}
.newsletter-form .btn-primary:hover {
  background: var(--blue);
  box-shadow: 6px 6px 0 var(--off-white);
}
.form-note {
  margin-top: 1rem;
  font-size: .85rem;
  opacity: .7;
}

/* ============================================
   MERCH
   ============================================ */
.merch-section {
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.merch-section::before {
  content: 'COMING SOON';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--yellow);
  opacity: .04;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.merch-box {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.merch-box p {
  font-size: 1.15rem;
  margin: 1.5rem 0 2rem;
  opacity: .85;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: linear-gradient(180deg, var(--black) 0%, var(--blue-deep) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-grid .section-title { text-align: left; }
.contact-grid .section-label { display: block; }
.contact-tagline {
  font-size: 1.1rem;
  margin: 1.5rem 0 2rem;
  opacity: .85;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--yellow);
  border-bottom: 3px solid var(--yellow);
  padding-bottom: .25rem;
  word-break: break-all;
}
.contact-email:hover {
  color: var(--off-white);
  border-color: var(--off-white);
}
.socials {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.socials a {
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .9rem;
}
.socials a:hover { color: var(--yellow); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, .05);
  border: 2px solid rgba(255, 212, 0, .3);
  border-radius: 16px;
  color: var(--off-white);
  transition: all .25s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(250, 248, 242, .5);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255, 212, 0, .05);
}
.contact-form select option {
  background: var(--blue-deep);
  color: var(--off-white);
}
.contact-form textarea { resize: vertical; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  border-top: 4px solid var(--yellow);
  padding: 4rem 1.5rem 2rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { height: 50px; margin-bottom: 1rem; }
.footer-brand p {
  opacity: .7;
  max-width: 350px;
}
.footer-links h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .15em;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}
.footer-links a {
  display: block;
  margin-bottom: .5rem;
  opacity: .7;
  font-size: .9rem;
}
.footer-links a:hover { opacity: 1; color: var(--yellow); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 212, 0, .2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  opacity: .6;
}
.credit a { color: var(--yellow); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 350px;
    height: 100vh;
    background: var(--blue-deep);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right .4s ease;
    border-left: 4px solid var(--yellow);
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.2rem; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image { transform: none; max-width: 500px; margin: 0 auto; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 180px 180px 180px 180px;
  }
  .gi-1 { grid-column: span 2; grid-row: span 1; }
  .gi-2, .gi-3, .gi-4, .gi-5, .gi-6 {
    grid-column: span 1; grid-row: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Hidden honeypot field for spam protection */
.hidden-field { display: none !important; }

/* Scroll-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-bg img { animation: none; }
}
