:root {
  --navy: #061a55;
  --blue: #0a4acb;
  --sky: #4f86ff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #dbe3f3;
  --bg: #f6f8fc;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(6, 26, 85, 0.14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(79,134,255,.16), transparent 35%), var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,227,243,.9);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  color: var(--navy);
}

.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 12px 24px rgba(10,74,203,.25);
}

.logo small {
  display: block;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
  font-size: 12px;
  margin-top: -4px;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #24324d;
  transition: .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--navy);
  color: white;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
}

.hero {
  padding: 84px 0 62px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  background: rgba(10,74,203,.08);
  border: 1px solid rgba(10,74,203,.14);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

h1, h2, h3 { line-height: 1.12; margin: 0; color: var(--navy); }
h1 {
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: -3px;
  text-transform: uppercase;
}

.gradient-text {
  display: block;
  background: linear-gradient(135deg, var(--navy) 10%, var(--blue) 70%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 19px;
  color: #344054;
  max-width: 660px;
  margin: 22px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 18px 32px rgba(10,74,203,.24);
}
.btn-outline {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}

.hero-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 210px;
  height: 210px;
  background: linear-gradient(135deg, rgba(6,26,85,.95), rgba(10,74,203,.78));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.profile-photo {
  min-height: 360px;
  border-radius: 26px;
  border: 1px solid rgba(219,227,243,.95);
  background: linear-gradient(160deg, #fff, #eef4ff);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.avatar-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 60px;
  font-weight: 950;
  background: white;
  border: 8px solid #eef4ff;
  box-shadow: inset 0 0 0 3px var(--navy), 0 24px 50px rgba(6,26,85,.14);
}

.avatar-photo {
  overflow: hidden;
  padding: 0;
  background: white;
  transform: translateY(-46px);
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.floating-tag {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(219,227,243,.95);
  box-shadow: 0 16px 32px rgba(17,24,39,.08);
}

.floating-tag strong { color: var(--navy); display: block; font-size: 18px; }
.floating-tag span { color: var(--muted); }

.quick-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
}
.stat b { color: var(--navy); font-size: 24px; display: block; }
.stat span { color: var(--muted); font-weight: 700; font-size: 13px; }

.section {
  padding: 74px 0;
}
.section.alt { background: white; }
.section-title {
  text-align: center;
  margin-bottom: 38px;
}
.section-title span { color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: 2px; }
.section-title h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 8px; }
.section-title p { color: var(--muted); max-width: 720px; margin: 14px auto 0; }

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

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 34px rgba(6,26,85,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 23px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  margin-bottom: 18px;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 36px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 34px rgba(6,26,85,.07);
}
.panel h2 { font-size: 34px; margin-bottom: 14px; }
.panel p { color: #3c465d; }

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-list li {
  padding: 10px 13px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--navy);
  font-weight: 800;
  border: 1px solid #d9e6ff;
}

.timeline {
  display: grid;
  gap: 16px;
}
.timeline-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  position: relative;
}
.timeline-item h3 { font-size: 21px; }
.timeline-item small { color: var(--blue); font-weight: 900; display: block; margin: 6px 0; }
.timeline-item p, .timeline-item li { color: #475467; }
.timeline-item ul { list-style: disc; padding-left: 20px; }

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}
.filter-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.portfolio-card {
  min-height: 230px;
  position: relative;
  overflow: hidden;
}
.portfolio-card::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(10,74,203,.1);
}
.portfolio-card .tag {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(10,74,203,.08);
  font-weight: 900;
  font-size: 13px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
}
.contact-list { display: grid; gap: 13px; }
.contact-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.contact-item b { color: var(--navy); display: block; }
.contact-item span { color: var(--muted); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label { display: block; font-weight: 900; color: var(--navy); margin: 0 0 7px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  background: #fbfcff;
}
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10,74,203,.1); }
textarea { min-height: 140px; resize: vertical; }
.form-group { margin-bottom: 15px; }
.form-message { margin-top: 12px; font-weight: 800; color: var(--navy); }

.cv-preview {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}
.cv-preview img { width: 100%; }

.footer {
  background: #03103b;
  color: white;
  padding: 38px 0;
  margin-top: 60px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer a { color: #cfe0ff; font-weight: 800; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 82px;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 54px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1120px); }
  .card-grid, .quick-stats, .form-row { grid-template-columns: 1fr; }
  .profile-photo { min-height: 300px; }
  .avatar-ring { width: 170px; height: 170px; font-size: 46px; }
  .avatar-photo { transform: translateY(-34px); }
  h1 { letter-spacing: -1.5px; }
  .section { padding: 52px 0; }
}


@media (max-width: 620px) {
  .hero-card {
    padding: 16px;
  }
  .profile-photo {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 22px 0;
    gap: 18px;
  }
  .avatar-photo {
    transform: none;
    margin-top: 0;
  }
  .floating-tag {
    position: static;
    width: calc(100% - 36px);
    margin: 0 auto;
    box-sizing: border-box;
  }
}
