/* ============================================
   BiostatHealth Landing Page - Styles
   Color scheme derived from BiostarHealth.in
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #00A8A8;
  --primary-dark: #008B8B;
  --primary-light: #00c4c4;
  --primary-glow: rgba(0, 168, 168, 0.15);
  --secondary: #4CAF50;
  --accent: #FF6B6B;
  --bg-dark: #0c1a2a;
  --bg-section: #f6f9fc;
  --bg-white: #ffffff;
  --text-dark: #1a2332;
  --text-body: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text-body); line-height: 1.7; background: var(--bg-white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none;
  box-shadow: 0 4px 20px rgba(0,168,168,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,168,168,0.45); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---------- Section Common ---------- */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; padding: 6px 20px; border-radius: var(--radius-full);
  background: var(--primary-glow); color: var(--primary); font-weight: 600;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 { font-size: 2.5rem; color: var(--text-dark); margin-bottom: 16px; line-height: 1.2; }
.section-desc { color: var(--text-body); font-size: 1.08rem; line-height: 1.7; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
  background: rgba(255,255,255,0.0);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06); padding: 10px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; color: var(--text-dark); font-weight: 600;
}
.logo i { color: var(--primary); font-size: 1.5rem; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 18px; border-radius: var(--radius-full);
  font-weight: 500; font-size: 0.95rem; color: var(--text-body);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important; padding: 10px 24px !important;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,168,168,0.3); }

/* Hamburger */
.nav-toggle { display: none; width: 36px; height: 36px; position: relative; z-index: 1001; }
.hamburger, .hamburger::before, .hamburger::after {
  content: ''; display: block; width: 24px; height: 2.5px;
  background: var(--text-dark); border-radius: 2px;
  transition: var(--transition); position: absolute; left: 6px;
}
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
  background: linear-gradient(160deg, #f0fafa 0%, #e6f7f7 40%, #f6f9fc 100%);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute; border-radius: 50%; opacity: 0.12;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.shape-1 { width: 500px; height: 500px; top: -120px; right: -100px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; bottom: -60px; left: -80px; animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 30%; animation: float 6s ease-in-out infinite 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.04); }
}

.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: var(--radius-full);
  background: rgba(0,168,168,0.1); color: var(--primary);
  font-weight: 600; font-size: 0.85rem; margin-bottom: 20px;
}
.hero h1 { font-size: 3.4rem; color: var(--text-dark); line-height: 1.15; margin-bottom: 20px; font-weight: 800; }
.hero-subtitle { font-size: 1.12rem; color: var(--text-body); margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat { text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.stat-plus { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.stat-label { display: block; font-size: 0.82rem; color: var(--text-light); font-weight: 500; margin-top: 2px; }

/* Hero Visual Card */
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: var(--bg-white); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-xl); width: 100%; max-width: 420px;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary-light));
}
.card-graph { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 20px; }
.bar {
  flex: 1; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  height: var(--h); opacity: 0;
  animation: barGrow 0.6s ease-out forwards;
  animation-delay: calc(var(--delay, 0) * 0.12s);
}
.bar:nth-child(even) { background: linear-gradient(180deg, var(--secondary), #388E3C); }
@keyframes barGrow { to { opacity: 1; } }
.card-label { margin-top: 20px; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.card-label i { color: var(--primary); margin-right: 6px; }

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.about-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; transition: var(--transition); position: relative; overflow: hidden;
}
.about-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.about-card:hover::after { transform: scaleX(1); }
.about-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--primary-glow); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.about-card h3 { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 12px; }
.about-card p { font-size: 0.92rem; color: var(--text-body); line-height: 1.65; margin: 0; }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--bg-section); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 48px; }
.service-card {
  background: var(--bg-white); border-radius: var(--radius-lg); padding: 40px 32px;
  border: 1px solid var(--border); transition: var(--transition); position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 24px;
}
.service-card h3 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 12px; }
.service-card p { font-size: 0.94rem; line-height: 1.65; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  padding: 4px 14px; border-radius: var(--radius-full);
  background: var(--primary-glow); color: var(--primary);
  font-size: 0.78rem; font-weight: 600;
}

/* Tools Row */
.services-tools { text-align: center; }
.services-tools h4 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 20px; }
.tools-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.tool-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-weight: 600; font-size: 0.9rem;
  color: var(--text-dark); transition: var(--transition);
}
.tool-badge i { color: var(--primary); }
.tool-badge:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }

