:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-strong: #ffffff;
  --text: #111827;
  --muted: #475569;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --accent: #06b6d4;
  --accent-soft: #dbf4ff;
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

[data-theme='dark'] {
  --bg: #0f172a;
  --surface: #111827;
  --surface-strong: rgba(15, 23, 42, 0.92);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary-soft: rgba(37, 99, 235, 0.15);
  --border: rgba(148, 163, 184, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%), var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.progress-bar {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1001;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border);
}

[data-theme='dark'] .site-header {
  background: rgba(15, 23, 42, 0.88);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a,
.footer-links a,
.contact-meta a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.footer-links a:hover,
.contact-meta a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

button.theme-toggle {
  border: none;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.03;
  margin: 1rem 0 1.25rem;
}

.hero p,
.section-header p,
.service-card p,
.portfolio-card__info p,
.about-copy p,
.testimonial-card p {
  max-width: 58ch;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 1rem 1.8rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.18);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.trusted-by {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 0.75rem;
}

.brand-list span {
  background: var(--surface-strong);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.72;
}

.shape--one {
  width: 180px;
  height: 180px;
  top: -10%;
  right: 10%;
  background: rgba(37, 99, 235, 0.22);
}

.shape--two {
  width: 220px;
  height: 220px;
  bottom: 5%;
  left: 5%;
  background: rgba(6, 182, 212, 0.16);
}

.hero-card {
  position: relative;
  z-index: 1;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.hero-card__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-size: 0.8rem;
}

.section {
  padding: 5rem 0;
}

.section--soft {
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.service-grid,
.portfolio-grid,
.stats-grid,
.skills-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.service-card {
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.18);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
  color: var(--primary);
  font-size: 1.4rem;
}

.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-card {
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
}

.portfolio-card__info {
  padding: 1.5rem;
}

.portfolio-card__info span {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.process-step {
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  position: relative;
  display: grid;
  place-items: center;
}

.about-image__frame {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.12));
}

.about-image__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image__accent {
  position: absolute;
  width: 180px;
  height: 180px;
  bottom: -10%;
  right: -10%;
  border-radius: 40px;
  background: rgba(37, 99, 235, 0.18);
  filter: blur(26px);
  z-index: -1;
}

.about-copy h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 1rem;
}

.about-copy p {
  margin-top: 1.5rem;
  max-width: 50rem;
}

.about-highlights {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.highlight-card {
  padding: 1.35rem 1.5rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.highlight-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin-top: 2rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--text);
}

.skills-grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.skill-card {
  padding: 1.35rem 1rem;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
  color: var(--text);
}

.testimonial-slider {
  display: grid;
  gap: 1.25rem;
}

.testimonial-card {
  border-radius: 32px;
  padding: 2rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0.4;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.testimonial-meta strong {
  color: var(--text);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.18);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.36s ease, padding 0.36s ease;
  background: transparent;
  color: var(--muted);
}

.faq-item.active + .faq-panel {
  max-height: 180px;
  padding: 1rem 1.5rem 1.5rem;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-copy {
  display: grid;
  gap: 1.5rem;
}

.contact-meta {
  display: grid;
  gap: 1rem;
}

.contact-meta div {
  display: grid;
  gap: 0.25rem;
}

.contact-meta strong {
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface-strong);
  padding: 2rem;
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}

.contact-form span {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1rem;
  background: transparent;
  color: var(--text);
}

.site-footer {
  padding: 2rem 0 3rem;
  background: var(--surface-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

.top-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .portfolio-grid,
  .skills-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .header-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    justify-content: center;
  }
  .brand-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-header h2,
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}
