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

body {
  background-color: #050000;
  background-image: url("assets/background.png"); /* Fallback or generated asset */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #f5f5f5; /* Brigther text */
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  color: #d4af37; /* Metallic Gold */
  letter-spacing: 1px;
}

/* Utilities */
.hidden {
  display: none;
  opacity: 0;
}

/* Music Control */
.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#music-toggle {
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.interaction-area {
  padding: 0 20%;
}

#music-toggle:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* Snowfall Canvas */
#snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-content .subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: #cccccc;
}

/* Tree-div Container */
.tree-container {
  margin-top: 3rem;
  width: 150px;
  height: 225px; /* Aspect ratio */
}

.tango-tree {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.light {
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.blink-1 {
  animation-name: blink;
  animation-delay: 0s;
}
.blink-2 {
  animation-name: blink;
  animation-delay: 0.7s;
}
.blink-3 {
  animation-name: blink;
  animation-delay: 1.4s;
}

.star {
  transform-origin: 50% 10%;
}
.glow-pulse {
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 2px currentColor);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px #d4af37);
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px #ffd700);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  animation: bounce 2s infinite;
  opacity: 0.5;
  font-size: 1.5rem;
  color: #d4af37;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* General Content Sections */
.content-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.card {
  background: rgba(20, 0, 0, 0.6);
  border-left: 3px solid #d4af37;
  padding: 20px;
  margin: 20px 0;
  max-width: 600px;
  width: 90%;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.card p {
  font-size: 1.3rem;
  font-weight: 300;
}

/* Engineering Section */
.engineering-viz {
  margin-bottom: 2rem;
}
.pulse-dot {
  animation: pulse-dot-anim 2s infinite;
}
@keyframes pulse-dot-anim {
  0% {
    r: 3;
    opacity: 1;
  }
  100% {
    r: 8;
    opacity: 0;
  }
}

.text-block p {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #eee;
}

/* Message Section */
.message-section .quote-box {
  border: 1px solid #d4af37;
  padding: 3rem;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
}

.message-section .quote-box::before,
.message-section .quote-box::after {
  content: '"';
  font-size: 4rem;
  color: #d4af37;
  position: absolute;
  opacity: 0.3;
}

.message-section .quote-box::before {
  top: 10px;
  left: 10px;
}
.message-section .quote-box::after {
  bottom: -20px;
  right: 20px;
}

/* Final Section */
.final-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

.final-text {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

.gold-btn {
  background: linear-gradient(45deg, #d4af37, #fee180, #d4af37);
  background-size: 200% auto;
  color: #000;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-family: "Lato", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.5s ease;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.gold-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.reveal-text {
  margin-top: 2rem;
  font-size: 1.8rem;
  color: #d4af37;
  animation: fadeInUp 1s forwards;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: simpleFadeIn 1.5s forwards;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  animation-delay: 0.5s;
  transition-delay: 0.2s;
}
.delay-2 {
  animation-delay: 1s;
  transition-delay: 0.4s;
}
.delay-3 {
  animation-delay: 1.5s;
  transition-delay: 0.6s;
}

@keyframes simpleFadeIn {
  to {
    opacity: 1;
  }
}

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

/* Gallery Section */
.section-title {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 2rem;
  font-family: "Playfair Display", serif;
}

.gallery-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  width: 90%;
  max-width: 1000px;
}

.gallery-item {
  width: 250px;
  height: 250px;
  overflow: hidden;
  border: 1px solid #d4af37;
  border-radius: 4px;
  position: relative;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  opacity: 1;
}

.gallery-caption {
  font-style: italic;
  color: #f1f1f1;
  margin-top: 1rem;
}

/* Engineering Tree */
.engineering-tree-container {
  width: 180px;
  height: 250px;
  margin-bottom: 2rem;
}

.eng-tree {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.gear-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 4s linear infinite;
}

.gear-spin-reverse {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 4s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Lightbox Styles */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border: 2px solid #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  animation: zoomIn 0.3s;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: #d4af37;
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .card {
    width: 100%;
  }
  .message-section .quote-box {
    padding: 2rem;
  }
}

#tree-div {
  width: 100%;
  height: 80dvh;
  position: relative;
}

#tree-div svg {
  width: 100%;
  height: 100%;
}
/* Color Palette */
#cat {
  opacity: 1;
}

.shadow-2,
.shadow-1 {
  opacity: 0;
}
