:root {
  --bg: #0b1020;
  --bg-soft: #0f172a;
  --card: rgba(15, 23, 42, 0.82);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5eefb;
  --muted: #9fb0cc;
  --accent: #60a5fa;
  --accent2: #34d399;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(52, 211, 153, 0.14), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #0b1020 42%, #0d1324 100%);
}

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

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

.container {
  width: min(calc(100% - 2rem), var(--maxw));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 29, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

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

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.section {
  padding: 5rem 0 0;
}

.hero {
  padding-top: 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 1.25rem;
}

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

.hero-copy,
.hero-side,
.panel,
.contact-card {
  padding: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(96, 165, 250, 0.08);
  color: #cfe5ff;
  font-size: 0.92rem;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 10ch;
}

h1 span {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 45%, #6ee7b7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text,
.section-heading p,
.panel p,
.timeline-content ul,
.project-card p,
.contact-card p,
.hero-side p,
.meta,
.card li {
  color: var(--muted);
}

.hero-text {
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.hero-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.profile-block {
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.profile-block h2 {
  margin-bottom: 0.25rem;
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  font-size: 0.96rem;
}

.contact-list a {
  color: var(--muted);
}

.contact-list a:hover {
  color: var(--text);
}

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

.stat-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading h2,
.education-grid h2,
.contact-card h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
}

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

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

.panel h3,
.timeline-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
}

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

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

.timeline-content {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 3.25rem;
}

.timeline-dot {
  position: absolute;
  top: 1.7rem;
  left: 1.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.12);
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: 1.72rem;
  top: 2.55rem;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.6), rgba(96, 165, 250, 0));
}

.timeline-item:last-child .timeline-content::before {
  display: none;
}

.project-tag {
  color: #b9cdf0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tags span {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #d9e6fb;
  font-size: 0.92rem;
}

.contact-section {
  padding-bottom: 1rem;
}

.site-footer {
  padding: 3rem 0 4rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-grid,
  .projects-grid,
  .skills-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-side,
  .panel,
  .contact-card,
  .timeline-content {
    padding: 1.1rem;
  }

  .timeline-content {
    padding-left: 2.8rem;
  }

  .timeline-dot {
    left: 1.05rem;
  }

  .timeline-content::before {
    left: 1.42rem;
  }
}
