:root {
  --bg: #07111f;
  --bg-soft: #0d1b2a;
  --panel: rgba(15, 23, 42, 0.8);
  --panel-strong: rgba(13, 17, 35, 0.95);
  --card: rgba(15, 23, 42, 0.7);
  --border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #a7b5c7;
  --primary: #7c3aed;
  --primary-2: #22d3ee;
  --accent: #f59e0b;
  --shadow: 0 28px 60px rgba(15, 23, 42, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.25), transparent 32%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.15), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 85%);
  pointer-events: none;
}

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

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

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

.background-blur {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

.blur-one {
  top: 3rem;
  left: 5%;
  background: rgba(124, 58, 237, 0.7);
}

.blur-two {
  right: 7%;
  bottom: 20%;
  background: rgba(34, 211, 238, 0.55);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
  z-index: 2;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(124, 58, 237, 0.08);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
  padding: 0.75rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 5.5rem 0 4rem;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 999px;
  color: #cffafe;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.8);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--primary-2);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: -0.06em;
}

.hero h1 span {
  background: linear-gradient(135deg, #c4b5fd, #67e8f9 60%, #fef3c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.8rem;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  box-shadow: 0 18px 30px rgba(124, 58, 237, 0.35);
}

.button.secondary {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
}

.contact-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(12, 18, 30, 0.75));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.3rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.8rem;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.14);
  color: #ddd6fe;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mini-tag.alt {
  background: rgba(34, 211, 238, 0.1);
  color: #b9f4ff;
}

.profile-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(34,211,238,0.9));
  padding: 8px;
  box-shadow: 0 18px 30px rgba(124, 58, 237, 0.2);
}

.profile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 1), rgba(8, 13, 21, 1));
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 800;
  color: var(--text);
}

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

.stat-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

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

.section {
  padding: 2rem 0 1rem;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.25rem;
}

.about-card,
.project-card,
.timeline-content,
.skill-group,
.info-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.about-card {
  padding: 1.5rem;
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.highlight-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.highlight-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.highlight-card li {
  color: var(--muted);
  position: relative;
  padding-left: 1.1rem;
}

.highlight-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.info-card {
  padding: 1.3rem 1.4rem;
}

.info-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--primary-2);
  font-weight: 700;
}

.info-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13px;
  width: 2px;
  background: linear-gradient(180deg, rgba(124,58,237,0.9), rgba(34,211,238,0.9));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 5px solid rgba(7, 17, 31, 1);
  position: relative;
  z-index: 1;
  margin-top: 0.6rem;
}

.timeline-content {
  padding: 1.4rem 1.4rem 1.1rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.timeline-header h3,
.project-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.company {
  margin: 0.3rem 0 0;
  font-weight: 600;
  color: var(--primary-2);
}

.time-range {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.timeline-content ul,
.mini-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.timeline-content li,
.mini-list li {
  margin-bottom: 0.5rem;
}

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

.project-card {
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.tag {
  background: rgba(34, 211, 238, 0.12);
  color: #b9f4ff;
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.project-date {
  color: var(--muted);
  font-size: 0.75rem;
}

.project-card p {
  color: var(--muted);
  margin: 0.8rem 0 1rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.project-links a {
  color: #dbeafe;
  font-weight: 600;
}

.feature-card {
  background: linear-gradient(180deg, rgba(21, 25, 36, 0.92), rgba(15, 23, 42, 0.78));
}

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

.skill-group {
  padding: 1.35rem 1.4rem;
}

.skill-group h3 {
  margin: 0 0 1rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-pills span {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: #dfe7ff;
  font-size: 0.9rem;
}

.site-footer {
  padding: 4rem 0 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 2.5rem;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--muted);
  font-weight: 600;
}

.copyright {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
}

@media (max-width: 880px) {
  .hero,
  .about-grid,
  .project-grid,
  .skills-wrap,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: 72px;
    padding: 0.8rem 0;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    width: 100%;
    order: 3;
    flex-basis: 100%;
  }

  .nav.is-open .nav-menu {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem;
    border-radius: 18px;
    width: 100%;
  }

  .nav-links a {
    text-align: center;
    padding: 0.8rem 0.9rem;
  }

  .timeline-header {
    flex-direction: column;
  }

  .time-range {
    white-space: normal;
  }

  .project-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
