:root {
  --primary-purple: #6b46c1;
  --deep-purple: #4c1d95;
  --magenta: #d946ef;
  --cyan: #06b6d4;
  --electric-blue: #3b82f6;
  --solid-bg: #1e1b4b;
  --text-white: #ffffff;
  --text-light: #e5e7eb;
  --accent-gold: #f59e0b;
  --pattern-blur: 0px;
  --pattern-contrast: 1;
  --pattern-opacity: 1;
  --pattern-pixelate: 0px;
}

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

body {
  font-family: "Poppins", sans-serif;
  background: var(--solid-bg);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 50'%3E%3Cdefs%3E%3Cfilter id='pixelateFilter'%3E%3CfeFlood flood-color='white' flood-opacity='1' result='flood' /%3E%3CfeComposite in='SourceGraphic' in2='flood' operator='in' /%3E%3CfeTile /%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 1' /%3E%3C/feComponentTransfer%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23D946EF' opacity='0.7' filter='url(%23pixelateFilter)'%3E%3C!-- Y --%3E%3Cpath d='M8 15h3v5l3 3h-3v-3l-3-2v-3zm9 0h3v3l-3 2v3h-3l3-3v-5zm-6 8h3v9h-3v-9z'/%3E%3C!-- E --%3E%3Cpath d='M28 15h12v3h-9v4h7v3h-7v4h9v3h-12v-17z'/%3E%3C!-- A --%3E%3Cpath d='M50 32h3v-14h8v3h-5v3h5v3h-5v5h-3v-5h-3v5zm3-8h5v-3h-5v3z'/%3E%3C!-- R --%3E%3Cpath d='M72 15h10v8h-3l3 9h-3l-3-9h-4v-8zm3 3v5h4v-5h-4z'/%3E%3C!-- N --%3E%3Cpath d='M94 15h2v17h-2v-17zm2 0h3l5 12v-12h3v17h-3l-5-12v12h-3v-17z'/%3E%3C!-- Repeat --%3E%3Cg transform='translate(110,0)'%3E%3Cpath d='M8 15h3v5l3 3h-3v-3l-3-2v-3zm9 0h3v3l-3 2v3h-3l3-3v-5zm-6 8h3v9h-3v-9zM28 15h12v3h-9v4h7v3h-7v4h9v3h-12v-17zM50 32h3v-14h8v3h-5v3h5v3h-5v5h-3v-5h-3v5zm3-8h5v-3h-5v3zM72 15h10v8h-3l3 9h-3l-3-9h-4v-8zm3 3v5h4v-5h-4zM94 15h2v17h-2v-17zm2 0h3l5 12v-12h3v17h-3l-5-12v12h-3v-17z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 220px 50px;
  z-index: 1000;
  pointer-events: none;
  transition: all 0.3s ease-out;
  filter: contrast(var(--pattern-contrast)) blur(var(--pattern-blur));
  opacity: var(--pattern-opacity);
}

.body-wrapper {
  min-height: 100vh;
  background: var(--solid-bg);
  position: relative;
  overflow: hidden;
}

.body-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(217, 70, 239, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(6, 182, 212, 0.08) 0%,
      transparent 50%
    ),
    linear-gradient(
      45deg,
      transparent 25%,
      rgba(217, 70, 239, 0.02) 25%,
      rgba(217, 70, 239, 0.02) 50%,
      transparent 50%,
      transparent 75%,
      rgba(6, 182, 212, 0.02) 75%
    );
  background-size: 400px 400px, 600px 600px, 60px 60px;
  background-position: 0 0, 100px 100px, 0 0;
  pointer-events: none;
  z-index: 1;
}

.body-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(217, 70, 239, 0.015) 2px,
      rgba(217, 70, 239, 0.015) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(6, 182, 212, 0.015) 2px,
      rgba(6, 182, 212, 0.015) 4px
    );
  pointer-events: none;
  z-index: 1;
}

