:root {
  /* Primary Colors */
  --vintage-cream: #f4f1ea;
  --ocean-blue: #1b4b6b;
  --sunset-orange: #e5734d;
  --explorer-brown: #8b5a2b;
  --tropical-teal: #2a9d8f;
  --dusty-olive: #556b2f;
  
  /* Accent Colors */
  --passport-red: #b33939;
  --ink-black: #2b2b2b;
  --postcard-blue: rgba(27, 75, 107, 0.8);
  --sand-gradient: linear-gradient(135deg, #eaddcf 0%, #d2b48c 100%);
  --paper-texture: url('../textures/paper-texture.png'); /* Mock texture */

  /* Typography */
  --font-heading: 'Playfair Display', serif; /* Documentary style */
  --font-body: 'Inter', sans-serif; /* Scrapbook layout */
  --font-handwriting: 'Caveat', cursive; /* Handwritten notes */
}

/* Global Setup */
html {
  scroll-behavior: initial;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--vintage-cream);
  color: var(--ink-black);
  font-family: var(--font-body);
  overflow-x: hidden;
  /* Add subtle texture */
  background-image: var(--paper-texture);
  background-blend-mode: multiply;
}

/* Lenis recommended classes */
html.lenis, html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.handwritten {
  font-family: var(--font-handwriting);
  color: var(--ink-black);
}

/* --- Layouts & Containers --- */
.journal-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

/* --- Navigation --- */
.scrapbook-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  transition: all 0.4s ease;
  background: transparent;
}

.scrapbook-nav.scrolled {
  background: rgba(244, 241, 234, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--explorer-brown);
}

.scrapbook-nav.scrolled .nav-brand {
  color: var(--ocean-blue);
  text-shadow: none;
}

.scrapbook-nav.scrolled .nav-link {
  color: var(--ink-black);
  text-shadow: none;
}

.scrapbook-nav.scrolled .nav-link.dropdown-toggle {
  color: var(--ink-black);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff; /* Changed to white for visibility over hero images */
  text-decoration: none;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Added shadow for legibility */
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  color: #fff; /* Changed to white for visibility over hero images */
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Added shadow for legibility */
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--passport-red);
  transition: width 0.3s ease;
}

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

/* --- Hero Section --- */
.hero-journal {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 3rem;
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(5px);
  border: 1px solid var(--explorer-brown);
  transform: rotate(-1deg);
  box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

.hero-title {
  font-size: 5rem;
  color: var(--ocean-blue);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-handwriting);
  font-size: 2.5rem;
  color: var(--passport-red);
  margin-bottom: 2rem;
  transform: rotate(-3deg);
  display: inline-block;
}

.btn-passport {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  background: var(--ocean-blue);
  color: var(--vintage-cream);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border: 2px solid var(--ocean-blue);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-passport:hover {
  background: transparent;
  color: var(--ocean-blue);
  border-style: dashed;
}

/* --- Scrapbook Polaroids --- */
.polaroid-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 5rem 0;
}

.polaroid-card {
  background: #fff;
  padding: 15px 15px 40px 15px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
  transform: rotate(random(-5deg, 5deg)); /* We'll use JS/GSAP for actual random rotation */
  transition: transform 0.3s ease;
  max-width: 300px;
}

.polaroid-card:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 10;
}

.polaroid-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #ddd;
}

.polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  text-align: center;
  margin-top: 15px;
  color: var(--ink-black);
}

/* --- Footer --- */
.journal-footer {
  background: var(--ocean-blue);
  color: var(--vintage-cream);
  padding: 4rem 2rem 2rem;
  position: relative;
  border-top: 5px dashed var(--sunset-orange);
}

.footer-stamp {
  position: absolute;
  top: -40px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 0.8;
  transform: rotate(15deg);
}

/* GSAP utility classes */
.reveal-up { opacity: 0; transform: translateY(50px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }

/* --- Mobile Menu & Responsive Navigation --- */
.scrapbook-nav .btn-outline-light {
  color: #fff;
  border-color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.scrapbook-nav.scrolled .btn-outline-light {
  color: var(--ink-black) !important;
  border-color: var(--ink-black) !important;
}

.offcanvas {
  max-width: 320px;
}

.offcanvas-header {
  background: var(--vintage-cream);
  border-bottom: 2px dashed var(--explorer-brown) !important;
}

.offcanvas-body a {
  transition: all 0.3s ease;
}

.offcanvas-body a:hover {
  color: var(--passport-red) !important;
  transform: translateX(5px);
}

