/* ════════════════════════════════════════════
   GymBuddy India — Shared Stylesheet
   Imported by every page via <link rel="stylesheet" href="shared.css">
   Page-specific styles live in each page's own <style> block.
════════════════════════════════════════════ */

/* ────────────────────────────────────────────
   DESIGN TOKENS
──────────────────────────────────────────── */
:root {
  --black:    #080808;
  --dark:     #0f0f0f;
  --card:     #141414;
  --card2:    #1a1a1a;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --text:     #e8e8e8;
  --muted:    #666;
  --muted2:   #999;
  --white:    #ffffff;
  --lime:     #c8f135;
  --lime2:    #a8cc20;
  --lime-glow:rgba(200,241,53,0.12);
  --red:      #ef4444;
  --green:    #22c55e;
  --wa:       #25D366;
  --blue:     #60a5fa;
  --amber:    #f59e0b;
  --orange:   #f97316;
  --yellow:   #facc15;
  --protein:  #c8f135;
  --carbs:    #60a5fa;
  --fat:      #f59e0b;
  --radius:   12px;
  --radius-lg:20px;
}

/* ────────────────────────────────────────────
   RESET & BASE
──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 4px; }

/* noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* ────────────────────────────────────────────
   NAV
──────────────────────────────────────────── */
nav#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 3px;
  color: var(--lime); text-decoration: none;
}
.nav-logo span { color: var(--white); }
.nav-links {
  display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--muted2); text-decoration: none; transition: color 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1.1; white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--lime); }
.nav-cta {
  background: var(--lime) !important;
  color: #000 !important;
  padding: 8px 20px; border-radius: 6px;
  font-weight: 700 !important; font-size: 13px !important;
  display: flex; align-items: center; gap: 6px;
  transition: opacity 0.2s !important;
  letter-spacing: 0.5px;
  text-decoration: none;
  min-height: 40px; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 899;
  background: rgba(8,8,8,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 40px; flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; }

/* ────────────────────────────────────────────
   UTILITIES
──────────────────────────────────────────── */
.max-w { max-width: 1120px; margin: 0 auto; }

section { padding: 100px 40px; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--lime); margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block; width: 20px; height: 2px; background: var(--lime);
}

h2.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95; letter-spacing: 1px;
  color: var(--white); margin-bottom: 20px;
}
h2.section-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; color: var(--lime); letter-spacing: 0;
}
.section-sub { font-size: 17px; color: var(--muted2); max-width: 520px; line-height: 1.7; }

/* ────────────────────────────────────────────
   ANIMATIONS
──────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px);  } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px);  } to { opacity: 1; transform: none; } }
@keyframes pulse    { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes typing   { 0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); } 30% { opacity: 1; transform: scale(1); } }

/* ────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 48px 40px 32px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 3px;
  color: var(--lime); margin-bottom: 12px;
}
.footer-brand span { color: var(--white); }
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted2); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  max-width: 1120px; margin: 0 auto;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-ig {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-ig:hover { color: var(--lime); }

/* ────────────────────────────────────────────
   SCROLL PROGRESS DOTS
──────────────────────────────────────────── */
.scroll-dots {
  position: fixed; top: 50%; right: 20px;
  transform: translateY(-50%);
  z-index: 850; width: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 12px 0; opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease; background: transparent;
}
.scroll-dots.visible { opacity: 1; pointer-events: auto; }
.scroll-dot {
  position: relative; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.scroll-dot-core {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transition: background 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
  position: relative; flex-shrink: 0;
}
.scroll-dot:hover .scroll-dot-core { background: rgba(255,255,255,0.5); transform: scale(1.25); }
.scroll-dot.active .scroll-dot-core {
  background: var(--lime); transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(200,241,53,0.12), 0 0 16px rgba(200,241,53,0.5);
}
.scroll-dot.visited .scroll-dot-core { background: rgba(200,241,53,0.45); }
.scroll-dot-label {
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border2); color: var(--text);
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 7px 12px; border-radius: 6px;
  white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0.25s;
}
.scroll-dot-label::after {
  content: ''; position: absolute; left: 100%; top: 50%;
  transform: translateY(-50%); border: 5px solid transparent;
  border-left-color: rgba(15,15,15,0.95);
}
.scroll-dot:hover .scroll-dot-label {
  opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0);
  transition: opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0s;
}
.scroll-dot.active .scroll-dot-label { color: var(--lime); }

