/* --- GLOBAL STYLES --- */
:root {
  --bg: #0d0d0d;
  --muted: #eaeaea;
  --overlay-bg: rgba(0, 0, 0, 0.95);
  --glass: rgba(0, 0, 0, 0.55);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: #f5f5f5;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.3px;
}
a {
  color: inherit;
  text-decoration: none;
}

/* --- SIDE MENU --- */
.side-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
  padding: 18px 20px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  border-radius: 8px;
  max-width: 220px;
}
.side-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}
.side-menu h2 {
  margin: 0 0 8px 0;
  font-size: 16px;
}
.side-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-menu a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  transition: opacity 0.22s;
}
.side-menu a:focus,
.side-menu a:hover {
  opacity: 0.7;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 60;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  padding: 8px;
  border-radius: 8px;
}

/* --- MAIN CONTENT --- */
.main-content {
  margin: 0;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(75%) contrast(110%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
/* transparent overlay div will block right-click */
.hero-overlay {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 10;
  transition: all 0.28s ease;
  max-width: calc(100% - 100px);
}
.hero-overlay h1 {
  font-size: 64px;
  margin: 0;
  font-weight: 700;
  line-height: 0.9;
}
.hero-overlay h2 {
  font-size: 20px;
  margin-top: 8px;
  opacity: 0.85;
}
.hero-links {
  margin-top: 14px;
  display: flex;
  gap: 18px;
}
.hero-links a {
  font-size: 18px;
  color: #fff;
  opacity: 0.9;
  font-weight: 300;
  transition: opacity 0.22s;
}
.hero-links a:hover {
  opacity: 0.55;
}
.hero-overlay.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  background: var(--overlay-bg);
  padding: 10px 20px;
  z-index: 50;
  bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.hero-overlay.scrolled h1 {
  font-size: 28px;
}
.hero-overlay.scrolled h2 {
  font-size: 14px;
}
.hero-overlay.scrolled .hero-links {
  gap: 12px;
  margin-top: 8px;
}

.hero-subtext {
  display: inline-block;         /* shrink to fit content */
  background: rgba(0,0,0,0.55);  /* subtle dark background */
  padding: 6px 12px;
  border-radius: 6px;
}


/* --- MATCH SECTIONS --- */
.match-section {
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 28px;
}
.match-section h2 {
  font-size: 36px;
  margin-bottom: 6px;
}
.match-section p {
  font-size: 16px;
  opacity: 0.8;
  max-width: 700px;
}

/* --- PHOTO GRID --- */
.match-gallery {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.match-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: grayscale(15%) contrast(105%);
  transition: transform 0.35s ease, filter 0.35s ease;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
}
.match-gallery img:hover {
  transform: scale(1.02);
  filter: grayscale(0%) contrast(115%);
}

/* FADE IN IMAGES */
img {
  opacity: 0;
  animation: fadeIn 0.9s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- LIGHTBOX STYLES --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 100;
}
.lightbox-img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 8px;
  pointer-events: none;
  user-select: none;
}
/* overlay above lightbox image to block right-click */
#lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 102;
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 42px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  z-index: 103;

  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  outline: none;
}

/* --- FOOTER --- */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.65);
  color: #f5f5f5;
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
}
.site-footer p {
  margin: 6px 0;
}


/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero-overlay h1 {
    font-size: 42px;
  }
  .hero-overlay {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
  .match-section {
    margin: 80px auto;
    padding: 0 20px;
  }
  .match-gallery img {
    height: 220px;
  }
}
@media (max-width: 700px) {
  .hero-subtext {
    padding: 4px 8px;
    border-radius: 4px;
  }

  /* .menu-toggle {
    display: block;
  } */
  .menu-toggle {
    position: fixed;
    top: 12px;       /* always at top of screen */
    left: 12px;
    z-index: 200;    /* above everything */
  }
  .side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    padding: 24px;
    transform: translateX(-110%);
    opacity: 1;
    transition: transform 0.28s ease, opacity 0.2s;
  }
  .side-menu.open {
    transform: translateX(0);
  }
  .side-menu h2 {
    font-size: 18px;
  }
  .hero {
    height: 60vh;
  }
  /* .hero-overlay {
    position: relative;
    bottom: auto;
    left: 0;
    padding: 10px 18px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
    border-radius: 0;
  } */
  .hero-overlay {
    margin-top: 0;   /* no extra spacing that pushes the toggle down */
  }
  .hero-overlay h1 {
    font-size: 28px;
  }
  .hero-overlay h2 {
    font-size: 13px;
  }
  .hero-links {
    flex-wrap: wrap;
  }
  .match-section {
    margin: 60px auto;
    padding: 0 16px;
  }
  .match-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .match-gallery img {
    height: 200px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 36px;
  }
}

/* Accessibility / touch targets */
a,
button,
.match-gallery img {
  touch-action: manipulation;
}
.hero-links a {
  padding: 8px 6px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none;
    transition: none;
  }
}
