:root {
  --purple: #6344d4;
  --purple-dark: #5236b8;
  --purple-light: #f3efff;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --footer: #111827;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Poppins", "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.serif { font-family: "Poppins", sans-serif; }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid #eef0f4;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text); text-decoration: none; }
.main-nav { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; position: relative; padding-bottom: .35rem; }
.main-nav a.active, .main-nav a:hover { color: var(--purple); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--purple); border-radius: 2px; }
.btn-purple {
  background: var(--purple); color: #fff; border: none; padding: .65rem 1.2rem; border-radius: 999px;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem;
}
.btn-purple:hover { background: var(--purple-dark); color: #fff; }
.btn-outline-purple {
  border: 2px solid var(--purple); color: var(--purple); background: transparent; padding: .62rem 1.15rem;
  border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
}
.btn-outline-purple:hover { background: var(--purple); color: #fff; }

.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-size: 2rem; margin: 0 0 .5rem; }
.section-title p { color: var(--muted); margin: 0; }

#hero { padding-top: 3rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero-kicker { color: var(--muted); margin-bottom: .35rem; }
.hero-grid h1 { font-size: 3rem; line-height: 1.1; margin: 0 0 .5rem; font-weight: 800; }
.hero-grid h1 span { color: var(--purple); }
.hero-role { color: var(--purple); font-size: .85rem; letter-spacing: 2px; font-weight: 700; margin-bottom: 1rem; }
.hero-grid p { color: var(--muted); line-height: 1.7; max-width: 520px; }
.hero-social { display: flex; gap: .6rem; margin: 1.25rem 0; }
.hero-social a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--purple-light); color: var(--purple);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-photo {
  width: 100%; max-width: 420px; margin-left: auto; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; border: 8px solid var(--purple-light); box-shadow: 0 20px 50px rgba(99,68,212,.15);
}

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2rem; position: relative; z-index: 2; }
.stat-card {
  background: #fff; border-radius: 1rem; padding: 1.5rem 1rem; text-align: center;
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
}
.stat-card i { font-size: 1.75rem; margin-bottom: .5rem; display: block; }
.stat-card .num { font-size: 1.75rem; font-weight: 800; margin-bottom: .15rem; }
.stat-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.stat-card:nth-child(1) i { color: var(--purple); }
.stat-card:nth-child(2) i { color: #3b82f6; }
.stat-card:nth-child(3) i { color: #10b981; }
.stat-card:nth-child(4) i { color: #f59e0b; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.about-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.about-list li { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; color: var(--muted); }
.about-list i { color: var(--purple); }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.skill-row span { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .35rem; font-weight: 600; }
.skill-row .bar { height: 8px; background: #eceff3; border-radius: 999px; overflow: hidden; }
.skill-row .bar div { height: 100%; background: linear-gradient(90deg, var(--purple), #8b6cf0); border-radius: 999px; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 12px; left: 8%; right: 8%; height: 2px; background: #e5e7eb;
}
.timeline-item { text-align: center; position: relative; padding-top: 2rem; }
.timeline-item::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--purple);
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
}
.timeline-item .date { color: var(--purple); font-size: .82rem; font-weight: 700; margin-bottom: .35rem; }
.timeline-item h4 { margin: 0 0 .25rem; font-size: 1rem; }
.timeline-item .company { color: var(--muted); font-size: .88rem; margin-bottom: .5rem; }

.filters { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters button {
  border: 1px solid #ddd; background: #fff; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; color: var(--muted);
}
.filters button.active, .filters button:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.portfolio-item { border-radius: .85rem; overflow: hidden; aspect-ratio: 1; position: relative; background: #e5e7eb; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0; background: rgba(99,68,212,.85); color: #fff; opacity: 0; transition: .3s;
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem; text-align: center;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card {
  background: #fff; border-radius: 1rem; padding: 2rem 1.25rem; text-align: center;
  box-shadow: 0 8px 24px rgba(17,24,39,.05); border: 1px solid #f0f2f5;
}
.service-icon {
  width: 56px; height: 56px; border-radius: .85rem; background: var(--purple-light); color: var(--purple);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem;
}

.testimonial-card {
  max-width: 760px; margin: 0 auto; background: #fff; border-radius: 1rem; padding: 2rem;
  box-shadow: 0 10px 30px rgba(17,24,39,.06); text-align: center;
}
.testimonial-card i.quote { font-size: 2rem; color: var(--purple); }
.testimonial-card p { color: var(--muted); line-height: 1.8; font-size: 1.05rem; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
.contact-info-item { display: flex; gap: .85rem; margin-bottom: 1.25rem; }
.contact-info-item i { color: var(--purple); font-size: 1.25rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid #e5e7eb; border-radius: .65rem; margin-bottom: 1rem; font-family: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.site-footer { background: var(--footer); color: #9ca3af; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer .logo { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #9ca3af; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1rem; text-align: center; font-size: .85rem; }

.mobile-toggle {
  display: none; background: var(--purple); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%;
}

@media (max-width: 992px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 1.25rem; border-bottom: 1px solid #eee; }
  .main-nav.show { display: flex; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-grid, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-row, .timeline, .portfolio-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}
@media (max-width: 576px) {
  .stats-row, .portfolio-grid, .services-grid, .skills-grid { grid-template-columns: 1fr; }
  .hero-grid h1 { font-size: 2.2rem; }
}
