/* THEME: DARK (Purples, violets, neon, gold, white text) */
:root {
  /* Dynamic custom-named CSS variables on the topic of healthy eating & cardiovascular health */
  --cardio-ink-core: #0d1117;
  --cardio-surface-dark: #161b22;
  --cardio-pulse-glow: #c084fc; /* Neon violet */
  --cardio-pulse-hover: #a855f7;
  --cardio-pulse-gold: #fbbf24; /* Warm Gold */
  --cardio-milk-high: #ffffff;
  --cardio-milk-faded: #9ca3af;
  --cardio-soft-border: rgba(255, 255, 255, 0.15);
  
  /* Fonts rules */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Set up dynamic variables & base elements */
body {
  font-family: var(--font-body);
  background-color: var(--cardio-ink-core);
  color: var(--cardio-milk-high);
  overflow-x: hidden;
  margin: 0;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

/* Apply UPPERCASE format to general titles dynamically based on random generator settings */
h1, h2, h3 {
  text-transform: uppercase;
}

/* Base custom sections padding as requested (10dvh top & bottom) */
section {
  padding-top: 10dvh;
  padding-bottom: 10dvh;
}

/* Scroll-driven progress bar in Header without JS */
.nutri-scoller-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--cardio-pulse-gold);
  width: 100%;
  transform-origin: 0 50%;
  animation: nutri-scroll-indicator auto linear;
  animation-timeline: scroll();
  z-index: 9999;
}

@keyframes nutri-scroll-indicator {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Scroll-driven fade-in and slide-up animations for cards and sections */
@keyframes nutri-fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation cleanly */
section, .nutri-feat-glass-item, .nutri-quote-wide-slab, .nutri-faq-stripe {
  animation: nutri-fade-up linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 25%;
}

/* Hamburger custom CSS implementation (strictly without JS) */
.nutri-burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.nutri-burger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--cardio-milk-high);
  border-radius: 2px;
  transition: all 0.3s ease;
}

#nutri-drawer-trigger:checked ~ .nutri-burger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#nutri-drawer-trigger:checked ~ .nutri-burger-icon span:nth-child(2) {
  opacity: 0;
}

#nutri-drawer-trigger:checked ~ .nutri-burger-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile responsive drawer */
.nutri-mobile-sidebar {
  position: fixed;
  top: 80px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(16px);
  transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
  z-index: 999;
}

#nutri-drawer-trigger:checked ~ .nutri-mobile-sidebar {
  left: 0;
}

/* PRESET H IMPLEMENTATIONS */

/* Hero screen height based on dynamic variables */
.nutri-hero-stage {
  height: 75vh;
  margin-top: 80px; /* Offset for header */
}

/* Left diagonal accent shape overlay inside Hero section */
.nutri-hero-diagonal-overlay {
  background: linear-gradient(135deg, var(--cardio-pulse-hover) 0%, var(--cardio-pulse-gold) 100%);
  clip-path: polygon(0 0, 42% 0, 24% 100%, 0 100%);
  opacity: 0.15;
  mix-blend-mode: screen;
}

/* Feature elements details - glassmorphism cards */
.nutri-feat-glass-item {
  backdrop-filter: blur(12px);
  background: rgba(22, 27, 34, 0.55);
  border: 1px solid var(--cardio-soft-border);
  border-radius: 16px; /* soft border-radius-style config */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* raised depth shadow */
}

.nutri-feat-glass-item:hover {
  border-color: var(--cardio-pulse-glow);
  box-shadow: 0 12px 40px 0 rgba(192, 132, 252, 0.2);
}

/* Content section 1: Image Left with diagonal right-edge clip-path */
.nutri-clip-diagonal-right {
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  border-radius: 16px 0 0 16px;
}

@media (max-width: 1023px) {
  .nutri-clip-diagonal-right {
    clip-path: none;
    border-radius: 16px;
  }
}

/* Content section 2: Image Right with diagonal left-edge clip-path */
.nutri-clip-diagonal-left {
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 16px 16px 0;
}

@media (max-width: 1023px) {
  .nutri-clip-diagonal-left {
    clip-path: none;
    border-radius: 16px;
  }
}

/* CTA strip diagonal shapes top and bottom */
.nutri-express-bar {
  clip-path: polygon(0 4dvh, 100% 0, 100% calc(100% - 4dvh), 0 100%);
  margin-top: -3px;
  margin-bottom: -3px;
}

/* Pill buttons design */
.nutri-pill-action {
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(192, 132, 252, 0.4);
}

.nutri-pill-action:hover {
  transform: translateY(-2px);
  background: var(--cardio-pulse-hover) !important;
  box-shadow: 0 10px 24px rgba(192, 132, 252, 0.6);
}

/* Glassmorphism Contact Form visual styling */
.nutri-contact-glass-deck {
  backdrop-filter: blur(12px);
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid var(--cardio-soft-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* FAQ All-open borders styling */
.nutri-faq-stripe {
  border-bottom: 1px solid var(--cardio-soft-border);
}

.nutri-faq-stripe:last-child {
  border-bottom: none;
}

/* Decorative SVG pattern custom backdrop */
.nutri-bg-pattern {
  background-image: radial-gradient(rgba(192, 132, 252, 0.08) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

/* Header link styling dynamic */
.nutri-anchor-link {
  position: relative;
}

.nutri-anchor-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--cardio-pulse-glow);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nutri-anchor-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}