/* Global Styles & Variables */
:root {
  --canvas-dark: #120914;
  --surface-glass: rgba(24, 12, 20, 0.45);
  --pink-glow: #ffb7c5;
  --teal-glow: #ff8da1;
  --magenta-glow: #ff5e7e;
  --text-primary: #fdf2f8;
  --text-muted: #fbcfe8;
  --whisper-border: rgba(255, 180, 206, 0.15);
}

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

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

body {
  background-color: var(--canvas-dark);
  color: var(--text-primary);
  font-family: 'Geist', sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  opacity: 0;
  animation: fadeInBody 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--canvas-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--whisper-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--whisper-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shared Layout Containers */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 10;
}

/* Header / Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--whisper-border);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--pink-glow);
  text-shadow: 0 0 8px rgba(255, 180, 206, 0.4);
}

/* Buttons */
.btn-glass {
  background: var(--surface-glass);
  border: 1px solid var(--whisper-border);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-glass:hover {
  transform: translateY(-2px);
  border-color: var(--pink-glow);
  box-shadow: 0 0 16px rgba(255, 180, 206, 0.25);
  color: var(--pink-glow);
}

.btn-glass:active {
  transform: translateY(1px);
}

.btn-teal {
  border-color: var(--teal-glow);
}

.btn-teal:hover {
  border-color: var(--teal-glow);
  box-shadow: 0 0 16px rgba(133, 211, 220, 0.25);
  color: var(--teal-glow);
}

/* Background Fog / Mist Effect */
.ambient-fog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 183, 197, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 141, 161, 0.05) 0%, transparent 50%);
  opacity: 0.8;
  filter: blur(80px);
}

/* Film grain / Noise Filter (Optional/Ambient Overlay) */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Animations */
@keyframes breathingTrunk {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.02); opacity: 1; }
}

@keyframes radialGlow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 180, 206, 0.2)); }
  50% { filter: drop-shadow(0 0 30px rgba(255, 180, 206, 0.45)); }
}

@keyframes shimmersap {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

/* Scroll Fade In */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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