/* Fonts */
@import url("https://fonts.cdnfonts.com/css/black-north");
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* Fallback font face for Black North */
@font-face {
  font-family: "Black North";
  src:
    url("https://fonts.cdnfonts.com/s/87052/BlackNorth-Regular.woff2")
      format("woff2"),
    url("https://fonts.cdnfonts.com/s/87052/BlackNorth-Regular.woff")
      format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  /* Mobile card system colors - adapted for botanical theme */
  --bg: 25% 0.0075 70;
  --pink: 77.75% 0.1003 350.51;
  --gold: 84.16% 0.1169 71.19;
  --mint: 84.12% 0.1334 165.28;
  --sage-oklch: 70% 0.08 120;

  /* Mobile card dimensions */
  --mobile--w: 360px;
  --mobile--h: 540px;
  --outline-w: 9px;
  --preview-bg: #fff;

  /* Sage green palette - primary colors for the site */
  --sage-dark: #4a5d47;
  --sage-medium: #6b7c68;
  --sage-light: #8fad88;
  --sage-mist: #a8b999;
  --sage-ultra-light: #c4d3c1;
  --sage-whisper: #e8f0e6;
  --sage-700: #4a5d47;
  --sage-800: #3a4a37;

  /* Studio Ghibli magical colors - now harmonized with sage */
  --ghibli-sky: #9cb8c4;
  --ghibli-forest: #4a5d47;
  --ghibli-meadow: #8fad88;
  --ghibli-earth: #b8a082;
  --ghibli-sunset: #d4a574;
  --ghibli-magic: #c4a473;
  --ghibli-mist: #e8f0e6;

  /* Desktop window colors */
  --window-bg: #ffffff;
  --window-border: #d1d5db;
  --titlebar-bg: #4a5d47;
  --titlebar-text: #ffffff;
  --nav-bg: #f8f9fa;
  --nav-hover: #e8f0e6;
  --nav-active: #8fad88;
  --ghibli-shadow: #3a4a37;
  --ghibli-twilight: #6b8e7d;
  --ghibli-bloom: #a67c52;

  /* Text sizes */
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
}

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display', serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ghibli-shadow);
  background-color: #f0f4f0;
  overflow-x: hidden;
}

/* Desktop Background */
.desktop-background {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(135deg, #e8f0e6 0%, #c4d3c1 100%);
  overflow: hidden;
}

/* Floating Particles */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background-color: var(--sage-medium);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(5deg);
  }
  50% {
    transform: translateY(10px) translateX(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(-10px) translateX(5px) rotate(3deg);
  }
}

/* Desktop Window */
.desktop-window {
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  min-height: 600px;
  background: var(--window-bg);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Window Title Bar */
.window-titlebar {
  height: 40px;
  background: var(--titlebar-bg);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
  -webkit-app-region: drag;
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-right: 12px;
}

.window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease;
  -webkit-app-region: no-drag;
}

.window-control.close { background-color: #ff5f56; }
.window-control.minimize { background-color: #ffbd2e; }
.window-control.maximize { background-color: #27c93f; }

.window-title {
  color: var(--titlebar-text);
  font-family: 'Black North', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  font-size: 1.2rem;
}

/* Window Content */
.window-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.content-area {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
}

.content-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 100%;
}

.content-section.active {
  display: block;
  opacity: 1;
}

/* Welcome Section */
.welcome-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.main-title {
  font-family: 'Black North', sans-serif;
  font-size: 3.5rem;
  color: var(--sage-800);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--sage-medium);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.botanical-divider {
  margin: 2rem auto;
  max-width: 300px;
  opacity: 0.8;
}

/* Navigation Bar */
.window-navigation {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0.5rem;
  background-color: var(--nav-bg);
  border-top: 1px solid var(--sage-ultra-light);
  position: relative;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  color: var(--sage-medium);
  position: relative;
  min-width: 70px;
  text-decoration: none;
}

.nav-item:hover {
  background-color: var(--nav-hover);
  transform: translateY(-3px);
  color: var(--sage-dark);
}

.nav-item.active {
  color: var(--sage-dark);
  font-weight: 600;
  background-color: var(--sage-whisper);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--sage-dark);
  border-radius: 50%;
}

.nav-item .nav-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover .nav-icon {
  transform: translateY(-2px) scale(1.1);
}

/* Add tooltips */
.nav-item::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--sage-dark);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.nav-item:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-15px);
}

/* Add a subtle pulse animation to the active nav item */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.nav-item.active .nav-icon {
  animation: pulse 2s infinite;
}

/* Improve focus states for keyboard navigation */
.nav-item:focus {
  outline: 2px solid var(--sage-light);
  outline-offset: 2px;
}

