@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #070a0f;
  --surface: #0d121c;
  --surface-strong: #131a28;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #3b82f6;
  --primary-soft: rgba(59, 130, 246, 0.16);
  --border: rgba(148, 163, 184, 0.18);
  --glow: rgba(59, 130, 246, 0.4);
  --mono: "JetBrains Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

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

main {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.mono {
  font-family: var(--mono);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-header {
  max-width: 820px;
  margin-bottom: 3rem;
}

.ai-projects-header {
  margin-top: 4.2rem;
  margin-bottom: 2.8rem;
}

.section-header h2 {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 8vw;
  background: rgba(7, 10, 15, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 1.4rem;
}

.nav a {
  color: var(--muted);
  position: relative;
  padding-bottom: 0.4rem;
}

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

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

.hero {
  position: relative;
  padding: 10rem 8vw 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3.5rem, 5vw, 6rem);
  line-height: 1.05;
  margin-bottom: 1.6rem;
}

.hero-subtitle {
  font-size: 1.7rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-typing {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
}

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

.chip {
  font-size: 1.1rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--muted);
  transition: all 0.3s ease;
}

.chip:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(59, 130, 246, 0.6);
  color: var(--text);
}

.chip.active {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.4rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.25);
}

.hero-socials {
  display: flex;
  gap: 1.2rem;
  font-size: 1.6rem;
}

.hero-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-socials a:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.25);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -60% 0 auto 0;
  height: 160%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  opacity: 0.6;
  transform: translateY(-40%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25);
}

.hero-card:hover::before {
  opacity: 0.9;
}

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

.pill {
  font-size: 1.1rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.hero-card-body {
  display: grid;
  gap: 1.6rem;
  position: relative;
  z-index: 1;
}

.hero-info {
  display: grid;
  gap: 1rem;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  background: rgba(19, 26, 40, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.info-label {
  font-size: 1.1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--mono);
}

.info-value {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: right;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-tags span {
  font-size: 1.1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--text);
  background: rgba(59, 130, 246, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-tags span:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 22px rgba(59, 130, 246, 0.2);
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -150px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: 0.6;
  filter: blur(10px);
}

.about,
.skills,
.projects,
.experience,
.education,
.certifications,
.contact {
  padding: 0 8vw;
}

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

.about-tabs {
  display: inline-flex;
  gap: 1rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.tab.active {
  background: var(--primary-soft);
  color: var(--text);
}

.tab-panels {
  display: grid;
  gap: 1.6rem;
}

.tab-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.4rem;
}

.tab-panel.active {
  display: block;
}

.tab-panel ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.tab-panel li {
  font-size: 1.4rem;
  color: var(--muted);
}

.about-card,
.skill-card,
.project-card,
.timeline-item,
.education-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.link-card {
  cursor: pointer;
}

.link-card:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.7);
  outline-offset: 4px;
}

.about-card:hover,
.skill-card:hover,
.project-card:hover,
.timeline-item:hover,
.education-card:hover,
.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 18px 45px rgba(59, 130, 246, 0.2);
}

.project-card:hover {
  z-index: 1;
}

.about-card h3,
.skill-card h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.about-card p,
.about-card li {
  font-size: 1.4rem;
  color: var(--muted);
}

.about-card ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

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

.skill-marquee {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.skill-marquee[data-marquee] {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.skill-marquee[data-marquee] span {
  display: inline-flex;
  align-items: center;
  animation: marquee 14s linear infinite;
}

.skill-marquee[data-marquee] span:nth-child(odd) {
  animation-duration: 12s;
}

.skill-marquee[data-marquee] span:nth-child(even) {
  animation-duration: 10s;
}

.skill-marquee span {
  font-size: 1.2rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--text);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.skill-marquee span:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.tag-row span {
  font-size: 1.2rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag-row span:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.6);
  color: var(--text);
}

.projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.6rem;
  margin-bottom: 3.6rem;
}

.section-header.compact {
  margin-top: 3rem;
}

.project-grid.mini .project-card {
  padding: 2rem;
}

.project-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.project-card p,
.project-card li {
  font-size: 1.4rem;
  color: var(--muted);
}

.project-card ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.project-links {
  margin-top: 0.8rem;
  align-self: flex-end;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.project-link {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.project-link::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55), transparent 70%);
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.2s ease;
  z-index: -1;
}

.project-link:hover {
  color: #fff;
  transform: translateY(-1px) scale(1.05);
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

.project-link:hover::after {
  opacity: 1;
}

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

.experience .timeline {
  display: grid;
  gap: 2rem;
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.timeline-item ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.timeline-item li {
  font-size: 1.4rem;
  color: var(--muted);
}

.education-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.education-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.cert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cert-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.cert-link {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.cert-link:hover {
  color: #fff;
  transform: translateY(-1px) scale(1.05);
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

.cert-link::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55), transparent 70%);
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.2s ease;
  z-index: -1;
}

.cert-link:hover::after {
  opacity: 1;
}

.muted {
  color: var(--muted);
  font-size: 1.4rem;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 18px 45px rgba(59, 130, 246, 0.25);
}

.cert-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cert-card {
  position: relative;
  overflow: hidden;
}

.cert-card:hover::after {
  opacity: 1;
}

.contact-card a {
  font-size: 1.4rem;
  color: var(--text);
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-card a:hover {
  transform: translateX(4px);
  color: var(--primary);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.footer {
  padding: 3rem 8vw 4rem;
  border-top: 1px solid var(--border);
  font-size: 1.2rem;
  color: var(--muted);
}

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

  .hero-card {
    order: -1;
  }

  .nav {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--surface);
    padding: 2rem;
    width: 220px;
    height: calc(100% - 70px);
    transition: right 0.3s ease;
  }

  .nav.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 1.6rem 6vw;
  }

  .hero {
    padding: 8rem 6vw 4rem;
  }

  .about,
  .skills,
  .projects,
  .experience,
  .education,
  .certifications,
  .contact {
    padding: 0 6vw;
  }

  .education-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .section-header h2 {
    font-size: 2.6rem;
  }
}
