/* =========================================
   THE "DARK KINETIC" PREMIUM HERO
   ========================================= */
.hero-kinetic {
  position: relative;
  min-height: 100vh;
  background-color: var(--ink); /* Dark Mode */
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 2rem 60px;
  z-index: 1;
}

/* --- Entrance Animations --- */
.animate-up {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1. Infinite Background Marquee */
.marquee-container {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-5deg);
  width: 120vw;
  white-space: nowrap;
  overflow: hidden;
  z-index: -2;
  opacity: 0.03;
  pointer-events: none;
}
.marquee-text {
  display: inline-block;
  font-family: "Georgia", serif;
  font-size: 15vw;
  font-weight: 800;
  color: var(--paper);
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 2. Main Layout */
.kinetic-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  z-index: 2;
}

/* --- LEFT: Text Content --- */
.kinetic-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.kinetic-text-stage {
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.kinetic-text-stage.fade-out {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-20px);
}

.kinetic-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mustard);
  margin-bottom: 1.5rem;
}
.live-pulse {
  width: 8px;
  height: 8px;
  background: var(--mustard);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(215, 157, 42, 0.6);
  }
  100% {
    box-shadow: 0 0 0 15px rgba(215, 157, 42, 0);
  }
}

.kinetic-title {
  font-family: "Georgia", serif;
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  line-height: 1.1;
  color: var(--paper);
  margin: 0 0 1.5rem 0;
  letter-spacing: -1px;
}
.k-highlight {
  color: var(--red);
  font-style: italic;
  font-weight: 400;
  background: transparent !important;
}

.kinetic-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--line);
  max-width: 85%;
  margin-bottom: 2.5rem;
}

/* Bulletproof Animated Button */
.btn-kinetic-lock {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.5rem 0.5rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  width: max-content;
}
.btn-kinetic-lock .btn-text {
  color: var(--paper);
}
.btn-kinetic-lock .btn-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 15px rgba(215, 157, 42, 0.3);
}
.btn-kinetic-lock:hover {
  border-color: var(--mustard);
  background: rgba(255, 255, 255, 0.1);
}
.btn-kinetic-lock:hover .btn-circle {
  transform: scale(1.15) rotate(45deg);
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 0 25px rgba(167, 52, 44, 0.5);
}

/* Vertical Timeline Navigation */
.kinetic-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
}
.k-nav-item {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
}
.k-nav-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.k-num {
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s;
}

.k-nav-item:hover {
  color: var(--paper);
  transform: translateX(5px);
}
.k-nav-item.active {
  color: var(--paper);
  font-size: 1.2rem;
}
.k-nav-item.active::before {
  background: var(--mustard);
  border-color: var(--mustard);
  box-shadow: 0 0 10px rgba(215, 157, 42, 0.6);
}
.k-nav-item.active .k-num {
  color: var(--mustard);
}

/* --- RIGHT: The Twisting Visuals --- */
.kinetic-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 650px;
}

/* The Glowing Bioluminescent Blob */
.morph-glow-blob {
  position: absolute;
  width: 550px;
  height: 550px;
  background: linear-gradient(135deg, var(--deep) 0%, var(--green) 100%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  box-shadow: 0 0 80px rgba(39, 100, 74, 0.4);
  animation: morph-dark 8s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes morph-dark {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: scale(1) rotate(0deg);
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: scale(1.05) rotate(15deg);
  }
}

/* Orbiting Accents */
.orbit-wrap {
  position: absolute;
  width: 600px;
  height: 600px;
  animation: spin 35s linear infinite;
  z-index: 2;
}
.orbit-item {
  position: absolute;
  font-size: 1.5rem;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: spin-reverse 35s linear infinite;
}
.oi-1 {
  top: 10%;
  left: 20%;
  color: var(--mustard);
}
.oi-2 {
  bottom: 15%;
  right: 15%;
  color: var(--red);
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spin-reverse {
  100% {
    transform: rotate(-360deg);
  }
}

/* The Image Stack (Twisting Reveal Engine) */
.kinetic-plate-stack {
  position: relative;
  width: 500px;
  height: 500px;
  z-index: 5;
}

.k-plate {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);

  /* The Magic Twist Transition */
  transition:
    clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1),
    transform 1.2s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.8s ease;

  /* Hidden State */
  clip-path: circle(0% at 50% 50%);
  transform: scale(0.5) rotate(-90deg);
  opacity: 0;
}

.k-plate.active {
  /* Revealed State */
  clip-path: circle(50% at 50% 50%);
  transform: scale(1) rotate(0deg);
  opacity: 1;
  z-index: 10;
}

/* Continuous slow pan for active image */
.k-plate.active {
  animation: slowPanUltra 25s linear infinite forwards;
  animation-delay: 1.2s;
}
@keyframes slowPanUltra {
  100% {
    transform: scale(1.1) rotate(5deg);
  }
}