/* Section Styles */
.section-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.section-content h2 {
  font-family: 'Black North', sans-serif;
  font-size: 2.5rem;
  color: var(--sage-800);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-content h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--sage-light), transparent);
  border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .desktop-window {
    width: 95%;
    height: 90vh;
    min-height: auto;
  }
  
  .main-title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .nav-item span {
    font-size: 0.8rem;
  }
}

/* Animation for content sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove legacy styles */
.screen {
  display: none !important;
}

/* Hero page specific styling */
body.hero-active {
  padding: 3rem 2dvw;
}

/* Sage green black hole override when present */
body.blackhole-active {
  background: radial-gradient(
    ellipse at center,
    var(--sage-light) 0%,
    var(--sage-medium) 40%,
    var(--sage-dark) 100%
  ) !important;
  background-attachment: fixed !important;
  overflow: hidden !important;
}

/* Screen Management */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  z-index: 10;
}

.screen.transitioning {
  z-index: 5;
}

/* Black Hole Landing Page Styles */
#blackhole {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
}

.centerHover {
  width: 255px;
  height: 255px;
  background-color: transparent;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -128px;
  margin-left: -128px;
  z-index: 2;
  cursor: pointer;
  line-height: 255px;
  text-align: center;
  transition: all 500ms;
}

.centerHover.open {
  opacity: 0;
  pointer-events: none;
}

.centerHover:hover span {
  color: #e8f0e6;
  text-shadow: 0 0 10px rgba(232, 240, 230, 0.5);
}

.centerHover:hover span:before {
  background-color: #e8f0e6;
  box-shadow: 0 0 5px rgba(232, 240, 230, 0.3);
}

.centerHover:hover span:after {
  background-color: #e8f0e6;
  box-shadow: 0 0 5px rgba(232, 240, 230, 0.3);
}

.centerHover span {
  color: #a8b999;
  font-family: serif;
  font-size: 18px;
  position: relative;
  transition: all 500ms;
  text-shadow: 0 2px 4px rgba(74, 93, 71, 0.3);
}

.centerHover span:before {
  content: "";
  display: inline-block;
  height: 1px;
  width: 16px;
  margin-right: 12px;
  margin-bottom: 4px;
  background-color: #a8b999;
  transition: all 500ms;
}

.centerHover span:after {
  content: "";
  display: inline-block;
  height: 1px;
  width: 16px;
  margin-left: 12px;
  margin-bottom: 4px;
  background-color: #a8b999;
  transition: all 500ms;
}

#blackhole-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: auto;
}

/* Hero Screen Styles */
#hero-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Enhanced botanical background with multiple layers */
.hero-bg-layer {
  position: absolute;
  inset: 0;
}

.hero-bg-primary {
  background: linear-gradient(135deg, var(--sage-whisper), var(--sage-ultra-light), var(--sage-mist));
}

.hero-bg-secondary {
  background: linear-gradient(45deg, transparent, var(--sage-mist), transparent, var(--ghibli-magic));
  opacity: 0.2;
}

.hero-bg-tertiary {
  background: linear-gradient(-45deg, var(--ghibli-twilight), transparent, transparent, var(--sage-light));
  opacity: 0.2;
}

/* Vignette effect */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, transparent 60%, var(--sage-dark) 100%);
  opacity: 0.2;
  pointer-events: none;
}

/* Return to Dreams button */
.return-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ghibli-forest);
  font-family: serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.return-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 93, 71, 0.2);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(2rem);
  animation: heroEntrance 1s ease-out 0.1s forwards;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
}

/* Enhanced header with magical animation */
.hero-header {
  text-align: center;
  margin-bottom: 4rem;
}

#main-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: "Black North", "Times New Roman", serif;
  color: var(--ghibli-forest);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: titleEntrance 1s ease-out 0.3s forwards;
}

.divider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: scale(0.95);
  animation: dividerEntrance 1s ease-out 0.5s forwards;
}

#hero-tagline {
  font-size: 1.25rem;
  opacity: 0.8;
  color: var(--ghibli-shadow);
  font-family: serif;
  opacity: 0;
  transform: translateY(1rem);
  animation: taglineEntrance 1s ease-out 0.7s forwards;
}

