/* ============================================
   TechMitra — styles.css
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a56db;
  --blue-dark: #1240aa;
  --blue-light: #e8f0fe;
  --accent: #ff6b35;
  --accent-light: #fff3ee;
  --green: #22c55e;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26,86,219,0.10);
  --shadow-lg: 0 12px 40px rgba(26,86,219,0.16);
  --font: 'DM Sans', sans-serif;
  --font-display: 'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 96px 0; }

/* -------- TYPOGRAPHY -------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { line-height: 1.7; color: var(--text-muted); }
.highlight { color: var(--blue); }

/* -------- BUTTONS -------- */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(26,86,219,0.25);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(26,86,219,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.full-w { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: 1.5px solid var(--blue);
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--blue-light); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 50px;
  margin-top: 24px;
  transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }

/* -------- SECTION HEADER -------- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta { margin-left: 8px; padding: 10px 22px; font-size: 0.88rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f1f5c 0%, #1a56db 60%, #2563eb 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg-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: 40px 40px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,179,237,0.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 24px 120px;
}

/* hero text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hero-title { color: #fff; margin-bottom: 20px; }

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-ctas .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.hero-ctas .btn-primary:hover { background: #f0f4ff; }
.hero-ctas .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-ctas .btn-ghost:hover { background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 4px; display: block; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-main {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 360px;
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

.hc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hc-avatar {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.hc-title { font-weight: 600; color: #fff; font-size: 0.95rem; }
.hc-sub { font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.hc-status {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 50px;
}
.hc-status.live { background: rgba(34,197,94,0.2); color: #4ade80; }

.hc-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.hc-metric-val { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.hc-metric-val.green { color: #4ade80; }
.hc-metric-val.blue { color: #60a5fa; }
.hc-metric-val.orange { color: #fb923c; }
.hc-metric-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

.hc-bar-row { display: flex; flex-direction: column; gap: 8px; }
.hc-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.hc-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: var(--w);
  background: var(--c);
  border-radius: 3px;
  animation: barGrow 1.5s ease forwards;
  animation-delay: 0.5s;
  transform-origin: left;
  transform: scaleX(0);
}
@keyframes barGrow { to { transform: scaleX(1); } }

/* float tags */
.float-tag {
  position: absolute;
  background: #fff;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  white-space: nowrap;
  animation: floatTag 3s ease-in-out infinite;
}
.tag1 { top: 10%; left: -30px; animation-delay: 0s; }
.tag2 { bottom: 22%; left: -20px; animation-delay: 1s; }
.tag3 { top: 22%; right: -20px; animation-delay: 0.5s; }
@keyframes floatTag { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }

/* wave */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.service-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.08);
  position: relative;
}
.service-card.featured::before {
  content: '★ Most Popular';
  position: absolute;
  top: -12px; left: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}

.sc-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card h3 { margin-bottom: 10px; color: var(--text); }
.service-card > p { font-size: 0.9rem; margin-bottom: 20px; }

.sc-list { margin-bottom: 24px; flex: 1; }
.sc-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.sc-list li:last-child { border-bottom: none; }
.sc-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.sc-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  margin-top: auto;
  transition: gap 0.15s;
}
.sc-link:hover { text-decoration: underline; }

/* ============================================
   WHY US
   ============================================ */
.why { background: #fff; }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-left h2 { margin-bottom: 16px; }
.why-sub { margin-bottom: 32px; font-size: 1rem; }

.why-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: box-shadow 0.2s;
}
.why-item:hover { box-shadow: var(--shadow); }

.why-icon { font-size: 1.6rem; flex-shrink: 0; }
.why-item h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--text); }
.why-item p { font-size: 0.83rem; line-height: 1.5; }

/* ============================================
   WORK / PORTFOLIO
   ============================================ */
.work { background: var(--bg-alt); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.work-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.work-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.work-mock {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 80%;
  padding: 10px;
}
.mock-bar {
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin-bottom: 8px;
  width: 50%;
}
.mock-hero {
  height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  margin-bottom: 10px;
}
.mock-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
}
.mock-row div {
  height: 30px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.work-info { padding: 20px 24px; }
.work-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.work-info h4 { margin-bottom: 8px; font-size: 1rem; }
.work-info p { font-size: 0.86rem; }

.work-cta { text-align: center; }
.work-cta p { font-size: 1rem; margin-bottom: 16px; color: var(--text); font-weight: 500; }

/* ============================================
   PROCESS
   ============================================ */
.process { background: var(--bg); }

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.step:hover { border-color: var(--blue); box-shadow: var(--shadow); }

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.3;
  margin-bottom: 12px;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.86rem; }

.step-arrow {
  font-size: 1.5rem;
  color: var(--blue);
  opacity: 0.4;
  padding-top: 40px;
  flex-shrink: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: #fff; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 { margin-bottom: 12px; }
.contact-left > p { margin-bottom: 24px; font-size: 1rem; }

.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.15s;
}
.contact-item:hover { color: var(--blue); }
.ci-icon { font-size: 1.2rem; }

/* Contact form */
.contact-form {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
}
.contact-form h3 { margin-bottom: 24px; font-size: 1.15rem; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #0f172a; color: #fff; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); max-width: 240px; }

.footer-links h5 {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 24px 80px;
    text-align: center;
  }
  .hero-sub { margin: 0 auto 32px; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .tag1, .tag2, .tag3 { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }

  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-right { grid-template-columns: 1fr; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .process-steps { flex-direction: column; }
  .step-arrow { display: none; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
}

/* ============================================
   ANIMATIONS (scroll reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
