:root {
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;

  --color-dark: #1a1a1a;
  --color-gold: #b08d55;
  --color-cream: #f9f7f2;
  --color-white: #ffffff;

  --transition-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Fixed Background Layer --- */
.fixed-visual-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  /* Behind everything */
  pointer-events: none;
  /* Let clicks pass through */
  background-color: var(--color-cream);
  /* Fallback */
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  /* Slight zoom for init */
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: 100%;
  /* Cover vertically mostly */
  object-fit: contain;
  /* Don't crop the hand too much */
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 1.2s ease-out;
  mix-blend-mode: multiply;
  /* Integrate white bg images */
}

/* Ensure images cover nice on mobile */
@media (max-width: 768px) {
  .bg-layer {
    width: 120%;
    /* Make it bigger on mobile so hand is visible */
    height: auto;
    top: 40%;
    /* Move up slightly */
  }
}

.bg-layer.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* --- Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--color-dark);
}

.desktop-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--color-dark);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* --- Scrollable Content --- */
.scroller {
  position: relative;
  z-index: 10;
  /* Above BG, below Nav */
  /* Leave space for content to breathe */
}

.scroll-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  /* Invisible borders for debugging */
}

/* Cards */
.content-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 3rem;
  border-radius: 2px;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  border-left: 3px solid var(--color-gold);
}

.scroll-section.is-visible .content-card {
  opacity: 1;
  transform: translateY(0);
}

.content-card h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.content-card h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.content-card p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Specific Alignments */
.right-aligned {
  margin-left: auto;
  margin-right: 10%;
}

.left-aligned {
  margin-right: auto;
  margin-left: 10%;
}

.center-aligned {
  margin: 0 auto;
  text-align: center;
  border-left: none;
  border-top: 3px solid var(--color-gold);
  /* User requested this to be lower */
  margin-top: 15vh !important;
}

.hero-card {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  text-align: center;
  border: none;
}

.hero-card h1 {
  font-size: 5rem;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
  margin-top: 3rem;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* CTA Button */
.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background-color: var(--color-dark);
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--color-gold);
  transform: translateY(-2px);
}

/* --- Mobile Nav Overlay --- */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-cream);
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-overlay ul {
  list-style: none;
  text-align: center;
}

.mobile-nav-overlay li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-nav-overlay.active li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-overlay.active li:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-nav-overlay.active li:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-nav-overlay.active li:nth-child(3) {
  transition-delay: 0.3s;
}

.mobile-nav-overlay a {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-dark);
  text-decoration: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Reset Alignments for Mobile */
  .right-aligned,
  .left-aligned,
  .center-aligned {
    margin: 0 auto;
    border-left: none;
    border-top: 3px solid var(--color-gold);
    text-align: center;
    width: 90%;
    margin-top: 0 !important;
    /* Reset the top margin on mobile if needed, or keep it. Let's keep it 0 for better mobile flow usually, but user asked for "down". I'll stick to 0 for mobile unless requested otherwise, as vertical space is scarce. */
  }

  /* Actually, if the user explicitly asked to move it down, they might see it on mobile too high.
     Let's adding some margin top on mobile too, but less. */
  .center-aligned {
    margin-top: 4rem !important;
  }

  .content-card h1 {
    font-size: 3.5rem;
  }

  .content-card h2 {
    font-size: 2rem;
  }

  /* Ensure text is readable over images */
  .content-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem;
  }

  .hero-card {
    background: transparent;
    margin-top: 0 !important;
  }
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 10;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  width: 100%;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}