﻿:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --border: #e2e8f0;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --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;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.13), transparent 30%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 251, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

section {
  scroll-margin-top: 96px;
}

.hero {
  padding: 86px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #0f172a 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.hero-card {
  position: relative;
  padding: 18px;
  border-radius: 36px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.profile-card {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  border: 1px solid var(--border);
}

.profile-image-wrap {
  padding: 24px 24px 0;
}

.profile-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.profile-content {
  padding: 24px;
}

.profile-content h2 {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.profile-content p {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}

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

.stat {
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
}

.stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-block {
  padding: 58px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--muted);
  font-size: 1.02rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-soft);
}

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

.skill-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 750;
  color: #1e293b;
  transition: 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--shadow-soft);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.timeline-date {
  color: var(--primary);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.timeline-content h3 {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.timeline-content strong {
  color: var(--text);
}

.timeline-content p {
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #0ea5e9);
}

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

.project-card h3 {
  font-size: 1.12rem;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

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

.project-list-card {
  padding: 28px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 26px;
  list-style: none;
  color: var(--muted);
}

.project-list li {
  position: relative;
  padding-left: 20px;
}

.project-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.06em;
  line-height: 1.06;
  margin-bottom: 12px;
}

.contact-card p {
  color: rgba(255,255,255,0.76);
}

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

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 700;
  transition: 0.2s ease;
}

.contact-link:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.footer {
  padding: 34px 0 46px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 480px;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.24s ease;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .menu-toggle {
    display: flex;
  }
}

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

  .hero {
    padding-top: 52px;
  }

  .navbar {
    height: 68px;
  }

  .nav-links {
    top: 68px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 26px;
  }

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