/* ===== MILESTONES ===== */
.milestones {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0f2540 100%);
  color: #fff;
}
.milestone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.milestone-card { text-align: center; padding: 32px 20px; }
.milestone-icon { font-size: 2rem; color: var(--primary-light); margin-bottom: 16px; }
.milestone-number { font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; }
.milestone-suffix { font-size: 1.1rem; font-weight: 600; color: var(--primary-light); margin-bottom: 8px; }
.milestone-card p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }

/* ===== REVIEWS ===== */
.reviews { padding: 100px 0; background: var(--bg-white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: var(--transition); display: flex; flex-direction: column;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.review-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.reviewer-img {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.reviewer-info h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 2px; }
.reviewer-role { display: block; font-size: 0.82rem; color: var(--primary); font-weight: 500; }
.reviewer-place { display: block; font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.reviewer-place i { font-size: 0.7rem; margin-right: 4px; }
.review-body { flex: 1; }
.review-body p { font-size: 0.9rem; color: var(--text-body); line-height: 1.7; font-style: italic; margin: 0; }
.review-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.review-stars { color: #f59e0b; font-size: 0.85rem; display: flex; gap: 2px; }
.review-date { font-size: 0.78rem; color: var(--text-light); }
.review-date i { margin-right: 4px; }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; background: var(--bg-section); }
.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg); padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; font-size: 2.2rem; margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,0.9); font-size: 1.08rem; max-width: 600px; margin: 0 auto 32px; }
.cta-card .btn-primary {
  background: #fff; color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-card .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* ===== FOOTER ===== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; color: #fff; margin-bottom: 16px; }
.footer-logo i { color: var(--primary-light); }
.footer-section p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-section h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a, .footer-section ul li { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-section ul li a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-section ul li i { color: var(--primary-light); margin-right: 8px; font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0; }
.footer-bottom a { color: var(--primary-light); }
.footer-bottom a:hover { color: #fff; }

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: var(--transition); animation: pulse-wa 2s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.5); }
.whatsapp-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--text-dark); padding: 8px 16px;
  border-radius: var(--radius); font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow-md); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.15), 0 0 0 12px rgba(37,211,102,0.08); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 100px; right: 32px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-white); color: var(--primary);
  border: 1px solid var(--border); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: var(--transition);
  opacity: 0; pointer-events: none; transform: translateY(20px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== SCROLL ANIMATIONS ===== */
.animate-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 360px; }
  .hero h1 { font-size: 2.6rem; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .milestone-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }

  /* Nav */
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bg-white); flex-direction: column;
    padding: 100px 32px 32px; gap: 8px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition); z-index: 999;
  }
  .nav-menu.active { right: 0; }
  .nav-link { width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--radius); }
  .nav-link:hover, .nav-link.active { background: var(--primary-glow); }
  .btn-nav { text-align: center !important; margin-top: 8px; }

  /* Mobile Overlay */
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 998; opacity: 0; pointer-events: none; transition: var(--transition);
  }
  .nav-overlay.active { opacity: 1; pointer-events: auto; }

  /* Hero */
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat-number { font-size: 1.6rem; }
  .hero-card { max-width: 300px; padding: 28px; }
  .card-graph { height: 140px; }

  /* About */
  .about { padding: 64px 0; }
  .about-grid { grid-template-columns: 1fr; }

  /* Services */
  .services { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }

  /* Milestones */
  .milestones { padding: 48px 0; }
  .milestone-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .milestone-number { font-size: 2.2rem; }

  /* Reviews */
  .reviews { padding: 64px 0; }
  .reviews-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-card { padding: 40px 24px; }
  .cta-card h2 { font-size: 1.6rem; }

  /* Footer */
  .footer { padding: 48px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Section headers */
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.8rem; }

  /* WhatsApp & Back to top */
  .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 1.7rem; }
  .whatsapp-tooltip { display: none; }
  .back-to-top { bottom: 84px; right: 24px; width: 40px; height: 40px; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { gap: 16px; }
  .hero-stat { flex: 1; min-width: 80px; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
  .milestone-card { padding: 20px 12px; }
  .milestone-number { font-size: 1.8rem; }
  .review-card { padding: 24px 20px; }
  .tools-row { gap: 10px; }
  .tool-badge { padding: 8px 16px; font-size: 0.82rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
