/* ============================================
   THEME VARIABLES
   ============================================ */
:root {
  --navy: #295389;
  --maroon: #7A3527;
  --gold: #FFF053;
  --cream: #fdf5e6;
  --faded: #d2b48c;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--cream);
  color: var(--maroon);
  font-family: 'Playfair Display', serif;
  background-image: url("https://www.transparenttextures.com/patterns/paper-fibers.png");
  overflow-x: hidden;
}

/* Custom Font Classes */
.font-circus {
  font-family: 'Pirata One', system-ui;
}

.font-victorian {
  font-family: 'UnifrakturMaguntia', serif;
}

.font-typewriter {
  font-family: 'Special Elite', monospace;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.sunburst-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200vmax;
  height: 200vmax;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  animation: rotate-sunburst 60s linear infinite;
  background: repeating-conic-gradient(
    from 0deg,
    var(--maroon) 0deg 10deg,
    transparent 10deg 20deg
  );
}

@keyframes rotate-sunburst {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
}

/* ============================================
   LANDING PAGE
   ============================================ */
.bg-navy {
  background-color: var(--navy);
}

.bg-maroon {
  background-color: var(--maroon);
}

.clip-diagonal {
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.curtain-overlay {
  background-image: url('https://images.unsplash.com/photo-1513151233558-d860c5398176?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
}

.landing-card {
  background-color: rgba(253, 245, 230, 0.9);
  padding: 3rem;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
  border: 8px double rgba(255, 240, 83, 0.5);
}

.text-navy {
  color: var(--navy);
}

.text-maroon {
  color: var(--maroon);
}

.text-gold {
  color: var(--gold);
}

.enter-btn {
  background-color: var(--maroon);
  color: var(--gold);
  transition: all 0.5s;
  box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.5);
}

.enter-btn:hover {
  background-color: var(--navy);
}

.flicker {
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.4;
  }
}

.ghost-trigger {
  transition: color 0.3s;
  z-index: 100;
}

.ghost-trigger:hover {
  color: rgba(255, 240, 83, 0.4);
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  width: 100%;
  border-bottom: 4px double rgba(122, 53, 39, 0.2);
  position: sticky;
  top: 0;
  background-color: rgba(253, 245, 230, 0.95);
  backdrop-filter: blur(4px);
  z-index: 40;
  padding: 1rem 2rem;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-container {
    flex-direction: row;
  }
}

.nav-logo {
  font-family: 'Pirata One', system-ui;
  font-size: 2.25rem;
  color: var(--maroon);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .nav-logo {
    margin-bottom: 0;
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  padding-bottom: 0.25rem;
}

.nav-links a:hover {
  color: var(--maroon);
  border-bottom-color: var(--maroon);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  position: relative;
  z-index: 0;
  padding-top: 3rem;
  padding-bottom: 10rem;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

@media (min-width: 768px) {
  .main-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-section {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }
}

.section-badge {
  display: inline-block;
  background-color: var(--maroon);
  color: var(--gold);
  padding: 0.25rem 1rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Pirata One', system-ui;
  font-size: 3.75rem;
  color: var(--navy);
}

.about-description {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--maroon);
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-main-text {
  font-size: 1.5rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .about-main-text {
    font-size: 1.75rem;
    line-height: 1.5;
  }
}

/* Museum Label */
.museum-label {
  background-color: var(--cream);
  border: 1px solid rgba(122, 53, 39, 0.2);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  background-image: url("https://www.transparenttextures.com/patterns/old-map.png");
  transform: rotate(2deg);
}

.museum-label::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  border: 1px solid rgba(122, 53, 39, 0.1);
  pointer-events: none;
}

.portrait-frame {
  aspect-ratio: 4/5;
  background-color: var(--faded);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(122, 53, 39, 0.2);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.5) contrast(1.25);
}

.museum-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
}

.palette-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.palette-colors {
  display: flex;
  gap: 0.25rem;
}

.palette-navy {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--navy);
}

.palette-maroon {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--maroon);
}

.palette-gold {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--gold);
}

.museum-quote {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(122, 53, 39, 0.1);
  font-style: italic;
}

/* ============================================
   SHOWREEL SECTION
   ============================================ */
.reel-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.reel-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reel-title {
  font-family: 'Pirata One', system-ui;
  font-size: 4.5rem;
  color: var(--maroon);
}

.reel-subtitle {
  font-family: 'Special Elite', monospace;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.reel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .reel-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.reel-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reel-item-title {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: 1.875rem;
  color: var(--navy);
}

.vintage-video-container {
  position: relative;
  border: 8px solid var(--navy);
  box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  aspect-ratio: 16/9;
  background-color: rgba(0, 0, 0, 0.1);
}

.vintage-video-container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}

.video-frame {
  width: 100%;
  height: 100%;
  filter: grayscale(0.3) brightness(0.95);
}

.video-caption {
  font-family: 'Special Elite', monospace;
  font-size: 0.875rem;
  color: var(--maroon);
  font-style: italic;
}

/* ============================================
   LORE SECTION
   ============================================ */
