/* ============ GLOBAL ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #e8f5e9;
  background: radial-gradient(circle at top, #103d25 0%, #0b2e1c 60%, #061b11 100%);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Jade texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('images/pounamu-texture.jpg') center/cover no-repeat;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

/* Background tui */
.tui-bg {
  position: fixed;
  inset: 0;
  background: url('images/tuicop.png') center center / cover no-repeat;
  opacity: 0.75;
  filter: brightness(2);
  transform: scaleX(-1);
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

/* HEADER */
header {
  text-align: center;
  padding-top: 8vh;
  position: relative;
  z-index: 2;
  animation: fadeUp 1.5s ease both;
  will-change: opacity, transform;
}

header h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.8em, 7vw, 7em);
  color: #608187;
  margin: 0;
}

header p {
  font-family: 'Lovely Home', cursive;
  font-size: clamp(2.5em, 3vw, 2em);
  margin: 0.5em 0 0;
  color: #3ce728;
}

/* NAVIGATION */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2em;
  margin: 2em 1em 3em;
  z-index: 2;
  position: relative;
  border-radius: 40px;
  padding: 0.8em 1.5em;
  animation: fadeUp 2s ease both;
  will-change: opacity, transform;
}

nav a {
  font-family: 'BlackChancery', cursive;
  font-size: clamp(1.8em, 4vw, 2em);
  color: #2ee119;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
  will-change: transform, text-shadow;
}

nav a:hover {
  color: #a8f0a0;
  transform: scale(1.08);
  text-shadow: 0 0 8px rgba(0,255,128,0.5);
}

/* VIDEO SECTION */
.video-section {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
  animation: fadeUp 2.5s ease both;
  will-change: opacity, transform;
}

.video-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  padding: 15px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(0,255,128,0.05), rgba(0,64,32,0.25));
  box-shadow: 0 0 20px rgba(0,255,128,0.5);
  animation: pulseBox 3s infinite ease-in-out;
  will-change: box-shadow, transform;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.85;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,128,0.15), rgba(0,128,64,0.05));
  border-radius: 12px;
  pointer-events: none;
}

.video-caption {
  margin-top: 25px;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.3em, 4vw, 2.3em);
  color: #c5f7c6;
  text-shadow: 0 0 16px rgba(0,255,128,0.6);
  will-change: text-shadow;
}

/* UNMUTE BUTTON */
#unmuteBtn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6em 1.4em;
  background: linear-gradient(145deg, #00ff88, #1b5e20);
  border: 2px solid #00ff88;
  border-radius: 50px;
  color: #0b2e1c;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,255,128,0.5);
  transition: all 0.25s ease;
  font-size: clamp(0.9em, 3vw, 1em);
  will-change: transform, box-shadow;
}

#unmuteBtn:hover {
  background: linear-gradient(145deg,#1b5e20,#00ff88);
  color: #c5f7c6;
  box-shadow: 0 0 40px rgba(0,255,128,0.8);
  transform: scale(1.08) translateX(-50%);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2em 1em;
  color: #a5d6a7;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: clamp(0.8em, 2.5vw, 0.95em);
  position: relative;
  z-index: 2;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
  margin-top: 1em;
}

.footer-links a {
  color: #9ef0a0;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #c5f7c6;
}

.favicon-link img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  transition: transform 0.25s ease;
}

.favicon-link img:hover {
  transform: scale(1.15);
}

/* TOP BUTTON */
#topBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: linear-gradient(145deg, #00ff88, #1b5e20);
  color: #0b2e1c;
  border: 2px solid #00ff88;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0,255,128,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
}

#topBtn:hover {
  background: linear-gradient(145deg,#1b5e20,#00ff88);
  color: #c5f7c6;
  box-shadow: 0 0 40px rgba(0,255,128,0.8);
  transform: scale(1.08);
}

/* MOBILE */
@media (max-width: 768px) {
  .tui-bg {
    background-position: left center;
    background-size: contain;
    opacity: 0.65;
  }
}

@media (max-width: 480px) {
  nav { flex-direction: column; align-items: center; }
  .footer-links { flex-direction: column; gap: 0.8em; }
  #topBtn { padding: 10px; border-radius: 50%; font-size: 18px; bottom: 15px; right: 15px; }
}

/* ANIMATIONS */
@keyframes pulseBox {
  0%,100% { box-shadow: 0 0 20px rgba(0,255,128,0.5); }
  50% { box-shadow: 0 0 40px rgba(0,255,128,0.8); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
