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

html {
  scroll-behavior: smooth;
}

/* === HERO POPUP === */
.hero-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none; /* Dold från start */
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

.hero-popup.show {
  display: flex; /* visas av JS */
}

.hero-popup-content {
  position: relative;
  max-width: min(90vw, 1200px);
  max-height: 90vh;
}

.hero-popup video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 10px;
  display: block;
  border: 2px solid #1e90ff;
}

.hero-close {
  position: absolute;
  top: -16px;
  right: -12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #1e90ff;
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}
.hero-close:hover { background:#104e8b; }

/* Lås scroll medan popup är öppen */
body.no-scroll { overflow: hidden; }

/* === PAGE BACKGROUND WITH DARK OVERLAY === */
body {
  font-family: Arial, sans-serif;
  color: #f0f0f0;
  line-height: 1.6;
  background-image: url('media/grunge-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 0%;
  background-attachment: scroll; /* JS styr scroll-effekt */
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: -1;
  pointer-events: none;
}

header, section, footer { position: relative; z-index: 1; }

/* === HEADER === */
header {
  background: #000;
  padding: 10px 20px;
  text-align: center;
  border-bottom: 2px solid #1e90ff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo img {
  width: 200px; /* lagom storlek */
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

/* === NAVIGATION === */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
nav ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
nav ul li a:hover,
nav ul li a.active {
  color: #1e90ff;
  text-shadow: 0 0 5px #1e90ff;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
}
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    position: absolute;
    top: 80px;
    right: 20px;
    padding: 20px;
    border-radius: 8px;
  }
  nav ul.show { display: flex; }
  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
}

/* === SECTIONS === */
section {
  padding: 80px 20px;
  text-align: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  scroll-margin-top: 120px;
}
@media (max-width: 768px) {
  section { scroll-margin-top: 90px; }
}
section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #000;
  text-shadow: 0 0 8px #1e90ff, 0 0 15px #1e90ff;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #000;
  text-shadow: 0 0 6px #1e90ff, 0 0 12px #1e90ff;
}

/* === SOCIAL LINKS === */
.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}
.social-links img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}
.social-links img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px #fff);
}

/* === VIDEO === */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* === SPOTIFY === */
.spotify-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 120px;
  height: 0;
  overflow: hidden;
}
.spotify-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}
.gallery-grid figure {
  max-width: 350px;
  text-align: center;
}
.gallery-grid img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  filter: grayscale(100%);
  transition: transform 0.3s, filter 0.4s;
  cursor: pointer;
}
.gallery-grid img:hover {
  filter: grayscale(0);
  transform: scale(1.05);
}
.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #ddd;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
.lightbox img { max-width: 90%; max-height: 80%; }
.lightbox-caption {
  margin-top: 10px;
  color: #ddd;
  text-align: center;
}
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  color: white;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
}
.lightbox .close { top: 20px; right: 30px; }
.lightbox .prev { top: 50%; left: 30px; }
.lightbox .next { top: 50%; right: 30px; }

/* === FORM === */
form {
  max-width: 600px;
  margin: auto;
  text-align: left;
}
form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: rgba(17,17,17,0.8);
  color: #f0f0f0;
  border: 1px solid #333;
  border-radius: 5px;
}
form button {
  background-color: #1e90ff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
form button:hover {
  background: #104e8b;
  box-shadow: 0 0 10px #1e90ff;
}

/* === FOOTER === */
footer {
  background: #000;
  text-align: center;
  padding: 20px;
  border-top: 2px solid #1e90ff;
}

/* === PARALLAX === */
.parallax {
  background-attachment: fixed;
}
