:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-dark: #1748b3;
  --accent-soft: #dbeafe;
  --border: #dbe7ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #f9fbff 0%, #eef5ff 100%);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  min-height: 100vh;
  padding: 1.25rem 1.5rem 4rem;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 28%), linear-gradient(120deg, rgba(37, 99, 235, 0.08), transparent 60%);
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.hero-content {
  max-width: 1240px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #0b1f3a;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.6rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-dark);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-metrics div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem;
}

.hero-metrics strong {
  display: block;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.hero-points li {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-points li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.hero-card,
.card,
.expert-card,
.edu-card,
.project-card,
.thought-card,
.contact-box,
.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.hero-card {
  padding: 1.5rem;
}

.hero-photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.photo-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--accent-soft), #ffffff);
  margin-bottom: 1rem;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card h2 {
  margin-bottom: 0.6rem;
  color: #0b1f3a;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section.alt {
  background: rgba(37, 99, 235, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  color: #10213d;
}

.about-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.expertise-grid,
.education-grid,
.thought-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.expert-card,
.edu-card,
.project-card,
.thought-card,
.timeline-item {
  padding: 1.2rem;
}

.card h3,
.expert-card h3,
.edu-card h3,
.project-card h3,
.thought-card h3,
.timeline-item h3 {
  margin-bottom: 0.5rem;
  color: #10213d;
}

.card p,
.expert-card p,
.edu-card p,
.project-card p,
.thought-card p,
.timeline-item p,
.contact-box p {
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.chip {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.contact-box {
  padding: 2rem;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-links a {
  color: var(--accent-dark);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

footer {
  text-align: center;
  padding: 1.3rem 1rem 2rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .hero-content,
  .about-grid,
  .projects-grid,
  .expertise-grid,
  .education-grid,
  .thought-grid,
  .chips {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .nav {
    position: relative;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 3.5rem;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 200px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-inline: 1rem;
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .hero-card,
  .contact-box,
  .card,
  .expert-card,
  .edu-card,
  .project-card,
  .thought-card,
  .timeline-item {
    border-radius: 16px;
  }
}
