/* ========================================
   Boomer Shooter Night — Custom Styles
   ======================================== */

/* ========================================
   MARK: RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  background: #0a0a0f;
  color: #d0d0d8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ========================================
   MARK: SCANLINES — per section, NOT body
   ======================================== */
.has-scanlines {
  position: relative;
}

.has-scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(0, 0, 0, 0.06) 4px);
}

/* make sure content is above scanlines */
.has-scanlines>* {
  position: relative;
  z-index: 2;
}

/* ========================================
   MARK: KEYFRAMES
   ======================================== */
@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   MARK: CUSTOM PROPERTIES
   ======================================== */
:root {
  --neon: #00f0ff;
  --neon2: #ff2d78;
  --neon3: #f0c000;
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card2: #1a1a2a;
  --text: #d0d0d8;
  --text2: #8888a0;
  --glow-cyan: 0 0 10px #00f0ff66, 0 0 20px #00f0ff33;
  --glow-pink: 0 0 10px #ff2d7866, 0 0 20px #ff2d7833;

  /* Kaptam header/footer vars */
  --rich-black-fogra-29_95: hsla(222, 18%, 11%, 0.95);
  --raisin-black-2: hsl(236, 17%, 17%);
  --raisin-black-3: hsl(280, 11%, 11%);
  --eerie-black-1: hsl(277, 25%, 10%);
  --eerie-black-2: hsl(280, 7%, 8%);
  --roman-silver: hsl(220, 6%, 59%);
  --white: hsl(0, 0%, 100%);
  --white_15: hsla(0, 0%, 100%, 0.15);
  --white_10: hsla(0, 0%, 100%, 0.1);
  --silver: hsl(0, 0%, 78%);
  --marigold: hsl(42, 99%, 46%);
  --jet: hsl(236, 13%, 23%);
  --xiketic_90: hsla(280, 37%, 8%, 0.9);
  --ff-oxanium: 'Oxanium', cursive;
  --ff-poppins: 'Poppins', sans-serif;
  --fs-8: 1.5rem;
  --fs-9: 1.4rem;
  --fs-11: 1.2rem;
  --transition: 0.25s ease;
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);
  --shadow-2: 0px 5px 10px 1px hsla(0, 0%, 0%, 0.4);
  --dim-gray: hsl(0, 0%, 42%);
  --light-gray-2: hsl(0, 2%, 82%);
}

/* ========================================
   MARK: CONTAINER
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   MARK: HEADER (Kaptam style)
   ======================================== */
.header {
  position: relative;
  min-height: 1px;
}

.header-bottom {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 100%;
  background-color: var(--raisin-black-2);
  padding-block: 20px;
  z-index: 150;
}

.header-bottom.active {
  position: fixed;
  top: -90px;
  animation: slideIn 0.5s var(--cubic-out) forwards;
}

@keyframes slideIn {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100%);
  }
}

.header-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--white);
  font-family: var(--ff-oxanium);
  font-size: 3rem;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  background-image: url('../favicon/favicon.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 4rem;
  padding-left: 5rem;
  font-weight: 800;
}

