:root {
  --ink: #0f172a;
  --muted: #475569;
  --soft: #f8fbff;
  --line: rgba(15, 23, 42, 0.08);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--soft);
  color: var(--ink);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* NAV */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
}

.nav-brand img {
  width: 42px;
  height: 42px;
}

.nav-brand strong {
  font-size: 18px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eaf3ff;
  color: var(--blue);
}

/* HERO */

.portfolio-hero {
  padding: 95px 0 80px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 50%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.badge,
.kicker {
  display: inline-flex;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-copy h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 16px 0 22px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 680px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.centered {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  font-family: inherit;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.25);
}

.btn.ghost {
  color: var(--blue);
  background: #eef5ff;
}

/* HERO CARD */

.hero-card {
  padding: 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-line {
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  margin-bottom: 22px;
}

.feature-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.feature-row span {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  background: #eef5ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

.feature-row strong {
  display: block;
  font-size: 17px;
}

.feature-row p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* SECTIONS */

.section {
  padding: 84px 0;
}

.section-heading {
  text-align: center;
  max-width: 800px;
}

.section-heading h2,
.testimonial-card h2,
.final-cta h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 12px 0;
}

.section-heading p,
.project-card p,
.project-card li,
.final-cta p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.project-card {
  padding: 30px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
}

.project-tag {
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 24px;
  margin: 0 0 12px;
}

.project-card ul {
  margin: 18px 0 26px 20px;
  padding: 0;
  flex: 1;
}

.project-card.featured {
  background: linear-gradient(180deg, #0f172a, #1e3a8a);
  color: white;
}

.project-card.featured p,
.project-card.featured li {
  color: rgba(255, 255, 255, 0.82);
}

.project-card.featured .project-tag {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.testimonial-section {
  background: #ffffff;
}

.testimonial-card {
  padding: 48px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.11), transparent 30%),
    #f8fbff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

blockquote {
  margin: 0;
  padding: 28px;
  border-radius: 24px;
  background: white;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  border: 1px solid var(--line);
}

.final-cta {
  text-align: center;
  padding: 58px 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.12), transparent 30%),
    #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.final-cta p {
  max-width: 680px;
  margin: 0 auto;
}

/* FOOTER */

footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--blue);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .nav-inner,
  .footer {
    flex-direction: column;
    text-align: center;
    padding: 16px 0;
  }

  .nav-links,
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-grid,
  .project-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    text-align: center;
    padding: 70px 0 55px;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta {
    justify-content: center;
  }

  .hero-card {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 26px, 1160px);
  }

  .nav-brand strong {
    font-size: 16px;
  }

  .nav-links a {
    padding: 9px 10px;
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-card,
  .project-card,
  .testimonial-card,
  .final-cta,
  blockquote {
    border-radius: 24px;
    padding: 24px;
  }

  .section {
    padding: 60px 0;
  }
}