/* Nash Deen — AI Automation Agency
   Custom styles on top of Tailwind CDN
   ===================================== */

:root {
  --accent: #c8936c;
  --accent-light: #d9a47d;
  --accent-glow: rgba(200, 147, 108, 0.15);
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #888888;
}

/* ── Base ─────────────────────────────── */
html { scroll-behavior: smooth; }
body { background-color: var(--bg); color: var(--text); }
section { scroll-margin-top: 80px; }

/* ── Hero Particle Canvas ─────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
#hero-section { cursor: crosshair; }
#hero-section .btn-primary,
#hero-section .btn-outline { cursor: pointer; }

/* ── Pain Card Icon Box ───────────────── */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(200, 147, 108, 0.1);
  border: 1px solid rgba(200, 147, 108, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* ── Hero Background ──────────────────── */
.hero-bg {
  background-image: radial-gradient(circle, #222 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-glow {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Glassmorphism Card ───────────────── */
.glass-card {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Gradient Headline Text ──────────── */
.gradient-text {
  background: linear-gradient(135deg, #f5f5f5 0%, var(--accent) 60%, #e8c4a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 147, 108, 0.35);
}

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(200, 147, 108, 0.45);
  color: var(--accent);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover {
  background: rgba(200, 147, 108, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── Sticky Nav ──────────────────────── */
#navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Mobile Menu ─────────────────────── */
.mobile-menu-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.mobile-menu-panel.open {
  max-height: 420px;
  opacity: 1;
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  margin-top: 8px;
  padding: 0 8px 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200,147,108,0.06);
}

/* ── Stat Number ─────────────────────── */
.stat-num {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #e8c4a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Popular Badge ───────────────────── */
.popular-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
}

/* ── Package card accent top border ─── */
.card-accent-top { border-top: 2px solid var(--accent); }
.card-default-top { border-top: 2px solid var(--border); }

/* ── Step Number Circle ──────────────── */
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  margin: 0 auto 1.5rem;
  flex-shrink: 0;
}

/* ── Avatar Initials ─────────────────── */
.avatar-nd {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Tag Pills ───────────────────────── */
.tag-pill {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* ── CTA glow ────────────────────────── */
.cta-glow {
  background: rgba(200, 147, 108, 0.06);
  border-radius: 24px;
  filter: blur(48px);
}

/* ── Divider line ────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Scrollbar ───────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── AOS custom easing ───────────────── */
[data-aos] { will-change: transform, opacity; }


/* ════════════════════════════════════════
   HERO ANIMATIONS
════════════════════════════════════════ */

/* Floating ambient orbs */
@keyframes float-a {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  33%       { transform: translateY(-28px) translateX(14px) scale(1.04); }
  66%       { transform: translateY(14px) translateX(-10px) scale(0.97); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  40%       { transform: translateY(22px) translateX(-18px); }
  80%       { transform: translateY(-16px) translateX(12px); }
}
@keyframes float-c {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-18px) scale(1.06); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}
.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(200,147,108,0.22) 0%, transparent 70%);
  top: -140px; left: -120px;
  animation: float-a 9s ease-in-out infinite;
}
.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(200,147,108,0.16) 0%, transparent 70%);
  top: 30%; right: -80px;
  animation: float-b 11s ease-in-out infinite;
}
.orb-3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(232,196,160,0.14) 0%, transparent 70%);
  bottom: 8%; left: 15%;
  animation: float-c 7s ease-in-out infinite 1.5s;
}

/* Animated gradient headline */
@keyframes gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
.gradient-text {
  background: linear-gradient(135deg, #f0f0f0 0%, var(--accent) 40%, #f0c88a 65%, var(--accent) 80%, #f5f5f5 100%);
  background-size: 250% 250%;
  animation: gradient-pan 5s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge shimmer sweep */
@keyframes badge-shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(300%) skewX(-15deg); }
}
.hero-badge {
  position: relative;
  overflow: hidden;
}
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200,147,108,0.4), transparent);
  animation: badge-shimmer 3.5s ease-in-out infinite 2s;
}

/* Hero elements stagger-in */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-animate-1 { animation: hero-fade-up 0.7s ease-out 0.1s both; }
.hero-animate-2 { animation: hero-fade-up 0.7s ease-out 0.3s both; }
.hero-animate-3 { animation: hero-fade-up 0.7s ease-out 0.55s both; }
.hero-animate-4 { animation: hero-fade-up 0.7s ease-out 0.75s both; }
.hero-animate-5 { animation: hero-fade-up 0.5s ease-out 1.0s both; }

/* Scroll-down caret bounce */
@keyframes caret-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}
.scroll-caret {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  animation: caret-bounce 1.8s ease-in-out infinite;
}


/* ════════════════════════════════════════
   SCROLL PROGRESS BAR
════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #e8c4a0);
  z-index: 9999;
  transition: width 0.1s linear;
}


/* ════════════════════════════════════════
   SECTION SCROLL ANIMATIONS (AOS helpers)
════════════════════════════════════════ */

/* Section label slide-in */
.section-label {
  display: inline-block;
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: -20px; top: 50%;
  width: 12px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.4s ease 0.3s, left 0.4s ease 0.3s;
}
[data-aos].aos-animate .section-label::before,
.section-label.active::before {
  opacity: 1; left: -16px;
}

/* Step num hover lift */
.step-num {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.step-num:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(200,147,108,0.25);
}

/* Glass card hover */
.glass-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* Count-up number — initial hidden state handled by JS */
.count-num {
  display: inline-block;
}

/* Underline reveal on section h2 */
.heading-underline {
  position: relative;
  display: inline-block;
}
.heading-underline::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.8s ease 0.3s;
}
.heading-underline.underline-active::after { width: 100%; }


/* ════════════════════════════════════════
   MOBILE & TABLET OPTIMIZATIONS
════════════════════════════════════════ */

@media (max-width: 767px) {
  /* Shrink ambient orbs so they don't overflow on small screens */
  .orb-1 { width: 260px; height: 260px; top: -80px; left: -60px; }
  .orb-2 { width: 200px; height: 200px; }
  .orb-3 { width: 130px; height: 130px; }

  /* Reduce hero canvas opacity for better readability on small screens */
  #hero-canvas { opacity: 0.5; }

  /* Ensure buttons meet 48px minimum touch target height */
  .btn-primary, .btn-outline { min-height: 48px; display: flex; align-items: center; justify-content: center; }

  /* Tag pills slightly smaller */
  .tag-pill { font-size: 11px; padding: 5px 10px; }

  /* Stat number slightly smaller */
  .stat-num { font-size: 2.25rem; }

  /* Step number circles slightly smaller */
  .step-num { width: 52px; height: 52px; font-size: 1.25rem; }

  /* Avatar slightly smaller */
  .avatar-nd { width: 72px; height: 72px; font-size: 1.25rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* On tablet, give pricing cards a bit more breathing room */
  .popular-badge { font-size: 9px; }
}