.home-wrapper {
  padding: 140px 20px 40px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Logo and Branding */
.logo-section {
  margin-bottom: 80px;
}

.festival-logo {
  font-family: "BBH Sans Bartle", sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  background: linear-gradient(
    45deg,
    var(--text-white),
    var(--magenta),
    var(--cyan)
  );
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(217, 70, 239, 0.5);
  margin-bottom: 10px;
  line-height: 0.95;
}

.tagline {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
  margin-top: 20px;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.festival-date {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Lineup Section */
.lineup-section {
  margin: 60px 0;
}

.lineup-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.lineup-heading {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-align: center;
  color: var(--text-white);
  margin-bottom: 40px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
}

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.artist-card {
  background: rgba(107, 70, 193, 0.2);
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.artist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(217, 70, 239, 0.3);
  border-color: var(--magenta);
}

.artist-card.special {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.4);
}

.artist-card.special:hover {
  border-color: var(--cyan);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.artist-name {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.artist-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  font-style: italic;
}

/* Upcoming Events Section */
.upcoming-events-section {
  margin: 100px 0 80px;
  padding: 60px 0;
  background: rgba(30, 27, 75, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.events-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.events-heading {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  text-align: center;
  color: var(--text-white);
  margin-bottom: 60px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
  justify-content: center;
  gap: 30px;
}

.event-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(217, 70, 239, 0.3);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(217, 70, 239, 0.2);
  border-color: var(--magenta);
}

.event-date {
  background: var(--magenta);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  width: 110px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-white);
}

.event-date .month {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.event-date .day {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.event-info {
  flex: 1;
}

.event-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}

.event-location {
  font-size: 1.1rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 5px;
}

.event-time {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Form Styles */
.form-wrapper {
  margin: 60px auto;
  max-width: 500px;
}

.form-container {
  background: rgba(30, 27, 75, 0.8);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(107, 70, 193, 0.3);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-label {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-white);
  text-align: left;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.text-field {
  padding: 15px;
  border: 2px solid rgba(107, 70, 193, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.text-field:focus {
  outline: none;
  border-color: var(--magenta);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
}

.text-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.submit-button {
  background: linear-gradient(135deg, var(--magenta), var(--primary-purple));
  color: var(--text-white);
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.submit-button:hover {
  background: linear-gradient(135deg, var(--primary-purple), var(--magenta));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 70, 239, 0.4);
}

/* Ticket CTA */
.ticket-cta {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--accent-gold);
  margin: 60px 0;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.cta-button {
  background: linear-gradient(135deg, var(--accent-gold), #f97316);
  color: var(--deep-purple);
  border: none;
  padding: 20px 40px;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  margin: 60px 0;
}

.cta-button:hover {
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #f97316, var(--accent-gold));
}

/* Marquee */
.marquee {
  background: rgba(30, 27, 75, 0.9);
  padding: 15px 0;
  margin: 60px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--magenta);
  border-bottom: 2px solid var(--magenta);
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.marquee-content {
  display: inline-block;
  animation: scroll 120s linear infinite;
}

.ticker-text {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-white);
  margin-right: 2rem;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* CTA Wrapper */
.cta-wrapper {
  margin: 100px 0 80px;
  padding: 60px 20px;
  background: #312e81;
  border-radius: 20px;
  border: 1px solid rgba(107, 70, 193, 0.3);
}

.sub-heading {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
  text-align: center;
}

/* Photo Gallery Section */
.photo-gallery-section {
  width: 100%;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 4px;
}

.mosaic-item {
  overflow: hidden;
  position: relative;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.8s ease-in-out;
}

/* Previous Lineups Section */
.previous-lineups-section {
  padding: 60px 0;
  background: rgba(30, 27, 75, 0.6);
  margin-top: 40px;
  backdrop-filter: blur(10px);
}

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

.section-heading {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  text-align: center;
  color: var(--text-white);
  margin-bottom: 50px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
}

.lineup-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.lineup-poster {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.lineup-poster:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(217, 70, 239, 0.3);
}

.lineup-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(20px);
  transform: scale(1.1);
}

.poster-image {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lineup-poster:hover .poster-image {
  transform: scale(1.05);
}

.lineup-poster {
  cursor: pointer;
}

/* Lineup Modal */
.lineup-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lineup-modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--magenta);
}

/* Footer */
.footer {
  background: #000;
  padding: 40px 20px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

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

.footer-logo h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 20px;
}

.footer-social {
  margin: 20px 0;
}

.social-link {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--cyan);
}

.footer-copyright p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Success Message */
.success-message {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.success-message p {
  color: var(--text-white);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
  }

  .lineup-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .lineup-poster {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .home-wrapper {
    padding: 100px 15px 20px;
  }

  .lineup-text {
    display: none;
  }

  .mobile-lineup {
    display: block;
  }

  .headliner-section {
    padding: 20px;
  }

  .form-container {
    padding: 20px;
  }

  .cta-button {
    padding: 15px 30px;
    font-size: 1.2rem;
  }

  .marquee-content {
    animation: scroll 96s linear infinite;
  }

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

  .event-card {
    padding: 20px;
    height: 160px;
  }

  .event-date {
    width: 80px;
    height: 80px;
    padding: 15px;
    flex-shrink: 0;
  }

  .lineup-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .lineup-poster {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .home-wrapper {
    padding: 120px 10px 15px;
  }

  .festival-logo {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 40px;
  }

  .headliner {
    font-size: 2rem;
  }

  .lineup-text-mobile {
    font-size: 1rem;
    line-height: 1.5;
  }

  .form-container {
    padding: 15px;
  }

  .text-field {
    padding: 12px;
  }

  .submit-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .lineup-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .artist-card {
    padding: 15px;
  }

  .upcoming-events-section {
    margin: 40px 0 30px;
    padding: 30px 0;
  }

  .events-heading {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .events-grid {
    gap: 15px;
  }

  .event-card {
    padding: 15px;
    gap: 10px;
  }

  .event-date {
    padding: 12px;
    min-width: 80px;
    width: 80px;
    height: 80px;
  }

  .event-date .month {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }

  .event-date .day {
    font-size: 1.4rem;
  }

  .event-title {
    font-size: 1.4rem;
  }

  .event-location {
    font-size: 1.1rem;
  }

  .event-time {
    font-size: 1rem;
  }
}
