/* 
 * ROCKAD - Official Band Website
 * Theme: Driving Guitar meets Funk
 * Primary Colors: Dark Background (#121212), Electric Orange (#FF6B00), Sharp White (#FAFAFA)
 */

:root {
  --bg-color: #0B1026;
  /* Deep Navy */
  --surface-color: #161D38;
  /* Lighter Navy Surface */
  --accent-color: #FFB703;
  /* Naval Gold/Brass */
  --text-primary: #E0E6ED;
  /* Off-white/Grey */
  --text-secondary: #8D99AE;
  /* Slate Grey */
  --font-heading: 'Black Ops One', cursive;
  /* Military Stencil, Hangar style */
  --font-body: 'Montserrat', sans-serif;
  --transition-speed: 0.3s;
  --container-width: 1200px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* Typography Utilities */
.text-accent {
  color: var(--accent-color);
}

.text-center {
  text-align: center;
}

.display-text {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  font-weight: 700;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

/* Header & Nav */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-speed);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url('lakehurst_hero.png');
  /* Updated Lakehurst Hangar/Blimp visual */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--bg-color) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.glitch-wrapper {
  position: relative;
}

/* Glitch Animation */
.glitch {
  position: relative;
  color: white;
  animation: glitch-anim 3s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 red;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1px 0 blue;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-top: 2rem;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
}

/* Latest Release / Audio Player */
.latest-release {
  background: var(--surface-color);
}

.album-container {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}

.album-art {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.vinyl-record {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
}

.album-art:hover .vinyl-record {
  transform: scale(1.02);
}

.player-info {
  flex: 1;
  min-width: 300px;
}

.track-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.track-list li:hover {
  padding-left: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-color);
}

.play-icon {
  font-size: 1.2rem;
}

/* Tour Dates */
/* Tour Dates */
.tour-table {
  width: 100%;
  display: flex;
  /* Flex Layout */
  flex-direction: column;
  margin-top: 2rem;
}

.tour-row {
  display: flex;
  /* Horizontal Flex */
  align-items: center;
  /* Vertical Center */
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
  padding: 0.5rem 0;
  /* Add slight row padding */
}

.tour-row:hover {
  background: rgba(255, 107, 0, 0.05);
}

.tour-cell {
  padding: 0 1rem;
  /* Horizontal padding only */
}

.tour-date {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-basis: 15%;
}

.tour-venue {
  font-weight: 700;
  font-size: 1.2rem;
  flex-basis: 30%;
  flex-grow: 1;
}

.tour-location {
  color: var(--text-secondary);
  flex-basis: 25%;
}

.tour-action {
  text-align: right;
  flex-basis: 20%;
  display: flex;
  justify-content: center;
  /* Centered logos */
  align-items: center;
}

.tour-action img {
  max-height: 80px;
  /* Ensure logos don't get too huge but have presence */
  width: auto;
  display: block;
}

/* Contact / Newsletter */
.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

.input-field {
  flex: 1;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: var(--font-body);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
  transition: fill var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover .social-icon {
  fill: var(--accent-color);
  transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .display-text {
    font-size: 3.5rem;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--surface-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-speed);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .album-container {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .tour-row {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  .tour-cell {
    width: 100%;
    padding: 0.5rem 0;
    text-align: center;
  }

  .tour-action {
    margin-top: 1rem;
  }

  /* Fix for iOS/Mobile Backgrounds */
  .hero,
  #music,
  #tour,
  #contact {
    background-attachment: scroll;
  }
}

/* Animations Keyframes */
@keyframes glitch-anim {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(20px, 9999px, 10px, 0);
  }

  100% {
    clip: rect(80px, 9999px, 90px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(90px, 9999px, 100px, 0);
  }

  100% {
    clip: rect(10px, 9999px, 5px, 0);
  }
}

/* Hero Band Photo */
.hero-image-container {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-band-photo {
  max-width: 100%;
  height: auto;
  /* Blend effect: Fade top and bottom strongly, keep sides visible or rely on natural background blend */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  object-fit: cover;
}

.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.3rem;
  margin-top: 2rem;
  color: var(--text-primary);
  text-transform: uppercase;
  text-align: center;
  font-weight: 300;
  opacity: 0.9;
}

/* Thematic Section Backgrounds */
#music,
#tour,
#contact {
  position: relative;
  background-image: url('lakehurst_hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

/* Overlays to differentiate sections */
#music::before,
#tour::before,
#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Music: Warm Gold/Industrial Hangar Vibe */
#music::before {
  background: linear-gradient(135deg, rgba(11, 16, 38, 0.95), rgba(255, 183, 3, 0.15));
}

/* Shows: Cool Blue/Navy Blueprint Vibe */
#tour::before {
  background: linear-gradient(135deg, rgba(11, 16, 38, 0.95), rgba(22, 29, 56, 0.8));
}

/* Contact: Deep Night Vibe */
#contact::before {
  background: linear-gradient(to bottom, rgba(11, 16, 38, 0.9), rgba(0, 0, 0, 1));
}

/* Ensure content sits above overlay */
.container {
  position: relative;
  z-index: 2;
}

/* Gallery Styles */
.gallery-section {
  background: var(--bg-color);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* Slightly smaller min-width to fit more */
  gap: 1.5rem;
  grid-auto-flow: dense;
  /* Fills gaps created by spanning items */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  aspect-ratio: 4/3;
  /* Default landscape aspect ratio */
}

/* Vertical Photos: Span 2 rows to avoid cropping */
.gallery-item.item-1,
.gallery-item.item-5,
.gallery-item.item-6,
.gallery-item.item-9,
.gallery-item.item-10 {
  grid-row: span 2;
  aspect-ratio: auto;
  /* Let grid row height dictate height */
  height: 100%;
}

/* Booking Section Specifics */
.booking-section {
  min-height: 60vh;
  /* Reduced from 80vh for single page flow */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Focus on faces/stage */
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 107, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}



.gallery-item:hover .overlay {
  opacity: 1;
}

/* 
   Removed the specific item-1 span rule to ensure the first photo (portrait bass player) 
   isn't aggressively cropped by a 21:9 aspect ratio. 
   A uniform grid is safer for mixed-orientation photos. 
*/