:root {
  --navy: #071a33;
  --blue: #0d63c7;
  --blue-light: #eaf4ff;
  --gold: #f4b942;
  --text: #172033;
  --muted: #657084;
  --line: #dce4ee;
  --white: #ffffff;
  --bg: #f6f9fc;
  --shadow: 0 20px 50px rgba(7, 26, 51, 0.10);
  --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(--white);
  line-height: 1.65;
}

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

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

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--navy);
  font-size: 22px;
  font-weight: 800;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand small {
  display: block;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  transition: color 0.2s ease;
}

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

/* HERO */
.hero {
  padding: 100px 0 80px;
  background:
    radial-gradient(circle at 85% 25%, rgba(13, 99, 199, 0.13), transparent 30%),
    linear-gradient(135deg, #f5f9ff 0%, #ffffff 55%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 25px;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(13, 99, 199, 0.24);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
}

.hero-card {
  padding: 35px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-number {
  color: var(--blue);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

.hero-card p {
  margin-top: 12px;
  color: var(--muted);
}

.hero-card strong {
  margin-top: 5px;
  color: var(--navy);
  font-size: 23px;
}

.hero-card small {
  margin-top: 10px;
  color: var(--muted);
}

/* PROJECTS */
.projects-section {
  padding: 100px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: end;
  margin-bottom: 55px;
}

.section-heading h2,
.skills-section h2,
.future-box h2,
.contact-box h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading > p {
  color: var(--muted);
}

/* PROJECT CARD */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 15px 45px rgba(7, 26, 51, 0.07);
}

.project-image {
  position: relative;
  min-height: 570px;
  background: #eaf0f6;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project:hover .project-image img {
  transform: scale(1.025);
}

.project-number {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.project-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tags,
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span,
.tech-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-light);
  font-size: 11px;
  font-weight: 800;
}

.project-kicker {
  margin-top: 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.project h3 {
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.project-intro {
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.case-grid h4 {
  color: var(--navy);
  margin-bottom: 7px;
  font-size: 14px;
}

.case-grid p {
  color: var(--muted);
  font-size: 13px;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}

.specs div {
  padding: 15px;
  border-radius: 12px;
  background: var(--bg);
}

.specs strong {
  display: block;
  color: var(--blue);
  font-size: 11px;
}

.specs span {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.tech-list {
  margin-top: 28px;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

/* SKILLS */
.skills-section {
  padding: 90px 0;
  background: var(--navy);
}

.skills-section .eyebrow {
  color: #7db7f3;
}

.skills-section h2 {
  color: var(--white);
  margin-bottom: 40px;
}

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

.skill-card {
  min-height: 210px;
  padding: 25px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
}

.skill-card span {
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
}

.skill-card h3 {
  margin: 30px 0 10px;
  color: var(--white);
  font-size: 20px;
}

.skill-card p {
  color: #b9c8db;
  font-size: 13px;
}

/* FUTURE + CONTACT */
.future-section,
.contact-section {
  padding: 90px 0;
}

.future-box,
.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.future-box p:not(.eyebrow),
.contact-box p:not(.eyebrow) {
  max-width: 700px;
  margin-top: 15px;
  color: var(--muted);
}

.future-icon {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-size: 55px;
  font-weight: 200;
}

.contact-section {
  padding-top: 0;
}

.contact-box {
  background: linear-gradient(135deg, #eaf4ff, #f7fbff);
}

.contact-actions {
  margin-top: 0;
}

/* FOOTER */
footer {
  padding: 35px 0;
  color: #aebed2;
  background: #041226;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  font-size: 12px;
}

.footer-wrap strong {
  color: var(--white);
  letter-spacing: 0.08em;
}

.footer-wrap p {
  margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid,
  .section-heading,
  .project {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }

  .project-image {
    min-height: 420px;
  }

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

  .contact-box,
  .future-box {
    align-items: flex-start;
  }
}

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

  .nav-wrap {
    min-height: 68px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 70px 0 60px;
  }

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

  .hero-text {
    font-size: 17px;
  }

  .projects-section,
  .skills-section,
  .future-section {
    padding: 65px 0;
  }

  .project-image {
    min-height: 300px;
  }

  .project-content {
    padding: 28px 22px;
  }

  .case-grid,
  .specs,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .future-box,
  .contact-box {
    padding: 30px 24px;
    flex-direction: column;
  }

  .future-icon {
    width: 65px;
    height: 65px;
    font-size: 38px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
