:root {
  --navy: #07142d;
  --navy-soft: #102349;
  --blue: #3f6dff;
  --blue-soft: #7ca4ff;
  --text: #1f2942;
  --muted: #69748f;
  --bg: #f3f7fd;
  --card: #ffffff;
  --border: #e7edf7;
  --shadow: 0 18px 40px rgba(11, 29, 72, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.page-wrap {
  max-width: 1366px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(231, 237, 247, 0.6);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 34px;
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 34px;
  font-weight: 700;
}

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

.topnav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  color: #dde7ff;
  font-size: 14px;
  padding-bottom: 8px;
  position: relative;
}

.topnav a.active::after,
.topnav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
  min-height: 420px;
  padding: 42px 34px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(100, 138, 255, 0.16), transparent 10%),
    radial-gradient(circle at 96% 50%, rgba(100, 138, 255, 0.08), transparent 20%),
    radial-gradient(circle at right 20%, rgba(100, 138, 255, 0.14), transparent 18%),
    linear-gradient(135deg, #08152e 0%, #0a1735 45%, #0d1d46 100%);
}

.hero-copy {
  max-width: 620px;
  padding-left: 4px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-soft);
  font-size: 20px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 62px;
  line-height: 0.98;
}

.hero h2 {
  margin: 14px 0 18px;
  color: #7fa3ff;
  font-size: 24px;
}

.lead {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.9;
  color: #d8e2ff;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-primary {
  background: linear-gradient(180deg, #4a79ff 0%, #3467fb 100%);
  border-color: transparent;
}

.btn-secondary {
  background: transparent;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-ring {
  width: 305px;
  height: 305px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5a85ff, #94b6ff);
  box-shadow: 0 18px 44px rgba(8, 25, 65, 0.34);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #ffffff 0%, #dfe8ff 100%);
  color: #143371;
  font-size: 74px;
  font-weight: 700;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.education-box.mt-3 {
  margin-top: 16px;
}

.content-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 14px 0;
}

.left-column,
.right-column {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.title-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4c7cff 0%, #3568fb 100%);
  box-shadow: 0 8px 18px rgba(63, 109, 255, 0.22);
  flex: 0 0 auto;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.contact-list {
  margin: 0;
  padding-left: 20px;
  overflow-wrap: anywhere;
}

.skill-list {
  display: grid;
  gap: 11px;
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr 105px;
  gap: 8px 12px;
  align-items: center;
}

.skill-row span {
  font-size: 13px;
  color: var(--text);
}

.skill-row i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #4b78ff, #3f6dff) left center / var(--fill, 100%) 100% no-repeat,
    #ebf1fb;
  width: 100%;
  max-width: none;
}

.education-box strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.education-box p {
  margin: 0 0 8px;
}

.education-box small {
  color: #6c89d6;
  font-weight: 700;
}

.timeline-item + .timeline-item,
.project-item + .project-item {
  margin-top: 20px;
}

.timeline-item h4,
.project-item h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.meta {
  margin: 0 0 10px;
  color: #4170e8;
  font-size: 13px;
  font-weight: 700;
}

.timeline-item ul {
  margin: 0;
  padding-left: 20px;
}

.project-media {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}

.project-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf1ff 100%);
  border: 1px solid #dfe8fb;
  color: #4270ea;
  font-size: 14px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 14px 14px 24px;
}

.stat-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 18px 16px;
  text-align: left;
}

.stat-card:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.stat-card:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef4ff;
  color: #3f6dff;
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}

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

.footer {
  padding: 16px 20px;
  text-align: center;
  background: #08142d;
  color: #fff;
}

@media (max-width: 1100px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .topnav {
    justify-content: flex-start;
    gap: 18px 22px;
  }

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

  .hero {
    text-align: center;
    padding-top: 40px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-actions,
  .socials {
    justify-content: center;
  }

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

  .hero h2 {
    font-size: 28px;
  }

  .photo-ring {
    width: 290px;
    height: 290px;
  }

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

  .stat-card,
  .stat-card:first-child,
  .stat-card:last-child {
    border-radius: 8px;
  }
}

@media (max-width: 760px) {
  .topbar,
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .content-grid,
  .stats {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    font-size: 28px;
  }

  .topnav {
    gap: 12px 16px;
  }

  .topnav a {
    font-size: 13px;
  }

  .eyebrow {
    font-size: 22px;
  }

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

  .hero h2 {
    font-size: 24px;
  }

  .lead {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .photo-ring {
    width: 240px;
    height: 240px;
  }

  .photo-placeholder {
    font-size: 64px;
  }

  .card {
    padding: 18px;
  }

  .card h3 {
    font-size: 15px;
  }

  .skill-row {
    grid-template-columns: 1fr;
  }

  .timeline-item h4,
  .project-item h4 {
    font-size: 18px;
  }

  .project-media,
  .stat-card {
    grid-template-columns: 1fr;
  }

  .project-icon,
  .stat-icon {
    margin-bottom: 8px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 14px 16px;
  }

  .hero {
    padding: 28px 16px 24px;
    gap: 18px;
  }

  .content-grid,
  .stats {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    font-size: 24px;
  }

  .eyebrow {
    font-size: 18px;
  }

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

  .hero h2 {
    font-size: 20px;
  }

  .lead,
  .card p,
  .card li,
  .stat-card span {
    font-size: 14px;
    line-height: 1.7;
  }

  .topnav {
    gap: 10px 14px;
  }

  .topnav a {
    font-size: 12px;
  }

  .photo-ring {
    width: 200px;
    height: 200px;
  }

  .photo-placeholder {
    font-size: 52px;
  }

  .socials {
    gap: 12px;
  }

  .socials a {
    width: 32px;
    height: 32px;
  }

  .card h3 {
    font-size: 20px;
  }

  .card h3 {
    font-size: 14px;
  }
}
