*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(
    to bottom,
    #0b0618 0%,
    #1a0a2e 25%,
    #2d1b4e 45%,
    #5c2d6e 60%,
    #a4508b 72%,
    #c76a3c 85%,
    #e8963f 95%,
    #f4a62a 100%
  );
  background-attachment: fixed;
  color: #f0e6d3;
  overflow-x: hidden;
}

/* ── Splash Screen ── */

#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0618;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

#splash.fade-in {
  opacity: 1;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Navigation ── */

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(11, 6, 24, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.25s;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0e6d3;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: #f4a62a;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #f4a62a;
  background: rgba(244, 166, 42, 0.08);
}

.nav-link:hover::after {
  width: 50%;
}

.nav-link.active {
  color: #f4a62a;
}

.nav-link.active::after {
  width: 50%;
}

/* ── Main + Pages ── */

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding-top: 4.5rem;
  text-align: center;
}

.page {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  animation: none;
}

.page.active {
  display: block;
  animation: pageFadeIn 0.45s ease-out forwards;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 20px rgba(244, 166, 42, 0.3),
    0 0 60px rgba(92, 45, 110, 0.2);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 16px rgba(244, 166, 42, 0.25),
    0 0 48px rgba(92, 45, 110, 0.15);
  margin-bottom: 1rem;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d4a574;
  opacity: 0.85;
}

/* ── About Page ── */

.about-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: left;
}

.about-content h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  color: #f0e6d3;
  margin-bottom: 1.25rem;
}

.about-content p:last-child {
  margin-bottom: 0;
  color: #f4a62a;
  font-weight: 500;
}

.page-placeholder {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d4a574;
  opacity: 0.65;
}

/* ── Animations ── */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
