:root {
  --blue-900: #0f2f6b;
  --blue-800: #163f89;
  --blue-700: #1e5bb8;
  --blue-600: #2673e6;
  --blue-100: #eaf3ff;
  --blue-050: #f5f9ff;
  --text-900: #10213a;
  --text-700: #4a5c78;
  --text-500: #70809b;
  --white: #ffffff;
  --border: #dbe7f8;
  --shadow: 0 16px 45px rgba(24, 74, 148, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-900);
  background:
    radial-gradient(circle at top left, rgba(38, 115, 230, 0.10), transparent 32%),
    radial-gradient(circle at bottom right, rgba(30, 91, 184, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

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

ion-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(219, 231, 248, 0.9);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue-900);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-700);
  font-weight: 600;
  transition: color 0.25s ease;
}

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

.hero {
  padding: 68px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.profile-card,
.skill-box,
.timeline-card,
.stat-card,
.profile-panel,
.tech-cloud,
.footer,
.section-heading,
.identity-card {
  border: 1px solid rgba(219, 231, 248, 0.95);
}

.hero-copy {
  padding: 38px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-800);
  background: var(--blue-100);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

.hero-text {
  margin: 0;
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-700);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 14px 35px rgba(20, 66, 141, 0.22);
}

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

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.stat-card ion-icon {
  color: var(--blue-700);
  font-size: 1.35rem;
  margin-top: 2px;
}

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

.stat-card span {
  color: var(--text-700);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo-frame {
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(160deg, #f4f9ff 0%, #dcecff 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

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

.photo-placeholder {
  width: 100%;
  min-height: 380px;
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--blue-800);
  font-weight: 700;
  text-align: center;
  padding: 24px;
}

.photo-placeholder ion-icon {
  font-size: 4.4rem;
}

.identity-card {
  background: var(--blue-050);
  border-radius: 22px;
  padding: 24px;
}

.identity-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.identity-card p {
  margin: 0 0 18px;
  color: var(--text-700);
  line-height: 1.7;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-700);
  line-height: 1.6;
}

.contact-list ion-icon {
  margin-top: 2px;
  color: var(--blue-700);
}

.section {
  padding: 34px 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(234, 243, 255, 0.46) 0%, rgba(255, 255, 255, 0.75) 100%);
  border-top: 1px solid rgba(219, 231, 248, 0.85);
  border-bottom: 1px solid rgba(219, 231, 248, 0.85);
}

.section-heading {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  max-width: 840px;
  color: var(--text-700);
  line-height: 1.8;
}

.profile-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-card,
.skill-box,
.timeline-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(19, 67, 140, 0.08);
}

.profile-card {
  padding: 24px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--blue-800);
  background: var(--blue-100);
  margin-bottom: 16px;
}

.card-icon ion-icon {
  font-size: 1.45rem;
}

.profile-card h3,
.skill-box h3,
.timeline-header h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.profile-card p,
.skill-box p {
  margin: 0;
  color: var(--text-700);
  line-height: 1.75;
}

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

.skill-box {
  padding: 24px;
}

.skill-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.skill-title ion-icon {
  color: var(--blue-700);
  font-size: 1.35rem;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 11px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-300, #b7d3ff), var(--blue-700));
  opacity: 0.85;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 0 0 6px rgba(38, 115, 230, 0.12);
}

.timeline-card {
  padding: 24px 24px 22px;
}

.timeline-header {
  margin-bottom: 12px;
}

.timeline-header span {
  display: inline-block;
  color: var(--blue-700);
  font-weight: 700;
}

.timeline-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-700);
  line-height: 1.8;
}

.timeline-card li + li {
  margin-top: 8px;
}

.tech-cloud {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tech-cloud span {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--blue-800);
  border: 1px solid var(--border);
  font-weight: 700;
}

.footer {
  margin: 28px auto 34px;
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.footer p {
  margin: 0;
  color: var(--text-700);
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .hero-grid,
  .profile-panel,
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .photo-frame,
  .photo-placeholder {
    min-height: 320px;
  }
}

@media (max-width: 780px) {
  .topbar-content,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 14px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy,
  .hero-card,
  .section-heading,
  .profile-panel,
  .timeline-card,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline-dot {
    left: -22px;
  }

  .container {
    width: min(var(--container), calc(100% - 20px));
  }
}

@media (max-width: 560px) {
  .nav {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .timeline-card ul {
    padding-left: 16px;
  }
}