/* Mobile Cards Styling */
.card__container {
  display: flex;
  flex-wrap: wrap;
  place-items: center;
  place-content: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.card__container:has(.card:hover) .card:not(:hover) {
  opacity: 0.4;
}

.mobile-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card {
  --bg-pos-y--start: 0;
  --bg-pos-y--end: 0;
  --bg-pos-y: var(--bg-pos-y--start);
  --delay: 0;
  --duration: 6s;
  --shadow-blur: 24px;
  --shadow-color: oklch(var(--sage-oklch));
  --border-color: transparent;
  --rotation: -4deg;

  background-clip: padding-box;
  background-image: var(--botanical-bg);
  background-position-y: var(--bg-pos-y);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  border: var(--outline-w) solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 0 var(--shadow-blur) 0 var(--shadow-color);

  transition: all 0.3s ease;

  filter: grayscale(100%) sepia(5%);
  mix-blend-mode: multiply;
  opacity: 0.69;

  transform: scale(0.85) rotate(var(--rotation));

  outline: var(--outline-w) solid var(--preview-bg);
  outline-offset: var(--outline-w);

  min-height: var(--mobile--h);
  height: 100%;
  min-width: var(--mobile--w);
  width: 100%;
  max-height: var(--mobile--h);
  max-width: var(--mobile--w);

  position: relative;
  cursor: pointer;
  overflow: hidden;

  animation-name: bgScroll;
  animation-delay: var(--delay);
  animation-duration: var(--duration);
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.card:focus,
.card:hover {
  --shadow-blur: 200px;
  --shadow-color: oklch(var(--gold));
  --border-color: var(--shadow-color);

  background-color: white;
  mix-blend-mode: initial;
  filter: none;		
  opacity: 1;	
  
  outline-offset: calc(var(--outline-w) / 2);
  
  transform: scale(1) rotate(0deg);
  z-index: 6;
}

.card:focus {
  --shadow-color: oklch(var(--pink));
  z-index: 5;
}

.card:hover:focus {
  --shadow-color: oklch(var(--mint));
}

/* Card backgrounds */
.card:nth-of-type(1) {
  --botanical-bg: linear-gradient(
      135deg,
      rgba(244, 172, 122, 0.3) 0%,
      rgba(168, 185, 153, 0.5) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><rect fill="%23e8f0e6" width="400" height="600"/><path d="M200 100c-50 0-100 50-100 150s50 200 100 200 100-50 100-200-50-150-100-150z" fill="%23F4AC7A" opacity="0.3"/><circle cx="200" cy="200" r="30" fill="%23a8b999"/></svg>');
  --rotation: -4deg;
  animation-delay: 0.5s;
  opacity: 0;
  animation-name: bgScroll, cardEntrance;
  animation-duration: var(--duration), 0.8s;
  animation-fill-mode: forwards, forwards;
  animation-iteration-count: infinite, 1;
  animation-direction: alternate, normal;
}

.card:nth-of-type(2) {
  --bg-pos-y--end: calc(var(--mobile--h) * -1.025);
  --botanical-bg: linear-gradient(
      135deg,
      rgba(184, 169, 217, 0.3) 0%,
      rgba(143, 173, 136, 0.5) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><rect fill="%23e8f0e6" width="400" height="600"/><path d="M100 500h200v-200L200 100 100 300z" fill="%23B8A9D9" opacity="0.3"/><path d="M50 550 Q 150 450, 250 550 Q 350 450, 450 550" stroke="%23a8b999" stroke-width="3" fill="none"/></svg>');
  --rotation: 3deg;
  animation-delay: 0.65s;
  opacity: 0;
  animation-name: bgScroll, cardEntrance;
  animation-duration: var(--duration), 0.8s;
  animation-fill-mode: forwards, forwards;
  animation-iteration-count: infinite, 1;
  animation-direction: alternate, normal;
}

.card:nth-of-type(3) {
  --bg-pos-y--end: calc(var(--mobile--h) * -2.25);
  --duration: 6.5s;
  --botanical-bg: linear-gradient(
      135deg,
      rgba(230, 215, 163, 0.3) 0%,
      rgba(143, 173, 136, 0.5) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><rect fill="%23e8f0e6" width="400" height="600"/><circle cx="200" cy="150" r="15" fill="%23E6D7A3" opacity="0.4"/><circle cx="300" cy="200" r="15" fill="%23E6D7A3" opacity="0.4"/><circle cx="200" cy="250" r="15" fill="%23E6D7A3" opacity="0.4"/><circle cx="100" cy="200" r="15" fill="%23E6D7A3" opacity="0.4"/><circle cx="200" cy="300" r="15" fill="%23E6D7A3" opacity="0.4"/><path d="M150 450l50-50 200-200 50 50-200 200-50 50z" fill="%23a8b999" opacity="0.3"/></svg>');
  --rotation: -1deg;
  animation-delay: 0.8s;
  opacity: 0;
  animation-name: bgScroll, cardEntrance;
  animation-duration: var(--duration), 0.8s;
  animation-fill-mode: forwards, forwards;
  animation-iteration-count: infinite, 1;
  animation-direction: alternate, normal;
}

.card:nth-of-type(4) {
  --bg-pos-y--end: calc(var(--mobile--h) * -3.75);
  --duration: 6.75s;
  --botanical-bg: linear-gradient(
      135deg,
      rgba(156, 184, 196, 0.3) 0%,
      rgba(143, 173, 136, 0.5) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><rect fill="%23e8f0e6" width="400" height="600"/><circle cx="200" cy="200" r="60" fill="none" stroke="%239CB8C4" stroke-width="4" opacity="0.4"/><path d="M200 50v50M200 350v50M50 200h50M350 200h50M100 100l30 30M270 270l30 30M270 130l30-30M100 500l30-30" stroke="%23a8b999" stroke-width="3"/><path d="M150 100l25-50 50 25-25 50z M250 200l25-50 50 25-25 50z M150 300l25-50 50 25-25 50z" fill="%239CB8C4" opacity="0.3"/></svg>');
  --rotation: -5deg;
  animation-delay: 0.95s;
  opacity: 0;
  animation-name: bgScroll, cardEntrance;
  animation-duration: var(--duration), 0.8s;
  animation-fill-mode: forwards, forwards;
  animation-iteration-count: infinite, 1;
  animation-direction: alternate, normal;
}

/* Mobile card content */
.mobile-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    transparent 0%,
    rgba(74, 93, 71, 0.1) 50%,
    rgba(74, 93, 71, 0.8) 100%
  );
  color: white;
  text-align: center;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .mobile-card-content,
.card:focus .mobile-card-content {
  opacity: 1;
}

.mobile-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mobile-card-icon {
  color: white;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card:hover .mobile-card-icon,
.card:focus .mobile-card-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.4));
}

.mobile-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
  margin: 0;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mobile-card-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-style: italic;
  font-family: serif;
  margin: 0;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  animation: particleBurst 0.6s forwards;
}

/* Drifting leaves */
.drifting-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.drifting-leaf {
  position: absolute;
  top: -10%;
  animation: driftDown linear infinite;
  opacity: 0.6;
}

.drifting-leaf:nth-child(1) { animation-duration: 15s; }
.drifting-leaf:nth-child(2) { animation-duration: 18s; }
.drifting-leaf:nth-child(3) { animation-duration: 22s; }
.drifting-leaf:nth-child(4) { animation-duration: 16s; }

/* Magical particles */
.magical-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.magical-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--sage-light);
  border-radius: 50%;
  animation: sparkle 3s infinite, float 6s ease-in-out infinite;
  opacity: 0.7;
}

