* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #182235;
  --text: #e5e7eb;
  --muted: #a5b4fc;
  --soft: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  --max: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #0b1120 0%, #10192d 100%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 32, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.08em;
}

.nav-list {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-list a {
  color: var(--text);
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.lead {
  color: var(--soft);
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.6rem 0 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #03111f;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quick-info div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.quick-label {
  display: block;
  font-size: 0.78rem;
  color: var(--soft);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card,
.card,
.timeline-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 2rem;
}

.avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03111f;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.profile-card h2 {
  margin-bottom: 1rem;
}

.profile-card ul {
  padding-left: 1.2rem;
  color: var(--soft);
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.card {
  padding: 1.5rem;
}

.cards,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.timeline-date,
.meta {
  display: inline-block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.styled-list,
.pub-list {
  padding-left: 1.2rem;
}

.styled-list li,
.pub-list li {
  margin-bottom: 0.7rem;
}

.compact li {
  margin-bottom: 0.35rem;
}

.project-card .tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.13);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-box p + p {
  margin-top: 0.75rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .skills-grid,
  .quick-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-list {
    position: absolute;
    right: 4%;
    top: 72px;
    width: min(260px, 92vw);
    flex-direction: column;
    padding: 1rem;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: none;
  }

  .nav-list.show {
    display: flex;
  }

  .hero {
    padding-top: 4.3rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


.profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 1rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-card {
  padding: 2rem;
  text-align: center;
}

.profile-img {
  margin: 0 auto 1rem;
}