:root {
  /* Customizable Color Scheme */
  --bg-primary: #001212; /* Deep Obsidian Teal */
  --bg-secondary: #001e1e; /* Lighter Obsidian Teal */
  --text-primary: #e0f0f0; /* Off-white with teal tint */
  --text-secondary: #8fbcbc; /* Muted teal for secondary text */
  --accent-color: #005e5e; /* Base Obsidian Teal Accent */
  --nav-bg: rgba(0, 18, 18, 0.7);

  /* Typography */
  --font-stack:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

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

body,
html {
  font-family: var(--font-stack);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: padding-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Navigation Header --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 1rem;
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav a {
  color: var(--text-primary);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.navbar nav a:hover {
  color: var(--accent-color);
}

/* --- Language Switcher --- */
.lang-switcher {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  margin-left: 2rem;
  font-family: var(--font-stack);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.lang-switcher option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn-primary {
  background: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: #fff !important;
  font-weight: 600;
}

.btn-large {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  transition: transform 0.2s ease;
}

.btn-large:hover {
  transform: scale(1.05);
}

/* --- Sanctuary Section --- */
.sanctuary-section {
  position: relative;
  background-color: var(--bg-primary);
}

.sanctuary-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}

.sanctuary-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.sanctuary-img.active {
  opacity: 1;
}

.sanctuary-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 18, 18, 0.3) 0%, rgba(0, 18, 18, 0.8) 100%);
  z-index: 1;
}

.sanctuary-content {
  position: relative;
  z-index: 2;
  margin-top: -100vh; /* Pull content up to start overlapping the sticky frame */
}

.sanctuary-step {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

.step-card {
  background: rgba(0, 18, 18, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 24px;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.step-card h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Scrollytelling Sections --- */
.scrolly-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  padding-top: 5rem;
}

.content h1 {
  font-size: 6vw;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.content h2 {
  font-size: 5vw;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.content p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Images --- */
.feature-image {
  max-width: 100%;
  width: 800px;
  height: auto;
  border-radius: 24px;
  margin-top: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s ease;
}

.feature-image:hover {
  transform: translateY(-5px);
}

/* --- Parallax specific styling --- */
.parallax-section {
  position: relative;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=2564&auto=format&fit=crop");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  opacity: 0.3; /* Keeps the background dark so text remains readable */
  z-index: 0;
}

.parallax-section .content {
  position: relative;
  z-index: 1;
}

/* --- Sticky Showcase Section --- */
.sticky-showcase {
  /* Make section tall enough to scroll through 5 images (100vh per image) */
  height: 500vh;
  position: relative;
  background-color: var(--bg-primary);
}

.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-content {
  position: absolute;
  top: 15%;
  z-index: 10;
}

.showcase-content h2 {
  font-size: 3vw;
  letter-spacing: -0.02em;
}

.showcase-img {
  position: absolute;
  max-width: 90%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-img.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.cta-section {
  background-color: var(--bg-primary);
}

/* --- Responsive Design & Mobile Menu --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 3px;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }
  
  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.4s ease, visibility 0.4s;
  }
  
  .navbar nav.active {
    max-height: 400px;
    padding: 1.5rem 0;
    opacity: 1;
    visibility: visible;
  }
  
  .navbar nav a {
    margin: 1rem 0;
    font-size: 1.2rem;
  }
  
  .lang-switcher {
    margin: 1rem 0;
  }

  .content h1 {
    font-size: 12vw;
  }

  .content h2 {
    font-size: 10vw;
  }

  .content p {
    font-size: 1.1rem;
  }
  
  .showcase-content h2 {
    font-size: 8vw;
  }

  .step-card {
    padding: 2rem;
  }
  .step-card h2 {
    font-size: 2rem;
  }
  .step-card p {
    font-size: 1rem;
  }
}
