/* ============================================
   HARIOM FREELANCERS — style.css
   Colors: White bg, Red (#E53935), Black text
   Font: Poppins
   ============================================ */

:root {
  --red: #E53935;
  --red-dark: #B71C1C;
  --red-light: #FFEBEE;
  --black: #111111;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-400: #9ca3af;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: #fff; color: #111; }

/* ── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-fade-up  { animation: fadeUp 0.7s ease both; }
.animate-fade-left { animation: fadeLeft 0.7s ease both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVBAR ────────────────────────────────── */
.navbar {
  transition: box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(8px);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.logo-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.logo-icon:hover { transform: rotate(10deg) scale(1.05); }

.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after { width: 100%; }

.cta-nav-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.call-btn {
  background: var(--red);
  color: #fff;
}
.call-btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(229,57,53,0.35); }

.whatsapp-btn {
  background: #111;
  color: #fff;
}
.whatsapp-btn:hover { background: #333; transform: translateY(-1px); }

.mobile-nav-link {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--red); }

/* ── FLOATING BUTTONS ──────────────────────── */
.floating-btns {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.fab-btn:hover { transform: scale(1.1); }
.call-fab {
  background: var(--red);
  animation: pulse-ring 2s infinite;
}
.whatsapp-fab { background: #25D366; }

/* ── HERO ──────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(229,57,53,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red-light);
  color: var(--red-dark);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #111;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  max-width: 500px;
}

.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.primary-btn { background: var(--red); color: #fff; }
.primary-btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(229,57,53,0.3); }

.whatsapp-hero-btn { background: #111; color: #fff; }
.whatsapp-hero-btn:hover { background: #25D366; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.3); }

.outline-btn { background: transparent; color: var(--red); border: 2px solid var(--red); }
.outline-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); background-color: white; }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px;
  background: #fff;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
  text-align: center;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hero-card .material-icons-round { color: var(--red); font-size: 28px; }
.hc-1 { animation-delay: 0s; }
.hc-2 { animation-delay: 0.3s; }
.hc-3 { animation-delay: 0.6s; }
.hc-4 { animation-delay: 0.9s; }
.hc-5 { animation-delay: 1.2s; }
.hc-6 { animation-delay: 1.5s; }

.hero-badge-floating {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  padding: 12px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  border: 2px solid var(--red-light);
  animation: float 3s ease-in-out 0.5s infinite;
}

/* ── COUNTERS ──────────────────────────────── */
.counters-section { background: var(--red); }
.counter-item { display: flex; flex-direction: column; align-items: center; }
.counter-icon .material-icons-round { font-size: 40px; opacity: 0.85; margin-bottom: 10px; }
.counter-number {
  font-size: 3rem;
  font-weight: 800;
  display: inline;
  line-height: 1;
}
.counter-plus { font-size: 2rem; font-weight: 800; display: inline; }
.counter-label { font-size: 0.9rem; font-weight: 500; opacity: 0.9; margin-top: 6px; }
.counter-divider {
  border-left: 1px solid rgba(255,255,255,0.2);
  border-right: 1px solid rgba(255,255,255,0.2);
}
@media(max-width: 768px) { .counter-divider { border: none; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); padding: 24px 0; } }

/* ── SECTION SHARED ────────────────────────── */
.section-badge {
  display: inline-block;
  background: var(--red-light);
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.section-badge-light {
  display: inline-block;
  background: rgba(229,57,53,0.15);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 0.95rem;
  color: #666;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SERVICE CARDS ─────────────────────────── */
.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(229,57,53,0.12);
  border-color: rgba(229,57,53,0.2);
}
.service-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
}
.service-icon .material-icons-round { color: var(--red); font-size: 26px; }
.service-card h3 { font-size: 1rem; font-weight: 700; color: #111; }
.service-card p { font-size: 0.83rem; color: #666; line-height: 1.65; flex: 1; }
.service-price {
  font-size: 0.8rem;
  color: var(--red-dark);
  font-weight: 600;
  padding: 6px 12px;
  background: var(--red-light);
  border-radius: 8px;
  display: inline-block;
}
.service-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  padding: 10px 18px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.service-cta:hover { background: var(--red); }

/* ── SAMPLE CARDS ──────────────────────────── */
.sample-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  transition: var(--transition);
}
.sample-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sample-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.sample-body { padding: 18px 20px; }
.sample-body h3 { font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.sample-body p { font-size: 0.8rem; color: #666; line-height: 1.6; }
.sample-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  background: var(--red-light);
  color: var(--red-dark);
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
}

/* ── TESTIMONIAL CARDS ─────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  transition: var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 22px;
  font-size: 5rem;
  color: var(--red-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-feedback { font-size: 0.88rem; color: #555; line-height: 1.75; margin-bottom: 18px; }
.testimonial-meta { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: #111; }
.testimonial-prof { font-size: 0.75rem; color: #888; }
.stars { color: #f59e0b; font-size: 0.85rem; margin-top: 3px; }

/* ── TRUST CARDS ───────────────────────────── */
.trust-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.trust-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.trust-icon {
  width: 58px; height: 58px;
  background: var(--red);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.trust-icon .material-icons-round { color: #fff; font-size: 26px; }
.trust-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.trust-card p { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.65; }

/* ── CONTACT ───────────────────────────────── */
.contact-info-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: #f9f9f9;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  transition: var(--transition);
}
.contact-info-card:hover { border-color: rgba(229,57,53,0.25); box-shadow: var(--shadow-sm); }
.ci-icon {
  width: 46px; height: 46px;
  background: var(--red);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.whatsapp-ci { background: #25D366; }
.ci-icon .material-icons-round { color: #fff; font-size: 20px; }
.ci-label { font-size: 0.72rem; color: #888; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.ci-value { font-size: 0.95rem; font-weight: 600; color: #111; text-decoration: none; display: block; }
.ci-value:hover { color: var(--red); }

.contact-form-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid #f0f0f0;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,57,53,0.1); }
.form-input::placeholder { color: #bbb; }

/* ── FAQ ───────────────────────────────────── */
.faq-item {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #eee;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: rgba(229,57,53,0.3); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: #111;
  gap: 12px;
}
.faq-icon {
  color: var(--red);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.86rem;
  color: #555;
  line-height: 1.75;
  padding: 0 22px;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 22px 18px;
}

/* ── FOOTER ────────────────────────────────── */
.footer-link {
  display: block;
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--red); }

/* ── UTILITY ───────────────────────────────── */
.hidden { display: none !important; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge-floating { bottom: -12px; font-size: 0.75rem; }
  .contact-form-wrap { padding: 24px 18px; }
}
@media (max-width: 480px) {
  .hero-btn { padding: 10px 16px; font-size: 0.82rem; }
}