.lore-section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.lore-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(41, 83, 137, 0.05);
  transform: skewY(-2deg);
  z-index: -1;
}

.lore-container {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lore-icon {
  margin: 0 auto;
  color: rgba(122, 53, 39, 0.4);
}

.lore-title {
  font-family: 'Pirata One', system-ui;
  font-size: 3.75rem;
  color: var(--maroon);
}

.lore-text-navy {
  color: var(--navy) !important;
}

.lore-text-navy p {
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  line-height: 1.7;
  font-style: italic;
}

@media (min-width: 768px) {
  .lore-text-navy p {
    font-size: 1.35rem;
    line-height: 1.65;
  }
}

/* ============================================
   SOCIAL SECTION
   ============================================ */
.social-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.social-header {
  text-align: center;
}

.social-title {
  font-family: 'Pirata One', system-ui;
  font-size: 3.75rem;
  color: var(--navy);
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 12rem;
  height: 12rem;
  padding: 2rem;
  text-decoration: none;
  box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 240, 83, 0.2);
  position: relative;
  transition: all 0.3s ease;
  border-radius: 0;
}

.social-card:hover {
  transform: translateY(-0.5rem);
}

.social-youtube {
  background-color: var(--maroon);
  color: var(--gold);
}

.social-youtube:hover {
  transform: translateY(-0.5rem) rotate(1deg);
}

.social-twitter {
  background-color: var(--navy);
  color: var(--gold);
}

.social-twitter:hover {
  transform: translateY(-0.5rem) rotate(-1deg);
}

.social-tiktok {
  background-color: #010101;
  color: var(--gold);
}

.social-tiktok:hover {
  transform: translateY(-0.5rem) rotate(2deg);
}

.social-icon {
  margin-bottom: 1rem;
  transition: transform 0.3s;
  width: 48px;
  height: 48px;
}

.social-card:hover .social-icon {
  transform: scale(1.1);
}

.social-name {
  font-family: 'Pirata One', system-ui;
  font-size: 1.5rem;
}

.social-dot {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: rgba(255, 240, 83, 0.4);
  border-radius: 9999px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding-top: 5rem;
  border-top: 1px solid rgba(122, 53, 39, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-sparkle {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.sparkle-icon {
  cursor: pointer;
  color: var(--gold);
  transition: transform 0.3s;
}

.sparkle-icon:hover {
  transform: scale(1.25);
}

.footer-text {
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  color: rgba(122, 53, 39, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5em;
}

/* ============================================
   SECRET OVERLAY
   ============================================ */
.secret-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: black;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  gap: 2rem;
}

.secret-overlay.hidden {
  display: none;
}

.secret-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  pointer-events: none;
}

.secret-icon {
  color: var(--maroon);
  animation: pulse 2s infinite;
  position: relative;
  z-index: 10;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.secret-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.secret-title {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: 3rem;
}

.secret-message {
  font-family: 'Special Elite', monospace;
  font-size: 1.125rem;
  max-width: 28rem;
  margin: 0 auto;
}

.secret-link a {
  color: var(--gold);
  text-decoration: underline;
  transition: all 0.3s;
  cursor: pointer;
  font-family: 'Special Elite', monospace;
  font-size: 1rem;
}

.secret-link a:hover {
  color: var(--maroon);
  text-shadow: 0 0 5px var(--gold);
}

.secret-close {
  margin-top: 3rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  z-index: 10;
}

.secret-close:hover {
  color: var(--maroon);
}

/* ============================================
   UNDER CONSTRUCTION OVERLAY
   ============================================ */
.construction-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.construction-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.construction-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("https://www.transparenttextures.com/patterns/circuit-board.png");
  pointer-events: none;
  animation: slowShift 20s linear infinite;
}

@keyframes slowShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 100%;
  }
}

.construction-content {
  position: relative;
  z-index: 10;
  max-width: 32rem;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border: 2px solid var(--gold);
  box-shadow: 0 0 50px rgba(255, 240, 83, 0.3);
  animation: floatGlow 3s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255, 240, 83, 0.2);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 60px rgba(255, 240, 83, 0.4);
    transform: translateY(-5px);
  }
}

.construction-icon {
  margin-bottom: 1.5rem;
}

.construction-icon svg {
  color: var(--gold);
  animation: spinWrench 4s ease-in-out infinite;
}

@keyframes spinWrench {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}

.construction-title {
  font-family: 'Pirata One', system-ui;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.construction-message {
  font-family: 'Special Elite', monospace;
  color: var(--cream);
  margin-bottom: 2rem;
}

.construction-message p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.construction-sub {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

.construction-progress {
  margin: 2rem 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 240, 83, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  border-radius: 4px;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.progress-text {
  font-size: 0.75rem;
  font-family: 'Special Elite', monospace;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.construction-note {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255, 240, 83, 0.7);
  margin-top: 1.5rem;
}

.construction-close {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Special Elite', monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  z-index: 10;
}

.construction-close:hover {
  background-color: var(--gold);
  color: var(--maroon);
  transform: scale(1.05);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
  display: none;
}

.italic {
  font-style: italic;
}

.font-bold {
  font-weight: bold;
}