/* ────────────────────────────────────────────
   NUDGE BAR
──────────────────────────────────────────── */
.nudge-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-top: 1px solid rgba(200,241,53,0.22);
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,0.6),
    0 -1px 0 0 rgba(200,241,53,0.08) inset;
  transform: translateY(120%); opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
}
.nudge-bar.show  { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nudge-bar.hiding { transform: translateY(120%); opacity: 0; }
.nudge-bar::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  transition: width 0.8s 0.3s ease;
}
.nudge-bar.show::before { width: 60%; }
.nudge-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 40px;
  display: flex; align-items: center; gap: 24px;
}
.nudge-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.25);
  display: grid; place-items: center; color: var(--wa); position: relative;
}
.nudge-icon::after {
  content: ''; position: absolute; top: 3px; right: 3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wa); box-shadow: 0 0 0 2px rgba(12,12,12,0.92);
  animation: pulse 2s ease infinite;
}
.nudge-icon svg { width: 22px; height: 22px; }
.nudge-text { flex: 1; min-width: 0; }
.nudge-title { font-size: 14px; font-weight: 700; color: var(--white); letter-spacing: 0.2px; margin-bottom: 2px; }
.nudge-sub   { font-size: 13px; color: var(--muted2); line-height: 1.5; }
.nudge-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #0a2c16;
  font-weight: 700; font-size: 13.5px; padding: 11px 20px; border-radius: 8px;
  text-decoration: none; letter-spacing: 0.3px;
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.nudge-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,0.28); }
.nudge-cta svg { width: 15px; height: 15px; }
.nudge-close {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border); color: var(--muted2);
  cursor: pointer; display: grid; place-items: center;
  transition: all 0.2s; font-size: 16px; line-height: 1; padding: 0;
}
.nudge-close:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border2); color: var(--text);
}

