:root {
  --bg: #0b1120;
  --bg-soft: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: #233047;
  --accent: #60a5fa;
  --accent-dark: #3b82f6;
  --card: #101827;
  --shadow: 0 18px 50px rgba(0, 0, 0, .3);
  --radius: 22px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background .25s ease, color .25s ease;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.section {
  padding: 105px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 1001;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

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

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

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

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

.nav-links a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  transition: color .2s;
}

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

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

.nav-resume-btn {
  background: var(--accent);
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s, background .2s, color .2s;
}

.nav-resume-btn:hover {
  background: var(--accent-dark);
  color: white !important;
  transform: translateY(-2px);
}

.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: none;
  width: 42px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
}

.hero.section {
  padding-top: 26px;
  padding-bottom: 60px;
}

.hero {
  min-height: auto;
}

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

.eyebrow {
  color: var(--accent);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.3rem);
  line-height: 1.03;
  letter-spacing: -.06em;
  max-width: 760px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  margin: 25px 0 32px;
  color: var(--muted);
  max-width: 650px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

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

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 25px rgba(37, 99, 235, .22);
}

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

.btn-secondary {
  border-color: var(--line);
  background: var(--card);
}

.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: .82rem;
  flex-wrap: wrap;
}

.hero-meta span:first-child {
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.profile-card {
  width: min(390px, 90%);
  aspect-ratio: 4/5;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-soft), var(--card));
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
}

.profile-image-wrap {
  position: absolute;
  inset: 0;
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-placeholder {
  height: 100%;
  display: none;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  color: #1e3a8a;
}

.profile-placeholder span {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -.08em;
}

.profile-placeholder small {
  font-weight: 600;
}

.profile-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .78);
  color: white;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.profile-overlay span {
  font-weight: 800;
}

.profile-overlay small {
  opacity: .75;
  font-size: .78rem;
}

.floating-note {
  position: absolute;
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 12px;
  font-size: .78rem;
  color: var(--muted);
}

.floating-note strong {
  color: var(--accent);
  font-size: 1.1rem;
  margin-left: 5px;
}

.note-one {
  left: 3%;
  top: 18%;
}

.note-two {
  right: 0;
  bottom: 13%;
}

.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.stats-grid>div {
  padding: 25px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-grid>div:last-child {
  border-right: 0;
}

.stats-grid strong {
  font-size: 1.6rem;
  letter-spacing: -.04em;
}

.stats-grid span {
  color: var(--muted);
  font-size: .78rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.section-heading>p:last-child {
  color: var(--muted);
  margin-top: 14px;
  max-width: 580px;
}

.body-copy {
  color: var(--muted);
  font-size: 1.02rem;
}

.body-copy p+p {
  margin-top: 18px;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  display: inline-block;
  margin-top: 24px;
}

.center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 45px;
}

.center>p:last-child {
  margin-left: auto;
  margin-right: auto;
}

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

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 225px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .03);
  transition: transform .2s, box-shadow .2s;
}

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

.service-number {
  color: var(--accent);
  font-weight: 800;
  font-size: .76rem;
}

.service-card h3 {
  margin: 38px 0 10px;
  font-size: 1.18rem;
}

.service-card p {
  color: var(--muted);
  font-size: .9rem;
}

.work-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
}

.work-heading>p {
  max-width: 380px;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.project-large {
  grid-column: span 2;
}

.project-thumb {
  height: 280px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
  font-size: .78rem;
  font-weight: 800;
  color: white;
}

.project-large .project-thumb {
  height: 430px;
}

.thumb-a {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 55%, #93c5fd 100%);
}

.thumb-b {
  background: linear-gradient(135deg, #111827 0%, #334155 48%, #cbd5e1 100%);
}

.thumb-c {
  background: linear-gradient(135deg, #312e81 0%, #7c3aed 50%, #c4b5fd 100%);
}

.thumb-d {
  background: linear-gradient(135deg, #064e3b 0%, #059669 50%, #a7f3d0 100%);
}

.project-info {
  padding: 20px 22px 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.project-type {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 800;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-top: 4px;
}

.project-open {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.cv-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
}

.cv-box p:last-child {
  color: var(--muted);
  margin-top: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
}

.contact-links {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
}

.contact-links a span {
  color: var(--muted);
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: .82rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.form-note {
  color: var(--muted);
  font-size: .72rem;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16a34a;
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(22, 163, 74, .3);
  z-index: 900;
  transition: transform .2s ease, background .2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: #15803d;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .78rem;
}

.footer-inner a {
  color: var(--text);
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .6);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal-content h2 {
  font-size: 2.2rem;
  letter-spacing: -.04em;
}

.modal-content>p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 14px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  border: 0;
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {

  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero.section {
    padding-top: 26px;
  }

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

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

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

  .stats-grid>div:nth-child(2) {
    border-right: 0;
  }

  .stats-grid>div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

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

  .section {
    padding: 76px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-resume-btn {
    padding: 6px 12px;
    font-size: .8rem;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
  }

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

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



  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

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

  .profile-card {
    width: min(330px, 88%);
  }

  .note-one {
    left: 0;
    top: 12%;
  }

  .note-two {
    right: 0;
    bottom: 10%;
  }

  .service-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .project-large {
    grid-column: auto;
  }

  .project-large .project-thumb {
    height: 300px;
  }

  .project-thumb {
    height: 240px;
  }

  .work-heading,
  .cv-box,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-box {
    padding: 30px 24px;
  }
}