:root {
  --blue: #1d4ed8;
  --blue-2: #dbeafe;
  --blue-3: #eff6ff;
  --ink: #152033;
  --muted: #667085;
  --off-white: #f7f7f2;
  --surface: #ffffff;
  --olive: #68734a;
  --olive-soft: #e8ecdc;
  --line: #e3e7ec;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(26, 52, 95, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--off-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-nav {
  background: rgba(247, 247, 242, 0.9);
  border-bottom: 1px solid rgba(227, 231, 236, 0.9);
  backdrop-filter: blur(16px);
  padding: 14px 0;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 1.45rem;
}

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

.site-nav .nav-link {
  color: #3f4b5f;
  font-weight: 500;
  font-size: .94rem;
}

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

.btn {
  border-radius: 12px;
  font-weight: 600;
}

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

.btn-primary:hover {
  background: #183fae;
  border-color: #183fae;
}

.hero-section {
  min-height: 100vh;
  padding: 130px 0 85px;
  overflow: hidden;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 1rem;
  font-weight: 800;
}

.eyebrow i {
  font-size: .42rem;
  color: var(--olive);
}

.hero-title,
.section-title {
  letter-spacing: -0.055em;
  font-weight: 800;
  line-height: 1.02;
}

.hero-title {
  max-width: 820px;
}

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

.hero-copy,
.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-copy {
  max-width: 680px;
}

.hero-meta {
  color: #49566a;
  font-size: .93rem;
}

.hero-meta i {
  color: var(--olive);
  margin-right: 5px;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  border-radius: 34px;
  background: linear-gradient(145deg, var(--blue-3), var(--olive-soft));
  border: 1px solid #dfe5dd;
  display: grid;
  place-items: center;
  padding: 40px;
}

.code-window {
  width: min(100%, 430px);
  background: #111827;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .22);
  overflow: hidden;
  transform: rotate(-2deg);
}

.code-top {
  background: #202938;
  padding: 13px 16px;
  display: flex;
  gap: 7px;
}

.code-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #687386;
}

.code-body {
  padding: 29px;
  color: #c8d4eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
  line-height: 1.9;
}

.code-body p {
  margin: 0;
}

.code-body .indent {
  padding-left: 22px;
}

.code-body b {
  color: #93c5fd;
  font-weight: 600;
}

.code-body em {
  color: #d9e6b9;
  font-style: normal;
}

.floating-note {
  position: absolute;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: .8rem;
}

.floating-note i {
  color: var(--blue);
  margin-right: 5px;
}

.note-one {
  top: 70px;
  right: 20px;
}

.note-two {
  bottom: 70px;
  left: 18px;
}

.section-pad {
  padding: 105px 0;
  background-color: #e3f6f5;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-top: 12px;
  margin-bottom: 0;
}

.service-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-3);
  color: var(--blue);
  font-size: 1.25rem;
  margin-bottom: 30px;
}

.service-card h3 {
  font-size: 1.25rem;
  letter-spacing: -.025em;
  font-weight: 750;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.service-number {
  position: absolute;
  right: 24px;
  top: 26px;
  color: #cdd3db;
  font-size: .8rem;
  font-weight: 800;
}

.skills-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
  font-weight: 700;
}

.skill-chip i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--olive-soft);
  color: var(--olive);
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.project-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 14px 22px;
  border-radius: var(--radius);
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
  background: #edf2f7;
}

.project-tag {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: #556036;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.project-card h3 {
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 13px 0 8px;
  font-size: 1.3rem;
}

.project-card p {
  color: var(--muted);
  line-height: 1.65;
}

.project-link {
  color: var(--blue);
  font-weight: 700;
  font-size: .9rem;
}

.blog-section {
  background: var(--blue-3);
  border-block: 1px solid #dfe9f7;
}

.blog-card {
  background: white;
  border: 1px solid #dce6f2;
  border-radius: var(--radius);
  padding: 28px;
}

.blog-meta {
  color: var(--olive);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.blog-card h3 {
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.3rem;
  margin: 16px 0 12px;
}

.blog-card p {
  color: var(--muted);
  line-height: 1.68;
}

.blog-card a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.blog-splide .splide__slide {
  padding: 2px 8px 30px;
}

.blog-splide .splide__pagination {
  bottom: -4px;
}

.blog-splide .splide__pagination__page.is-active {
  background: var(--blue);
}

.blog-splide .splide__arrow {
  background: white;
  border: 1px solid #d4deec;
  opacity: 1;
}

.contact-panel {
  background: #17253f;
  border-radius: 30px;
  padding: 58px;
  box-shadow: 0 25px 70px rgba(17, 31, 55, .14);
}

.section-kicker.light {
  color: #b9c99a;
}

.contact-copy {
  color: #c3cce0;
  line-height: 1.75;
}

.contact-details {
  display: grid;
  gap: 10px;
  color: #d7def0;
}

.contact-details a {
  text-decoration: none;
  color: #d7def0;
}

.contact-details i {
  color: #bdd09b;
  margin-right: 8px;
}

.contact-form {
  background: white;
  border-radius: 22px;
  padding: 26px;
}

.contact-form .form-label {
  font-size: .82rem;
  font-weight: 700;
}

.contact-form .form-control {
  border-radius: 11px;
  border-color: #dce1e8;
  padding: .78rem .9rem;
}

.contact-form .form-control:focus {
  border-color: #8fb2f2;
  box-shadow: 0 0 0 .25rem rgba(29, 78, 216, .08);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.footer-links a {
  text-decoration: none;
  color: #3f4b5f;
}

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

.project-modal {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 5;
  background-color: white;
  border-radius: 50%;
  padding: .65rem;
  opacity: .9;
}

.modal-media {
  background: #edf3f9;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.modal-media .carousel {
  width: 100%;
}

.modal-media img {
  min-height: 520px;
  object-fit: cover;
}

.modal-copy {
  padding: 58px 48px;
}

.modal-copy h2 {
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 15px 0 18px;
}

.modal-copy>p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-copy h4 {
  margin-top: 28px;
  font-size: .78rem;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #17253f;
  border-radius: 50%;
  background-size: 45%;
  width: 42px;
  height: 42px;
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    padding-top: 14px;
  }

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

  .hero-visual {
    min-height: 420px;
  }

  .contact-panel {
    padding: 38px 28px;
  }

  .modal-media img {
    min-height: 420px;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding: 78px 0;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-visual {
    padding: 24px;
    min-height: 360px;
  }

  .floating-note {
    display: none;
  }

  .code-body {
    padding: 22px;
    font-size: .76rem;
  }

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

  .contact-panel {
    padding: 28px 18px;
    border-radius: 22px;
  }

  .modal-copy {
    padding: 38px 26px;
  }

  .modal-media img {
    min-height: 300px;
  }
}