/* RESET + GLOBAL STYLES */
body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

section {
  margin-bottom: 100px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: gold;
}

section p {
  font-size: 1rem;
  line-height: 1.6;
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.trident-container {
  position: relative;
  width: 300px;
  height: auto;
}

.trident {
  width: 100%;
  opacity: 0.25;
  transition: filter 2s ease-in-out;
}

.signature-img {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  pointer-events: none;
  opacity: 0.9;
}

/* FLICKER */
.light-flicker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 300px;
  height: 100vh;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 255, 220, 0.3) 0%,
    rgba(255, 255, 180, 0.1) 30%,
    rgba(255, 255, 150, 0.06) 60%,
    rgba(0, 0, 0, 0) 90%
  );
  clip-path: polygon(50% 0%, 15% 100%, 85% 100%);
  filter: blur(6px) brightness(1.3);
  animation: flickerCone 3s ease-in-out forwards, dustFloat 8s infinite ease-in-out;
  opacity: 0;
}

@keyframes flickerCone {
  0% { opacity: 0.05; }
  10% { opacity: 0.4; }
  20% { opacity: 0.2; }
  30% { opacity: 0.6; }
  50% { opacity: 1; }
  70% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

@keyframes dustFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* BUTTONS */
.enter-btn {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background: gold;
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 3;
  position: relative;
}

.enter-btn:hover {
  transform: scale(1.05);
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  padding: 10px 20px;
  font-size: 0.9rem;
  background: black;
  color: white;
  border: 1px solid gold;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.hamburger-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  padding: 0.5em 0.7em;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s;
}

.hamburger-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* FALL ZONE */
.fall-zone {
  height: 4000vh;
  margin-top: 100vh;
  background-image:
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.9) 0%,
      rgba(50, 50, 50, 0.8) 10%,
      rgba(120, 120, 120, 0.7) 30%,
      rgba(180, 180, 180, 0.6) 50%,
      rgba(230, 230, 230, 0.5) 75%,
      rgba(255, 255, 255, 1) 100%
    ),
    url('brick-wall.png');
  background-size: cover;
  background-repeat: repeat-y;
  background-position: center top;
  background-attachment: fixed;
  background-blend-mode: screen;
}

/* CONTENT */
.content {
  padding: 60px;
  background: white;
  color: black;
  overflow-x: hidden;
}

/* GALLERY */
.gallery {
  padding: 4rem 2rem;
  background-color: #111;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
}

.gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  background: #222;
  padding: 10px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img,
.artwork-image {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

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

/* Trident + Signature Glow After Flicker */
.trident.glow-in,
.signature-img.glow-in {
  opacity: 1;
  filter: drop-shadow(0 0 20px gold) brightness(1.5);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-item img,
  .artwork-image {
    width: 90vw !important;
    max-width: 90vw !important;
    height: auto !important;
    margin: 0 auto;
  }

  .about-me {
    font-size: 1rem;
    padding: 1rem;
  }

  .artwork-detail {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .artwork-detail h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .artwork-gallery {
    grid-template-columns: 1fr;
  }

  .artwork-gallery img {
    max-width: 95vw;
    margin: auto;
  }
}

/* Artwork Detail Page */
.artwork-detail {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
  font-size: 1rem;
  background: #fff;
  color: #000;
}

.artwork-detail h1 {
  font-size: 2rem;
  color: #222;
}

.artwork-detail .description {
  margin-top: 1rem;
  line-height: 1.6;
}

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

.artwork-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.artwork-gallery img:hover {
  transform: scale(1.03);
}

/* Product Detail Block */
.product-detail {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
  color: #fff;
}

.product-detail h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.product-detail .product-image {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  margin: 20px 0;
  border-radius: 6px;
}

.product-detail ul {
  list-style: disc;
  padding-left: 20px;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #ff8c42;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}