.logo:hover {
  color: var(--marigold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle-btn {
  color: var(--white);
  font-size: 30px;
  border: 1px solid var(--white);
  padding: 4px;
  background: none;
  cursor: pointer;
}

.nav-toggle-btn.active .menu,
.nav-toggle-btn .close {
  display: none;
}

.nav-toggle-btn .menu,
.nav-toggle-btn.active .close {
  display: block;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 1px;
  background-color: var(--eerie-black-1);
}

.dropdown-link {
  display: block;
  padding: 10px 25px 10px 40px;
  color: var(--white);
  font-family: var(--ff-oxanium);
  font-size: var(--fs-11);
  text-transform: uppercase;
  font-weight: 700;
  transition: var(--transition);
}

.dropdown-link:is(:hover, :focus) {
  background-color: var(--white_10);
  color: var(--marigold);
}

.has-dropdown>.navbar-link {
  pointer-events: none;
}

/* ========================================
   MARK: HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.85) 100%),
    url('../images/boomer_shooter_banner1.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  animation: slide-up 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  color: var(--neon2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--neon2);
  box-shadow: var(--glow-pink);
}

.hero-logo {
  max-width: 400px;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.hero h1 {
  font-family: 'Oxanium', cursive;
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 1rem;
}

.hero h1 span {
  display: block;
  font-size: 2rem;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
  letter-spacing: 8px;
  margin-top: 0.5rem;
}

.hero-sub {
  font-size: 2.1rem;
  color: #e0e0f0;
  text-shadow: 2px 2px 3px black;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-text a {
  color: var(--neon);
  font-weight: 700;
  transition: text-shadow 0.3s;
}

.hero-text a:hover {
  text-shadow: 0 0 8px var(--neon);
}

/* ========================================
   MARK: BUTTONS
   ======================================== */
.btnd {
  display: inline-block;
  font-family: 'Oxanium', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1.4rem 3.6rem;
  background: transparent;
  color: #fff;
  border: 2px solid var(--neon);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.btnd::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--neon);
  opacity: 0.08;
  transition: opacity 0.3s;
}

.btnd:hover::before {
  opacity: 0.2;
}

.btn:hover {
  box-shadow: var(--glow-cyan), inset 0 0 20px rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.btn-pink {
  border-color: var(--neon2);
}

.btn-pink::before {
  background: var(--neon2);
}

.btn-pink:hover {
  box-shadow: var(--glow-pink), inset 0 0 20px rgba(255, 45, 120, 0.1);
}

.btn-rowd {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ========================================
   MARK: SPONSOR LOGOS
   ======================================== */
.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sponsor-logos img:hover {
  opacity: 0.95;
}

.sponsor-logos .logo-lahti {
  height: 4rem;
  margin-top: 0px;
}

.sponsor-logos .logo-nuorisopalvelut {
  height: 5.1rem;
  /* 110% of 4rem */
}

/* ========================================
   MARK: SECTION COMMON
   ======================================== */
.section {
  padding: 8rem 0;
}

.section-titled {
  font-family: 'Oxanium', cursive;
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 1rem;
}

.section-titled .highlight {
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
}

.section-titled .highlight-pink {
  color: var(--neon2);
  text-shadow: 0 0 10px var(--neon2);
}

.section-subtitle {
  text-align: center;
  color: var(--text2);
  font-size: 1.4rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 6rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  margin: 0 auto 4rem;
}

/* ========================================
   MARK: GUIDE SECTION
   ======================================== */
.guide {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0e0e18 100%);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.guide-video {
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
  overflow: hidden;
}

.guide-video img {
  width: 100%;
  display: block;
}

.guide-info h3 {
  font-family: 'Oxanium', cursive;
  font-size: 2rem;
  color: var(--neon2);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.guide-info p {
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.guide-info a {
  color: var(--neon);
}

.guide-info a:hover {
  text-shadow: 0 0 6px var(--neon);
}

/* ========================================
   MARK: INFO / DETAILS
   ======================================== */
.details {
  background: #0e0e18;
  position: relative;
}

.details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon2), transparent);
  opacity: 0.3;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.detail-card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.06);
  transform: translateY(-4px);
}

.detail-card .icon {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  display: block;
}

.detail-card h3 {
  font-family: 'Oxanium', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.detail-card p {
  font-size: 1.3rem;
  color: var(--text2);
  line-height: 1.7;
}

.detail-card a {
  color: var(--neon);
  font-weight: 500;
}

.detail-card a:hover {
  text-shadow: 0 0 6px var(--neon);
}

/* ========================================
   MARK: GAMES LIST
   ======================================== */
.games {
  background: var(--bg-dark);
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: var(--neon2);
  box-shadow: 0 0 25px rgba(255, 45, 120, 0.08);
  transform: translateY(-4px);
}

.game-card .rank {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.6rem;
  color: var(--neon3);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.game-card h3 {
  font-family: 'Oxanium', cursive;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-card p {
  font-size: 1.2rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.game-links a {
  display: inline-block;
  font-family: 'Oxanium', cursive;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
}

.game-links a.steam {
  border-color: var(--neon);
  color: var(--neon);
}

.game-links a.steam:hover {
  box-shadow: var(--glow-cyan);
  background: rgba(0, 240, 255, 0.06);
}

.game-links a.gameplay {
  border-color: var(--neon2);
  color: var(--neon2);
}

.game-links a.gameplay:hover {
  box-shadow: var(--glow-pink);
  background: rgba(255, 45, 120, 0.06);
}

.credits-note {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 1.3rem;
  color: var(--text2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.credits-note a {
  color: var(--neon2);
}

/* ========================================
   MARK: GALLERY
   ======================================== */
.gallery {
  background: #0e0e18;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  transform: scale(1.02);
}

.gallery-item .img-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .img-cover {
  transform: scale(1.05);
}

.gallery-item .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(10, 10, 15, 0.9));
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

/* ========================================
   MARK: IMAGE MODAL (script.js compatible)
   ======================================== */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.image-modal-content {
  display: flex;
  transition: transform 0.4s ease;
}

.image-modal-content img {
  width: 100%;
  flex-shrink: 0;
  max-height: 90vh;
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 4rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  border: none;
  background: none;
  z-index: 9999;
  line-height: 1;
}

.image-modal-close:hover {
  opacity: 1;
}

.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
  border: none;
  background: none;
  z-index: 9999;
  padding: 1rem;
}

.image-nav:hover {
  opacity: 0.9;
}

.image-nav.left {
  left: 1rem;
}

.image-nav.right {
  right: 1rem;
}

.image-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 9999;
}

.image-indicator-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s;
}

.image-indicator-dot.active {
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
}

/* ========================================
   MARK: FOOTER (Kaptam style)
   ======================================== */
.footer {
  color: var(--roman-silver);
  --section-padding: 120px;
}

.footer-top {
  padding-block-end: var(--section-padding);
}

.footer-top .container {
  display: grid;
  gap: 50px;
}

.logo2 {
  color: var(--white);
  font-family: var(--ff-oxanium);
  font-size: 3rem;
  font-weight: 800;
  margin-top: -7px;
}

.footer-text,
.footer .contact-item {
  font-size: var(--fs-8);
  font-weight: 500;
  line-height: 1.8;
}

.footer-text {
  margin-block-end: 15px;
}

.contact-item:not(:last-child) {
  margin-block-end: 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-icon {
  margin-block-start: 3px;
  font-size: 17px;
}

.footer-list-title {
  position: relative;
  color: var(--silver);
  font-family: var(--ff-oxanium);
  text-transform: uppercase;
  font-weight: 800;
  padding-block-end: 20px;
  margin-block-end: 35px;
}

.footer-list-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--marigold);
}

.footer .social-wrapper {
  margin-block-end: 50px;
}

.footer .social-link-2 {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--white);
  padding: 10px;
  border-radius: 2px;
  padding-right: 80px;
}

.footer-bottom {
  background-color: var(--eerie-black-2);
  padding-block: 20px;
  text-align: center;
}

.copyright {
  font-size: var(--fs-9);
  font-weight: 500;
  line-height: 1.8;
}

.copyright-link {
  display: inline-block;
  color: var(--marigold);
}

/* ========================================
   MARK: RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-titled {
    font-size: 2.6rem;
  }
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-logo {
    max-width: 280px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero h1 span {
    font-size: 1.4rem;
    letter-spacing: 4px;
  }

  .hero-text {
    font-size: 1.4rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .games-list {
    grid-template-columns: 1fr;
  }

  .sponsor-logos .logo-lahti {
    height: 3rem;
    margin-top: -1px;
  }

  .sponsor-logos .logo-nuorisopalvelut {
    height: 3.6rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .btnd {
    width: 100%;
    text-align: center;
  }

  .btn-rowd {
    flex-direction: column;
  }
}
