body, html {
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 30px; /* Header height + extra offset */
  height: 100%;
}

/* Theme tokens */
:root{
  --brand-bg: rgba(106, 0, 167, 0.7);
  --radius: 8px;
  --gap: 20px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 70px; /* Adjust if footer height changes */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--brand-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.logo {
  display: flex;
  align-items: center;
  padding: 0px 40px;
}

.logo img {
  height: 96px;
  width: auto;
  display: block;
}

/* Medium screens: tablets */
@media screen and (max-width: 900px) {
  .logo img { height: 64px; }
}

/* Small screens: phones */
@media screen and (max-width: 700px) {
  .logo img { height: 48px; }
}

.nav-links {
  list-style: none;
  display: flex;
  padding: 0px 50px;
  gap: 20px;
}
.nav-links li a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  z-index: 1001;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin: 0px 30px;
  background: transparent;
  border: none;
}
.burger .line1, .burger .line2, .burger .line3 {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px;
}

.hero {
  position: relative;
  background: url('../../img/background-image2.jpg') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 100px 0 0 0;
  overflow: hidden;
}

/* Fade-out effect */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px; /* height of the fade */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
}

.heroVid {
  display: flex;
  justify-content: center;
  width: 90%;
  max-width: 1920px;
  margin: 0 auto;
}
.heroVid iframe {
  aspect-ratio: 16 / 9;
  width: 100% !important;
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
  justify-content: start;
}

.video-embed,
.image-embed {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: none;
  display: block;
  pointer-events: none; /* So clicks go to the lightbox instead */
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  pointer-events: none;
}

.video-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
  cursor: pointer;
}

.video-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #333;
  padding-left: 4px;
}

.video-embed:hover iframe { filter: brightness(100%); }

.section {
  padding: 60px 20px;
}

@media screen and (max-width: 600px) {
  .section { padding-left: 10px; padding-right: 10px; }
}

.scroll-wrapper {
  max-height: calc(5 * 48px); /* Approx 5 rows (adjust row height if needed) */
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}

.about-content {
  display: flex;
  flex-direction: column; /* default for mobile */
  gap: 20px;
  align-items: flex-start;
}
.about-photo img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Desktop layout: two columns */
@media screen and (min-width: 901px) {
  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }
  .about-photo, .about-text { flex: 1; }
  .about-photo { padding-left: 20px; display: block; }
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.lightbox.hidden { display: none; }

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox-video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* Specific to video lightbox iframe */
#video-lightbox .lightbox-content {
  width: 90vw;
  height: 50vw; /* maintain 16:9 aspect ratio */
  max-width: 1280px;
  max-height: 80vh;
}
#image-lightbox .lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

#video-lightbox { z-index: 9999; }
#image-lightbox { z-index: 9998; }

.image-embed img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: block;
}
.image-embed:hover img { filter: brightness(110%); transition: filter 0.2s ease; }

.gallery-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
}

#contact {
  max-width: 800px;
  margin: 0 auto;
}
.form-wrapper { margin: 0 auto; padding: 20px; }

/* Table formatting for Gigs section */
#gigs table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
#gigs th, #gigs td {
  text-align: left;
  padding: 8px 16px;
  vertical-align: top;
}
#gigs th { font-weight: bold; background-color: rgba(0, 0, 0, 0.1); }
#gigs tr:nth-child(even) { background-color: rgba(0, 0, 0, 0.05); }

/* Column sizing */
#gigs th:nth-child(1), #gigs td:nth-child(1) { width: 20%; }
#gigs th:nth-child(2), #gigs td:nth-child(2) { width: 20%; }
#gigs th:nth-child(3), #gigs td:nth-child(3) { width: 20%; }
#gigs th:nth-child(4), #gigs td:nth-child(4) { width: 40%; }

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--brand-bg);
  color: white;
  text-align: center;
  padding: 5px 20px;
  z-index: 1000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.footer-icons img {
  width: 64px;
  height: auto;
  transition: transform 0.2s ease;
}
.footer-icons img:hover { transform: scale(1.1); }
/* Tablet */
@media screen and (max-width: 900px) { .footer-icons img { width: 32px; } }
/* Phone */
@media screen and (max-width: 700px) { .footer-icons img { width: 24px; } }

main { flex: 1; }

@media screen and (max-width: 600px) {
  .form-wrapper { padding: 10px; }
  #contact iframe { height: 1100px; }
}

@media screen and (max-width: 700px) {
  .nav-links {
    display: none;
    color: white;
    flex-direction: column;
    background: var(--brand-bg);
    position: absolute;
    top: 32px;
    right: 0px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 1100;
  }
  .burger { display: flex; }
  .nav-links.nav-active { display: flex; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  .footer-icons img:hover,
  .video-embed:hover iframe,
  .image-embed:hover img { transition: none; transform: none; filter: none; }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus {
  left: 10px; top: 10px; background: #000; color: #fff; padding: 8px 12px; border-radius: 6px;
  z-index: 1200;
}
