/* ---------------------------------------------------
   Modern Biohacker / BodyBlueprint AI Updated Styles
   ---------------------------------------------------*/

/* ----------------- Basic Global Styling ----------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333333;
  text-align: center; /* So main content is centered text by default */
}

/* ----------------- Navigation Styles ----------------- */
nav ul {
  list-style-type: none;
  padding: 10px 0; /* 🎯 top and bottom padding */
  background: #37474f;
  width: 100%;
  text-align: center;
  margin: 0; /* 🎯 remove default browser margin */
}

nav ul li {
  display: inline-block; /* 🎯 change from 'inline' to 'inline-block' */
  margin: 0 15px; /* 🎯 more margin = easier to tap */
  padding: 10px 5px; /* 🎯 padding around the links for tapability */
}

nav ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: normal; /* 🔥 Reset to normal */
  font-family: sans-serif; /* 🔥 Go back to clean default */
}

nav ul li a:hover {
  text-decoration: underline;
}
/* 🎯 Base Icon Style */
nav ul li a i {
  color: #2196f3; /* Blue icon */
  font-size: 1.2rem; /* Icon size */
  transition: transform 0.5s ease, color 0.3s ease; /* Smooth transform and color change */
}

/* 🎯 On Hover, Bounce + Color Change */
nav ul li a:hover i {
  animation: bounceIcon 0.6s ease;
  color: #42F59E; /* Neon green on hover (you can change if you want) */
}

/* 🎯 Keyframes for Bounce Animation */
@keyframes bounceIcon {
  0%   { transform: scale(1) translateY(0); }
  30%  { transform: scale(1.2) translateY(-6px); }
  50%  { transform: scale(0.9) translateY(0px); }
  70%  { transform: scale(1.05) translateY(-3px); }
  100% { transform: scale(1) translateY(0); }
}

.button-blue {
  background-color: #2196f3; /* bright blue */
  color: #ffffff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.button-blue:hover {
  background-color: #1976d2; /* darker blue on hover */
}

/* --------------- Hero Section --------------- */
.hero {
  position: relative;
  color: #ffffff;
  padding: 3em 1em;
  text-align: center;

  /* 🔥 Presentation swirl background */
  background-image: url("bg-swirl.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Slight softness */
  overflow: hidden;
}

/* 🎯 Dark overlay for legibility */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.35); /* controls contrast */
  backdrop-filter: blur(1px); /* subtle premium feel */
  z-index: 0;
}

/* Ensure content sits above overlay */
.hero > * {
  position: relative;
  z-index: 1;
}

/* Title in Hero */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
  font-weight: 700;
}

/* Hero paragraph */
.hero p {
  max-width: 650px;
  margin: 0.5em auto 1.5em auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA Button */
.hero .cta-button {
  display: inline-block;
  background-color: #2196f3;
  color: #ffffff;
  padding: 1em 2.2em;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover animation stays */
.hero .cta-button:hover {
  background-color: #1976d2;
  animation: bounce 0.8s ease;
}

/* Bounce animation */
@keyframes bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  50% { transform: scale(0.96); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Title Highlight (logo pill) */
.highlighted-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2196f3;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.25em 0.6em;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Smaller hero section for internal pages */
.small-hero {
  position: relative;
  background-image: url("/assets/bg-swirl.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 1.5em 1em 1em 1em;
  text-align: center;
  margin-bottom: 2em;
}

.small-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 25, 0.7);
  z-index: 0;
}

.small-hero > * {
  position: relative;
  z-index: 1;
}

/* ✨ Animation Class */
.title-animate {
  animation: popFadeIn 1s ease forwards;
}

@keyframes popFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --------------- Main Container --------------- */
main {
  margin: 0 auto;
  max-width: 900px;
  padding: 1em;
}

/* --------------- Features Section --------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  margin: 3em 0;
}
.features .feature {
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 1.5em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.features .feature:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.feature h3 {
  margin-bottom: 0.5em;
  font-size: 1.2rem;
}
.feature p {
  font-size: 0.95rem;
  line-height: 1.4;
}
.feature i {
  color: #2196f3;
  margin-right: 0.3em;
}
#installFeatureBox {
  background: #f0f8ff;
  border: 2px dashed #0d0d0d;
}

/* --- Progress Bar Container --- */
.progress-bar-container {
  background-color: #e0e0e0; /* Light gray background */
  height: 20px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin: 1em 0;
}

/* --- Progress Bar --- */
.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #42F59E; /* Default color (your calorie bar is green) */
  transition: width 0.5s ease;
  border-radius: 10px;
}

/* --------------- Feedback Form Section --------------- */

.feedback-form {
  max-width: 600px;
  margin: 4em auto;
  padding: 2.5em;
  border-radius: 14px;
  background-color: #ffffff;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}

/* Title */
.feedback-form h2 {
  margin-bottom: 0.3em;
  font-size: 1.6em;
  font-weight: 700;
}

/* Description text */
.feedback-form p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 1.8em;
}

/* Labels (centered but aligned correctly above boxes) */
.feedback-form label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin: 1.2em 0 0.4em;
  color: #333;
}

/* Inputs + textarea (Reddit-style modern look) */
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background: #f6f7f8;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

/* Hover state */
.feedback-form input:hover,
.feedback-form textarea:hover {
  border-color: #b3b3b3;
}

/* Focus state */
.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: #0079d3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,121,211,0.25);
}

/* Modern Submit Button */
.feedback-form .cta-button {
  background: #0079d3;
  color: white;
  border: none;
  padding: 12px 22px;
  margin-top: 1.2em;
  font-size: 1.05em;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  width: auto;
  display: inline-block;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

.feedback-form .cta-button:hover {
  background: #005ea3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.feedback-form .cta-button:active {
  transform: scale(0.97);
}
/* --------------- Privacy Section --------------- */
.privacy {
  background: #fff;
  padding: 1.5em;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 2em;
}
.privacy h4 {
  margin-bottom: 0.5em;
  font-size: 1.25rem;
  font-weight: 700;
}
.privacy p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1em;
}
.privacy i {
  color: #2196f3;
  margin-right: 0.3em;
}

/* --------------- Footer Note --------------- */
.footer-note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 2em;
  text-align: center;
}
.footer-note a {
  color: inherit;
  text-decoration: none;
}
.footer-note a:hover {
  text-decoration: underline;
}

/* --------------- Additional / Optional Styles --------------- */
/* If you have reset-btn, delete-btn, etc., you can keep them from your previous code. */
/* -------------------------------------------------------
   Reddit-Style Modern Input Boxes (Safe Global Upgrade)
   -------------------------------------------------------*/

input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="password"],
textarea,
select {
  width: 100%;
  max-width: 380px;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  background: #f6f7f8;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Hover */
input:hover,
textarea:hover,
select:hover {
  border-color: #b3b3b3;
}

/* Focus */
input:focus,
textarea:focus,
select:focus {
  border-color: #0079d3;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,121,211,0.25);
}
/* -------------------------------
   Fix Feedback Form Label Spacing
   ------------------------------- */
.feedback-form label {
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 6px;
  margin-top: 12px;
  font-weight: 600;
}

/* Optional: align textarea and input perfectly */
.feedback-form input,
.feedback-form textarea {
  margin-top: 4px !important;
}
/* Labels remain unchanged */