/* Entrance Twist Animation on Load */
.animate-twist {
  animation: initialTwist 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes initialTwist {
  0% {
    clip-path: circle(0% at 50% 50%);
    transform: scale(0.5) rotate(-90deg);
    opacity: 0;
  }
  100% {
    clip-path: circle(50% at 50% 50%);
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* =========================================
   RESPONSIVE (< 950px)
   ========================================= */
@media (max-width: 950px) {
  .kinetic-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  .kinetic-eyebrow {
    justify-content: center;
  }
  .kinetic-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .kinetic-actions {
    justify-content: center;
    display: flex;
  }

  .kinetic-nav {
    flex-direction: row;
    border-left: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }
  .k-nav-item::before {
    left: 50%;
    top: auto;
    bottom: -29px;
    transform: translateX(-50%);
  }

  .kinetic-visual {
    height: 450px;
  }
  .kinetic-plate-stack,
  .morph-glow-blob {
    width: 350px;
    height: 350px;
  }
  .orbit-wrap {
    width: 400px;
    height: 400px;
  }
  .marquee-text {
    font-size: 25vw;
  }
}

/* =========================================
   FULL-WIDTH PARALLAX RECIPE BANNER
   ========================================= */
.premium-parallax-section {
  position: relative;
  width: 100%;
  min-height: 70vh; /* Takes up 70% of the screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* THE PARALLAX ENGINE */
  /* Replace this URL with your actual Kosha Mangsho image */
  background-image: url("../img/notebook-banner.webp");
  background-attachment: fixed; /* Locks the image in place */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  /* Creates space above and below the section */
  /* margin: 4rem 0; */
}

/* Cinematic Dark Gradient Overlay */
.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(33, 29, 26, 0.8) 0%,
    rgba(33, 29, 26, 0.4) 100%
  );
  z-index: 1;
}

.parallax-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px; /* Constrains the card width */
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}

/* The Glassmorphism Card */
.parallax-glass-card {
  background: rgba(33, 29, 26, 0.6); /* Semi-transparent Ink */
  backdrop-filter: blur(12px); /* The frosted glass blur */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 3rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.p-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paper);
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
}
.text-mustard {
  color: var(--mustard);
}

.p-title {
  font-family: "Georgia", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 1.5rem 0;
  letter-spacing: -1px;
}
.p-italic {
  color: var(--mustard);
  font-style: italic;
  font-weight: 400;
}

.p-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* Premium Animated Parallax Button */
.btn-parallax {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  background: var(--mustard);
  padding: 0.5rem 0.5rem 0.5rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(215, 157, 42, 0.3);
}
.btn-parallax .btn-text {
  color: var(--ink);
  font-size: 0.95rem;
}
.btn-parallax .btn-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-parallax:hover {
  background: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}
.btn-parallax:hover .btn-icon {
  background: var(--red);
  color: var(--paper);
  transform: scale(1.1);
}

/* =========================================
   FLOATING SCROLL TO TOP BUTTON
   ========================================= */
.elegant-top-btn {
  position: fixed; /* Fixes it to the screen corner */
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--ink);
  color: var(--mustard);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

  /* Default hidden state, shown via JS */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.elegant-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.elegant-top-btn:hover {
  background: var(--red);
  color: var(--paper);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(167, 52, 44, 0.4);
}

/* =========================================
   RESPONSIVE (< 768px)
   ========================================= */
@media (max-width: 768px) {
  .premium-parallax-section {
    /* Mobile browsers (iOS) sometimes struggle with fixed background, 
       this is a safe fallback to standard scrolling on tiny screens */
    background-attachment: scroll;
    min-height: auto;
    padding: 4rem 0;
  }
  .parallax-glass-card {
    padding: 3rem 1.5rem;
  }
  .p-title {
    font-size: 2.2rem;
  }
}

/* =========================================
   ELEGANT FOOD CATEGORIES (LIGHT THEME)
   ========================================= */
.flavor-archives-section {
  background-color: var(--paper); /* Crisp, clean paper background */
  color: var(--ink);
  padding: 100px 2rem;
  position: relative;
  z-index: 2;
}

.flavor-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Header Styling --- */
.flavor-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.f-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red); /* Red pops beautifully on light backgrounds */
  margin-bottom: 1rem;
}

.pulse-dot-red {
  width: 6px;
  height: 6px;
  background-color: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(167, 52, 44, 0.4);
}

.f-title {
  font-family: "Georgia", serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 1.2rem 0;
  letter-spacing: -1px;
}

.f-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* --- The Grid --- */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* --- The Category Card --- */
.flavor-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid var(--line); /* Subtle definition */
  box-shadow: var(--shadow); /* Soft ambient shadow */
  background: var(--paper);
}

/* Image & Overlay */
.fc-img-wrap {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

.fc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.fc-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Milky light gradient using the exact RGB of --paper (#fffaf2) */
  background: linear-gradient(to top, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.4) 50%, transparent 100%);
  transition: background 0.5s ease;
}

/* Text Content */
.fc-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  width: 100%;
  color: var(--ink);
  transform: translateY(15px);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fc-name {
  font-family: "Georgia", serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.fc-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  opacity: 0;
  transition: all 0.4s ease;
}

.fc-explore i {
  transition: transform 0.3s ease;
}

/* --- Card Hover Effects --- */
.flavor-card:hover .fc-img {
  transform: scale(1.08); /* Slow, cinematic zoom */
}

.flavor-card:hover .fc-overlay {
  /* Thickens the cream overlay slightly on hover */
  background: linear-gradient(to top, rgba(255, 250, 242, 1) 0%, rgba(255, 250, 242, 0.7) 60%, transparent 100%);
}

.flavor-card:hover .fc-content {
  transform: translateY(0); /* Slides up smoothly */
}

.flavor-card:hover .fc-name {
  color: var(--red);
}

.flavor-card:hover .fc-explore {
  opacity: 1; /* Reveals the link */
}

.flavor-card:hover .fc-explore i {
  transform: translateX(5px);
}

/* --- Entrance Animation --- */
.animate-up {
  opacity: 0;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE DESIGN (< 768px)
   ========================================= */
@media (max-width: 768px) {
  .flavor-archives-section {
    padding: 80px 1.5rem;
  }
  .flavor-header {
    margin-bottom: 3rem;
  }
  .f-title {
    font-size: 2.2rem;
  }
  .flavor-card {
    aspect-ratio: 16 / 9; /* Switch to landscape on mobile */
  }
  .fc-content {
    transform: translateY(0);
    padding: 1.5rem;
  }
  .fc-explore {
    opacity: 1; /* Always show link on mobile */
  }
}