:root {
  --blue: #3b82f6;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --dark: #020817;
  --card: #0d1526;
  --border: rgba(99, 102, 241, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Plus Jakarta Sans", sans-serif;
}

body {
  background: var(--dark);
  color: #e2e8f0;
  overflow-x: hidden;
}

/* ── Noise texture overlay ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 1;
}

/* ── Gradient mesh ── */
.bg-glow-1 {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.12) 0%,
    transparent 70%
  );
  top: -200px;
  left: -200px;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-2 {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.08) 0%,
    transparent 70%
  );
  bottom: 10%;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

/* ── Mono font ── */
.mono {
  font-family: "JetBrains Mono", monospace;
}

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(2, 8, 23, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(99, 102, 241, 0.5);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  border: 1.5px solid rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
  background: transparent;
}
.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(99, 102, 241, 0.08);
  border-color: #6366f1;
  color: #c7d2fe;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s,
    border-color 0.3s;
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ── Skill badge ── */
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 14px;
  font-weight: 600;
  color: #a5b4fc;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.skill-badge:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

/* ── Tech stack pill ── */
.tech-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #67e8f9;
}

/* ── Section heading accent ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  color: #6366f1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag::before {
  content: "//";
  color: #22d3ee;
}

/* ── Gradient text ── */
.grad-text {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Input ── */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  color: #e2e8f0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  transition:
    border-color 0.2s,
    background 0.2s;
  outline: none;
}
.form-input::placeholder {
  color: #475569;
}
.form-input:focus {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

/* ── Hero code block ── */
.code-block {
  background: rgba(13, 21, 38, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 24px 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 2;
  backdrop-filter: blur(8px);
}
.code-block .k {
  color: #818cf8;
}
.code-block .s {
  color: #34d399;
}
.code-block .p {
  color: #94a3b8;
}
.code-block .v {
  color: #f472b6;
}
.code-block .c {
  color: #475569;
}

/* ── Scroll fade-in ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Cursor dot ── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6366f1;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Mobile menu ── */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: flex;
}

/* ── Social icon ── */
.soc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
  text-decoration: none;
}
.soc-icon:hover {
  transform: scale(1.15);
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

/* ── Progress bar ── */
.prog-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  transform-origin: left;
  animation: fillBar 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform: scaleX(0);
}
@keyframes fillBar {
  to {
    transform: scaleX(1);
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 999px;
}

/* ── Floating badge ── */
.float-badge {
  animation: floatY 3s ease-in-out infinite alternate;
}
@keyframes floatY {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

/* ── Gradient border card ── */
.grad-border {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.4),
    rgba(34, 211, 238, 0.2)
  );
}
.grad-border-inner {
  background: var(--card);
  border-radius: 19px;
  height: 100%;
}
