:root {
  --bg: #070712;
  --bg-soft: #0f1220;
  --ink: #f4f6ff;
  --muted: #b6c0ff;
  --accent: #4ef2c3;
  --accent-2: #58a6ff;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 88px;
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(88, 166, 255, 0.25), transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(78, 242, 195, 0.22), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(128, 90, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #05060f, #0b0f22 50%, #05060f 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.2;
}

body::after {
  background: radial-gradient(circle at 20% 30%, rgba(78, 242, 195, 0.12), transparent 55%);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: min(86vw, 1240px);
  margin: 0 auto;
  background: rgba(7, 7, 18, 0.72);
  backdrop-filter: blur(16px);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.site-header.scrolled .logo {
  color: rgba(244, 246, 255, 0.88);
}

.site-header.scrolled .nav-links a {
  color: rgba(226, 232, 240, 0.74);
}

.site-header.scrolled .nav-links a:hover {
  color: rgba(244, 246, 255, 0.94);
}

.site-header.scrolled .availability-pill {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.92);
}

.nav {
  max-width: none;
  margin: 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 12, 28, 0.55);
  color: rgba(244, 246, 255, 0.9);
  cursor: pointer;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: "Syne", "Space Grotesk", sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  align-items: center;
  margin-left: auto;
  flex-wrap: nowrap;
}

@media (max-width: 980px) {
  .site-header {
    width: min(92vw, 1240px);
  }

  .nav {
    padding: 16px 18px;
  }

  .nav-links {
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .availability-pill {
    padding: 5px 8px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(78, 242, 195, 0.45);
  background: rgba(78, 242, 195, 0.12);
  color: rgba(205, 255, 244, 0.95);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.availability-pill i {
  font-size: 8px;
  color: #4ef2c3;
}

.nav-links a {
  color: rgba(244, 246, 255, 0.7);
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 12px 0 20px;
  font-family: "Syne", "Space Grotesk", sans-serif;
}

.hero-content h1 span {
  display: block;
  color: var(--accent);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-subtitle {
  color: rgba(244, 246, 255, 0.72);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-availability {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(205, 255, 244, 0.92);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.hero-availability i {
  font-size: 8px;
  color: #4ef2c3;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #041013;
  box-shadow: 0 25px 55px rgba(78, 242, 195, 0.35);
}

.btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.01);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--ink);
  background: transparent;
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn.small {
  padding: 8px 14px;
  font-size: 13px;
}

.hero-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.6), transparent 70%);
}

.hero-card-inner h2 {
  margin: 8px 0 12px;
  font-size: 24px;
  font-family: "Syne", "Space Grotesk", sans-serif;
}

.hero-card-inner p {
  color: rgba(244, 246, 255, 0.7);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 24px;
  position: relative;
  z-index: 1;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-family: "Syne", "Space Grotesk", sans-serif;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.section-header h2::after {
  content: "";
  height: 4px;
  width: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #8b5cf6);
  box-shadow: 0 0 18px rgba(78, 242, 195, 0.5);
}

.section-header p {
  color: rgba(244, 246, 255, 0.68);
  max-width: 640px;
  margin: 0;
}

.about-grid,
.skill-grid,
.project-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-card,
.skill-card,
.project-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover,
.skill-card:hover,
.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(78, 242, 195, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 246, 255, 0.55);
}


.preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

.preview-modal.is-open {
  display: flex;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 18, 0.82);
  backdrop-filter: blur(6px);
}

.preview-content {
  position: relative;
  max-width: 1100px;
  width: min(96vw, 1100px);
  max-height: 88vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.preview-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0f22;
}

.preview-content video {
  display: block;
  width: 100%;
  height: 100%;
  background: #0b0f22;
}

.is-hidden {
  display: none !important;
}

.preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 12, 28, 0.75);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 12, 28, 0.75);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.preview-nav.prev {
  left: 12px;
}

.preview-nav.next {
  right: 12px;
}

.preview-caption {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 12, 28, 0.72);
  color: rgba(244, 246, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.project-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

.contact-card a {
  color: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.contact-card a:hover::after {
  transform: scaleX(1);
}

.site-footer {
  text-align: center;
  padding: 32px 24px 50px;
  color: rgba(244, 246, 255, 0.6);
}

@media (max-width: 720px) {
  body {
    padding-top: 74px;
  }

  .site-header {
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 12px 18px;
    column-gap: 10px;
    gap: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    letter-spacing: 0.12em;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    margin-top: 0;
  }

  .site-header.menu-open .nav-links {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 10px;
  }

  .availability-pill {
    margin-top: 4px;
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    letter-spacing: 0.08em;
  }

  .hero {
    padding-top: 60px;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(88, 166, 255, 0.18), transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -40px;
  bottom: -40px;
  background: radial-gradient(circle, rgba(78, 242, 195, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-header,
.card-body,
.card-footer {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  margin: 0;
  font-size: 20px;
  font-family: "Syne", "Space Grotesk", sans-serif;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 12, 28, 0.55);
  color: rgba(244, 246, 255, 0.86);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 242, 195, 0.55);
  color: var(--accent);
}

.demo-btn {
  border: 1px solid rgba(78, 242, 195, 0.5);
  background: rgba(78, 242, 195, 0.12);
  color: #b8fff0;
}

.demo-btn:hover {
  background: linear-gradient(120deg, rgba(78, 242, 195, 0.28), rgba(88, 166, 255, 0.28));
  border-color: rgba(78, 242, 195, 0.8);
  color: #ffffff;
  transform: translateY(-2px);
}

.repo-link {
  padding-left: 0;
}

.repo-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-body p,
.card-body li {
  color: rgba(244, 246, 255, 0.72);
}

.card-body ul {
  margin: 0;
  padding-left: 18px;
}

.card-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  justify-content: flex-end;
  align-items: flex-end;
}

.card-footer .btn {
  margin-top: 6px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud.alt .tag {
  border-color: rgba(88, 166, 255, 0.4);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(78, 242, 195, 0.35);
  background: rgba(7, 7, 18, 0.4);
  color: rgba(244, 246, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tag i {
  color: var(--accent);
}

.tag:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 242, 195, 0.6);
}

.stats-list {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

.stats-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 720px;
}

.stat-row {
  display: grid;
  gap: 8px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(244, 246, 255, 0.8);
}

.stat-level {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.stat-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
}