.magical-particles .particle:nth-child(odd) {
  background: var(--ghibli-twilight);
  animation-delay: -1s;
}

.magical-particles .particle:nth-child(3n) {
  background: var(--ghibli-magic);
  animation-delay: -2s;
}

/* Content Screens */
.content-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-whisper);
}

.content-container {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
}

.content-title {
  font-size: 2.5rem;
  color: var(--ghibli-forest);
  font-family: serif;
  margin-bottom: 2rem;
}

.content-description {
  font-size: 1.25rem;
  color: var(--ghibli-shadow);
  margin-bottom: 2rem;
}

.return-to-garden-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ghibli-forest);
  font-family: serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.return-to-garden-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 93, 71, 0.2);
}

/* Animations */
@keyframes heroEntrance {
  0% { opacity: 0; transform: translateY(2rem); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes titleEntrance {
  0% { opacity: 0; transform: translateY(1rem); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes dividerEntrance {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes taglineEntrance {
  0% { opacity: 0; transform: translateY(1rem); }
  100% { opacity: 0.8; transform: translateY(0); }
}

@keyframes cardEntrance {
  0% { 
    opacity: 0; 
    transform: translateY(30px) scale(0.95);
    filter: blur(5px);
  }
  100% { 
    opacity: 0.69; 
    transform: translateY(0px) scale(0.85) rotate(var(--rotation));
    filter: blur(0px) grayscale(100%) sepia(5%);
  }
}

@keyframes bgScroll {
  to {
    background-position-y: var(--bg-pos-y--end);
  }
}

@keyframes particleBurst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.8);
    opacity: 0;
  }
}

@keyframes driftDown {
  0% {
    transform: translateY(-10vh) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(110vh) translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 0.7;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

/* Shimmer text animation */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--ghibli-forest) 0%,
    var(--sage-light) 25%,
    var(--ghibli-magic) 50%,
    var(--sage-light) 75%,
    var(--ghibli-forest) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Botanical divider */
.botanical-divider {
  opacity: 0.8;
  animation: gentleGlow 4s ease-in-out infinite;
}

@keyframes gentleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(143, 173, 136, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(143, 173, 136, 0.5));
  }
}

/* Responsive */
@media (max-width: 768px) {
  #main-title {
    font-size: 2.5rem;
  }
  
  .mobile-cards-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .card {
    max-width: 320px;
    width: 100%;
  }
  
  .card__container {
    padding: 1rem;
  }
  
  .return-button {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .content-title {
    font-size: 2rem;
  }
  
  body.hero-active {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  #main-title {
    font-size: 2rem;
  }
  
  .card {
    --mobile--w: 280px;
    --mobile--h: 420px;
  }
}