:root {
  --navy: #071321;
  --navy-2: #0b1c31;
  --blue: #176bff;
  --blue-dark: #125be0;
  --text: #141c2b;
  --muted: #5c6a80;
  --line: #d9e1ed;
  --light: #f4f7fb;
  --white: #ffffff;
  --container: 1120px;
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

/* ==================== NAVBAR ==================== */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: white;
}

.navbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 14px;
}

.nav-links > a:not(.nav-cta) {
  color: #d5dce7;
  transition: color 0.2s ease;
}

.nav-links > a:not(.nav-cta):hover {
  color: white;
}

.nav-cta {
  background: var(--blue);
  padding: 13px 29px;
  border-radius: 10px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: white;
}

/* ==================== HERO ==================== */

.hero {
  min-height: 730px;
  padding: 160px 0 0;
  color: white;
  background:
    radial-gradient(
      circle at 80% 55%,
      rgba(23, 107, 255, 0.08),
      transparent 27%
    ),
    var(--navy);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  padding: 30px 0 140px;
}

.eyebrow,
.blue-label,
.section-kicker {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 70px);
  line-height: 1;
  margin: 30px 0 18px;
  letter-spacing: -2px;
}

.hero h2 {
  color: var(--blue);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-description {
  max-width: 550px;
  color: #c2ccda;
  font-size: 16px;
}

.button-row {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 29px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-outline {
  color: white;
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: rgba(23, 107, 255, 0.1);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-self: end;
}

.profile-frame {
  width: min(430px, 100%);
  height: 555px;
  position: relative;
  overflow: hidden;
  border: 2px solid #17416f;
  border-radius: 34px 34px 0 0;
  padding: 22px;
  background: #081a2e;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.orbit {
  position: absolute;
  border: 2px solid var(--blue);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 430px;
  height: 430px;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
}

.orbit-two {
  width: 470px;
  height: 470px;
  left: 50%;
  top: 42px;
  transform: translateX(-50%);
  border-color: #17416f;
}

.code-badge {
  position: absolute;
  right: 22px;
  top: 235px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid #17416f;
  border-radius: 13px;
  background: #0c2038;
  color: #cbd9f1;
  font-size: 20px;
  font-weight: 800;
}

.stats-card {
  position: relative;
  z-index: 2;
  margin-top: -4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  color: var(--text);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  width: 1px;
  height: 55px;
  background: var(--line);
  position: absolute;
  left: 0;
}

.stat strong {
  font-size: 31px;
  line-height: 1;
}

.stat span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ==================== ABOUT ==================== */

.light-section,
.portfolio-section {
  padding: 55px 0 75px;
  background: var(--light);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}

.section-kicker {
  color: var(--text);
  font-size: 25px;
}

.section-heading p:last-child,
.portfolio-intro {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.section-number {
  color: var(--blue);
  background: #e9f1ff;
  border-radius: 12px;
  padding: 14px 30px;
  font-size: 12px;
  font-weight: 800;
}

.about-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
}

.about-panel,
.skills-panel {
  min-height: 280px;
  padding: 37px 32px;
}

.about-panel h2 {
  margin: 14px 0 18px;
  font-size: 31px;
  line-height: 1.28;
  letter-spacing: -0.7px;
}

.about-panel h2 span {
  color: var(--blue);
}

.muted {
  color: var(--muted);
  font-size: 14px;
  max-width: 540px;
}

.tag-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag-list span {
  padding: 9px 15px;
  border-radius: 9px;
  background: #f1f4f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.skills-panel .blue-label {
  margin-bottom: 26px;
}

.skill {
  margin-bottom: 11px;
}

.skill > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.skill > div:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.services {
  margin-top: 32px;
}

.services > h2,
.portfolio-title {
  font-size: 31px;
  line-height: 1.15;
  margin: 8px 0 22px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.service-card {
  min-height: 171px;
  padding: 18px 26px;
  border-radius: 20px;
  background: #f0f3f8;
}

.service-number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 7px;
  border-radius: 50%;
  color: var(--blue);
  background: #e5efff;
  font-weight: 800;
  font-size: 14px;
}

.service-card h3 {
  font-size: 15px;
  margin-bottom: 11px;
}

.service-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.process {
  margin-top: 35px;
  min-height: 72px;
  padding: 17px 26px;
  display: flex;
  align-items: center;
  gap: 35px;
  color: white;
  border-radius: 18px;
  background: var(--navy);
}

.process .blue-label {
  flex: 0 0 auto;
}

.process-steps {
  flex: 1;
  display: flex;
  align-items: center;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 70px;
  color: #d0d9e6;
  font-size: 12px;
  font-weight: 700;
}

.process-step b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #153a65;
  font-size: 11px;
}

.process-step.active b {
  background: var(--blue);
}

.process-line {
  flex: 1;
  height: 1px;
  background: #23476f;
  margin-top: -17px;
}

/* ==================== PORTFOLIO ==================== */

.portfolio-section {
  padding-top: 45px;
}

.portfolio-title {
  margin: 5px 0 5px;
}

.filters {
  display: flex;
  gap: 10px;
  margin: 14px 0 42px;
  flex-wrap: wrap;
}

.filter {
  border: 2px solid var(--blue);
  border-radius: 11px;
  padding: 9px 22px;
  color: var(--muted);
  background: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.filter:hover,
.filter.active {
  color: white;
  background: var(--blue);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  background: white;
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  /* aspect-ratio: 2.82 / 1; */
  aspect-ratio: 2.82/1.5;
  object-fit: cover;
}

.project-info {
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.project-info h3 {
  font-size: 14px;
  margin-bottom: 2px;
}

.project-info span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.project-arrow {
  border: 0;
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 9px;
  color: #125be0;
  background: #f1f4f8;
}
.project-card:hover .project-arrow {
  background-color: #125be0;
  color: #f1f4f8;
  cursor: pointer;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin-top: 56px;
}

.testimonials {
  padding: 25px 27px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 17px;
}

blockquote {
  position: relative;
  padding-left: 20px;
}

.quote-mark {
  position: absolute;
  left: 0;
  top: -6px;
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
}

blockquote p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  min-height: 54px;
}

blockquote cite {
  display: block;
  margin-top: 13px;
  color: var(--text);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.contact-card {
  min-height: 168px;
  padding: 27px 30px;
  color: white;
  border-radius: 20px;
  background: var(--navy);
  position: relative;
}

.contact-card h2 {
  font-size: 25px;
  margin: 8px 0 10px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #c0cbd8;
  font-size: 12px;
}

.contact-card .btn {
  position: absolute;
  right: 30px;
  bottom: 27px;
  min-height: 48px;
  padding-inline: 15px;
}

/* ==================== FOOTER ==================== */

.footer {
  padding: 25px 0;
  color: var(--muted);
  background: white;
  font-size: 12px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
}

.footer a {
  color: var(--blue);
  font-weight: 700;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #23476f;
  border-radius: 9px;
  color: #c0cbd8;
  background: #0c2038;
  transition: all 0.2s ease;
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-links a:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .nav-links {
    gap: 20px;
  }

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

  .hero {
    padding-top: 135px;
  }

  .hero-copy {
    padding-bottom: 30px;
  }

  .hero-visual {
    align-self: center;
  }

  .profile-frame {
    height: 470px;
  }

  .stats-card {
    margin-top: 30px;
  }

  .hero {
    padding-bottom: 30px;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .navbar {
    min-height: 85px;
  }

  .brand {
    font-size: 23px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--navy);
    border-top: 1px solid #19324f;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a {
    padding: 12px 4px;
  }

  .nav-links .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-frame {
    height: 430px;
  }

  .stats-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat + .stat::before {
    display: none;
  }

  .stat:nth-child(odd)::after {
    content: "";
    width: 1px;
    height: 55px;
    background: var(--line);
    position: absolute;
    right: 0;
  }

  .stat:nth-child(-n + 2)::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    width: auto;
    background: var(--line);
  }

  .section-heading {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .section-kicker {
    font-size: 21px;
  }

  .section-number {
    align-self: flex-start;
  }

  .about-skills-grid,
  .service-grid,
  .project-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .about-panel h2,
  .services > h2,
  .portfolio-title {
    font-size: 27px;
  }

  .process {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .process-steps {
    width: 100%;
  }

  .process-step {
    min-width: 42px;
    font-size: 10px;
  }

  .process-line {
    margin-top: -19px;
  }

  .filters {
    margin-bottom: 25px;
  }

  .filter {
    padding: 8px 13px;
  }

  .contact-card {
    max-height: 270px;
  }

  .contact-card .btn {
    position: static;
    margin-top: 15px;
  }

  .footer .container {
    gap: 15px;
    flex-direction: column;
  }
}