/* ────────────────────────────────────────────
   SEO LANDING PAGES
──────────────────────────────────────────── */
.seo-hero { padding: 126px 40px 70px; background: var(--black); position: relative; overflow: hidden; }
.seo-wrap { max-width: 1120px; margin: 0 auto; }
.seo-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr); gap: 54px; align-items: center; }
.seo-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lime); border: 1px solid rgba(200,241,53,.25);
  background: rgba(200,241,53,.08); border-radius: 999px;
  padding: 7px 14px; font-size: 11px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 24px;
}
.seo-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.seo-hero h1 {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(54px, 8.3vw, 112px);
  line-height: .9; letter-spacing: 1px; color: var(--white); margin-bottom: 22px;
}
.seo-hero h1 em { display: block; font-family: 'Instrument Serif', serif; font-style: italic; color: var(--lime); letter-spacing: 0; font-size: .72em; }
.seo-lead { font-size: 18px; color: var(--muted2); line-height: 1.75; max-width: 660px; margin-bottom: 32px; }
.seo-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.seo-primary, .seo-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; padding: 14px 22px; text-decoration: none;
  font-size: 14px; font-weight: 800;
}
.seo-primary { background: var(--lime); color: #000; }
.seo-secondary { border: 1px solid var(--border2); color: var(--text); }
.seo-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.seo-card-head { padding: 22px; border-bottom: 1px solid var(--border); background: linear-gradient(145deg, rgba(37,211,102,.09), rgba(200,241,53,.05)); }
.seo-card-title { font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 5px; }
.seo-card-sub { font-size: 12px; color: var(--muted2); }
.seo-chat { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.seo-bubble { max-width: 88%; padding: 11px 13px; border-radius: 13px; font-size: 13px; line-height: 1.55; color: var(--text); background: #1f2c34; }
.seo-bubble.user { margin-left: auto; border-radius: 13px 13px 0 13px; background: rgba(200,241,53,.1); border: 1px solid rgba(200,241,53,.18); }
.seo-bubble.coach { border-radius: 13px 13px 13px 0; }
.seo-section { padding: 82px 40px; background: var(--dark); }
.seo-section.alt { background: var(--black); }
.seo-intro { max-width: 700px; margin-bottom: 42px; }
.seo-title {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(40px, 6vw, 70px);
  line-height: .96; color: var(--white); letter-spacing: 1px; margin-bottom: 16px;
}
.seo-title em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--lime); letter-spacing: 0; }
.seo-copy { color: var(--muted2); font-size: 16px; line-height: 1.75; }
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seo-grid.two { grid-template-columns: repeat(2, 1fr); }
.seo-feature { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.seo-feature strong { display: block; color: var(--white); font-size: 17px; margin-bottom: 9px; }
.seo-feature p { color: var(--muted2); font-size: 14px; line-height: 1.7; }
.seo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.seo-step { background: var(--card); padding: 26px; }
.seo-step-num { font-family: 'Bebas Neue', sans-serif; color: var(--lime); font-size: 34px; line-height: 1; margin-bottom: 12px; }
.seo-step strong { display: block; color: var(--white); margin-bottom: 8px; }
.seo-step p { font-size: 14px; color: var(--muted2); line-height: 1.7; }
.seo-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.seo-col { background: var(--card); padding: 28px; }
.seo-col h3 { font-size: 20px; color: var(--white); margin-bottom: 16px; }
.seo-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.seo-col li { font-size: 14px; color: var(--muted2); line-height: 1.55; }
.seo-col.good { background: linear-gradient(145deg, rgba(200,241,53,.08), var(--card)); }
.seo-col.good li::before { content: '✓ '; color: var(--lime); font-weight: 800; }
.seo-col.bad li::before { content: '× '; color: var(--red); font-weight: 800; }
.seo-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seo-related a { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 800; }
.seo-related a span { display: block; color: var(--muted2); font-size: 12px; font-weight: 500; line-height: 1.55; margin-top: 5px; }
.seo-faq { max-width: 760px; }
.seo-faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 18px 20px; }
.seo-faq summary { cursor: pointer; color: var(--white); font-weight: 800; }
.seo-faq p { color: var(--muted2); font-size: 14px; line-height: 1.75; margin-top: 12px; }
.seo-final { padding: 90px 40px; text-align: center; background: var(--dark); }
.seo-final p { max-width: 560px; margin: 0 auto 28px; color: var(--muted2); font-size: 17px; line-height: 1.75; }

/* ────────────────────────────────────────────
   RESPONSIVE (shared breakpoints)
──────────────────────────────────────────── */
@media (max-width: 1024px) { .scroll-dots { display: none; } }

@media (max-width: 900px) {
  nav#navbar   { padding: 0 24px; }
  .nav-links   { display: none; }
  .hamburger   { display: flex; }
  .mobile-menu { padding: 24px; }
  footer       { padding: 48px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  section      { padding: 72px 24px; }
  .seo-hero-grid, .seo-grid, .seo-grid.two, .seo-steps, .seo-comparison, .seo-related { grid-template-columns: 1fr; }
  .seo-hero { text-align: center; padding: 110px 24px 58px; }
  .seo-lead { margin-left: auto; margin-right: auto; }
  .seo-actions { justify-content: center; }
  .seo-section { padding: 70px 24px; }
  .seo-final { padding: 76px 24px; }
}

@media (max-width: 768px) {
  .nudge-inner { padding: 14px 18px; gap: 12px; }
  .nudge-title { font-size: 13px; }
  .nudge-sub   { font-size: 11.5px; line-height: 1.4; }
  .nudge-icon  { width: 38px; height: 38px; }
  .nudge-icon svg { width: 18px; height: 18px; }
  .nudge-cta   { padding: 10px 14px; font-size: 12.5px; }
  .nudge-cta span.nudge-cta-long { display: none; }
  .nudge-close { width: 30px; height: 30px; font-size: 14px; }
}

@media (max-width: 480px) {
  .nudge-inner { flex-wrap: wrap; gap: 10px 12px; }
  .nudge-text  { flex: 1 1 100%; order: -1; }
  .nudge-icon  { display: none; }
}
