/* ==============================================
   HOME.CSS — Homepage sections
   TechMishra Theme v3.0
   ============================================== */

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(59,130,246,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 85%, rgba(59,130,246,0.10) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-left {}

.hero-available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6EE7B7;
  margin-bottom: 24px;
}
.hero-available::before {
  content: '';
  width: 8px; height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-title .accent-text { color: var(--accent); }

.hero-desc {
  font-size: 17px;
  color: #94A3B8;
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.hero-tag {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #CBD5E1;
  font-family: var(--font-mono);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.hero-stat {}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: #64748B;
  margin-top: 4px;
}

/* Hero Right Card */
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(12px);
}
.hero-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 22px;
}
.skill-bars     { display: flex; flex-direction: column; gap: 16px; }
.skill-bar-item {}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
.skill-bar-name { font-size: 13px; font-weight: 600; color: #E2E8F0; }
.skill-bar-pct  { font-size: 12px; color: #64748B; font-family: var(--font-mono); }
.skill-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
  width: 0;
  transition: width 1.6s cubic-bezier(0.4,0,0.2,1);
}

/* ══════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════ */
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-5px);
  border-color: rgba(59,130,246,0.2);
}
.service-icon {
  width: 54px; height: 54px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.service-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.service-desc  { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
.service-list  { display: flex; flex-direction: column; gap: 7px; }
.service-list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  background: var(--accent-light);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════ */
.stats-section { background: var(--accent); padding: 72px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 52px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 600; }

/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */
.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.2);
}
.testimonial-stars  { color: #F59E0B; font-size: 17px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-badge  { margin-left: auto; }
.testimonial-header { display: flex; align-items: flex-start; margin-bottom: 14px; }
.testimonial-text   { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-hover);
  font-family: var(--font-heading);
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.testimonial-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════════════
   BLOG PREVIEW CARDS
══════════════════════════════════════════════ */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(59,130,246,0.2);
}
.blog-image {
  height: 190px;
  background: linear-gradient(135deg,#EFF6FF,#DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  overflow: hidden;
}
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-body     { padding: 22px 24px; }
.blog-cat      { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.blog-title    { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--text-primary); }
.blog-title a  { color: var(--text-primary); }
.blog-title a:hover { color: var(--accent); }
.blog-excerpt  { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.blog-meta     { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.blog-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  text-decoration: none;
}
.blog-read-more:hover { gap: 8px; }

/* ══════════════════════════════════════════════
   CTA SECTIONS
══════════════════════════════════════════════ */
.cta-box {
  text-align: center;
  padding: 0px 32px;
}
.cta-box h2   { color: var(--white); margin-bottom: 14px; }
.cta-box p    { color: #64748B; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions  { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Page hero */
.page-hero {
  background: var(--primary);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(59,130,246,0.15) 0%, transparent 70%);
}
.page-hero .container     { position: relative; z-index: 1; }
.page-hero-title          { font-size: clamp(28px,5vw,52px); font-weight: 800; color: white; letter-spacing: -.03em; margin-bottom: 14px; line-height: 1.1; }
.page-hero-sub            { font-size: 16px; color: #64748B; max-width: 520px; margin: 0 auto; line-height: 1.75; }
.page-breadcrumb          { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: #475569; margin-bottom: 16px; flex-wrap: wrap; }
.page-breadcrumb a        { color: var(--accent); font-weight: 600; text-decoration: none; }
.page-breadcrumb a:hover  { color: #60A5FA; }
.page-breadcrumb span     { color: #334155; }

/* ══════════════════════════════════════════════
   SECTION HEADERS (replaces inline margin/flex)
══════════════════════════════════════════════ */
.section-header {
  margin-bottom: 40px;
}
.section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-header--center {
  text-align: center;
  margin-bottom: 40px;
}
.section-header--center .section-label { justify-content: center; }
.section-header--center .section-subtitle { margin: 0 auto; }
.section-header-btn { flex-shrink: 0; }

.section-footer-link {
  text-align: center;
  margin-top: 36px;
}
.section-center { text-align: center; margin-bottom: 40px; }

/* btn-lg */
.btn-lg { font-size: 16px; padding: 14px 32px; }

/* error-404 CTA btns */
.error-404-cta-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact socials inline */
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.contact-social-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--accent-light);
  border-radius: 100px;
  transition: all var(--transition);
}
.contact-social-link:hover { background: var(--accent-light); }

/* Post layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 44px;
  align-items: start;
}
.post-main {}
.post-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.post-hero { padding: 120px 0 0; }
.post-hero-inner { max-width: 820px; margin: 0 auto; }
.post-hero-cats { display: flex; gap: 8px; margin-bottom: 12px; justify-content: center;}
.post-hero-title { font-size: clamp(24px,4vw,42px); font-weight: 800; color: white; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 14px; }
.post-hero-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #64748B; flex-wrap: wrap; padding-bottom: 32px; justify-content: center;}
.post-comments { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--border-light); }
.post-section  { padding-top: 40px; }
.meta-sep { color: var(--border); }

/* Sidebar newsletter input */
.sidebar-newsletter-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.07);
  color: white;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  margin-bottom: 8px;
  transition: border-color .2s;
}
.sidebar-newsletter-input:focus { border-color: rgba(255,255,255,.3); }
.sidebar-newsletter-input::placeholder { color: #64748B; }

/* Project layout */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}
.project-main {}
.project-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.project-detail-image { border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 28px; box-shadow: var(--card-shadow); }
.project-hero-badge { display: inline-flex; margin-bottom: 12px; }
.project-hero-actions {  margin-top: 20px; }
.project-tech-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.project-tech-heading { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.project-tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-related { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.project-related-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.project-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.project-meta-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.project-meta-row:last-child { border-bottom: none; }
.project-meta-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.project-meta-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.project-links-list { display: flex; flex-direction: column; gap: 8px; }

/* About page extra */
.about-intro-grid { align-items: start; gap: 52px; }
.about-intro-content {}
.about-intro-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Hire page */
.hire-grid { gap: 48px; align-items: start; }
.hire-platforms { margin-top: 28px; }
.hire-platforms-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

/* Pricing extras */
.pricing-grid { gap: 28px; align-items: start; padding-top: 8px; }
.pricing-rates-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 28px; }
.pricing-rate-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.pricing-rate-service { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.pricing-rate-prices  { text-align: right; }
.pricing-rate-inr     { font-size: 13px; font-weight: 700; color: var(--accent); display: block; }
.pricing-rate-usd     { font-size: 11px; color: var(--text-muted); }
.pricing-rates-note   { font-size: 12px; color: var(--text-muted); margin-top: 16px; font-style: italic; }

/* Sitemap icon classes */
.sitemap-icon-pages    { background: #EFF6FF; }
.sitemap-icon-portfolio { background: #F5F3FF; }
.sitemap-icon-blog     { background: #F0FDF4; }

/* Search extras */
.search-hero-form  { display: flex; gap: 8px; max-width: 480px; margin-top: 18px; }
.search-hero-input { flex: 1; color: var(--white); background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15); }
.search-hero-input::placeholder { color: #64748B; }
.search-type-badge { background: var(--accent-light); color: var(--accent); padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.search-result-sub-label { font-size: 11px; color: var(--text-muted); }
.search-no-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* Case studies */
.case-study-icon-inner { background: var(--accent-light); color: var(--accent); }
.case-study-result-inner { background: var(--accent); color: white; }
