/* ══════════════════════════════════════════
   zaidanity — style.css
   ══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --bg: #080b14;
  --bg2: #0d1220;
  --bg3: #111827;
  --card: #0f1623;
  --border: rgba(201, 160, 220, 0.12);
  --border2: rgba(201, 160, 220, 0.22);
  --wisteria: #C9A0DC;
  --wisteria2: #b07fcb;
  --blue: #7DCFFF;
  --pink: #FF79C6;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #4a5568;
  --glow: rgba(201, 160, 220, 0.15);

  --nav-height: 64px;
  --content-max: 860px;
  --gap: 2rem;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   BACKGROUND EFFECTS
   ══════════════════════════════════════════ */

/* ── STARFIELD ── */
#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--d, 4s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: var(--op, 0.6); transform: scale(1.3); }
}

/* ── CURSOR GLOW ── */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 160, 220, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
}

/* ── AMBIENT BLOBS ── */
.blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.18;
}

.blob-1 { width: 500px; height: 500px; background: #C9A0DC; top: -100px; right: -120px; }
.blob-2 { width: 400px; height: 400px; background: #7DCFFF; bottom: 20%; left: -150px; }
.blob-3 { width: 300px; height: 300px; background: #FF79C6; top: 50%; left: 40%; }

/* ══════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════ */

main {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap) 6rem;
}

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--gap);
  height: var(--nav-height);
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--wisteria);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a,
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

nav a:hover,
.nav-link:hover {
  color: var(--wisteria);
}

/* Hamburger button (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0.5px solid var(--border2);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--wisteria2);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-tag::before {
  content: '// ';
  color: var(--dim);
}

h1.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 10vw, 96px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

h1.hero-name span:first-child {
  color: var(--wisteria);
}

.hero-sub {
  font-family: 'Noto Serif Display', serif;
  font-style: italic;
  font-size: clamp(15px, 2.5vw, 22px);
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  border: 0.5px solid var(--border2);
  color: var(--muted);
  background: rgba(201, 160, 220, 0.04);
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--wisteria);
  color: var(--wisteria);
  background: rgba(201, 160, 220, 0.08);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 11px 28px;
  border-radius: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--wisteria);
  color: #0d0a14;
  border: none;
  font-weight: 400;
}

.btn-primary:hover {
  background: #d9b8e8;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--wisteria);
  border: 0.5px solid var(--border2);
}

.btn-ghost:hover {
  border-color: var(--wisteria);
  background: rgba(201, 160, 220, 0.07);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scroll-hint::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--dim), transparent);
  vertical-align: middle;
}

/* ── TYPING CURSOR ── */
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--wisteria);
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ══════════════════════════════════════════
   SECTION COMMON
   ══════════════════════════════════════════ */

section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  font-size: 11px;
  color: var(--wisteria2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-tag::before {
  content: '# ';
  color: var(--dim);
}

h2.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-divider {
  border: none;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 0;
}

/* ══════════════════════════════════════════
   YAML BLOCK
   ══════════════════════════════════════════ */

.yaml-block {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem 2rem;
  margin: 3rem 0;
  font-size: 13px;
  line-height: 2.2;
  position: relative;
  overflow-x: auto;
}

.yaml-filename {
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 0.8rem;
}

.yaml-content {
  white-space: nowrap;
}

.yaml-key { color: var(--blue); }
.yaml-val { color: var(--text); }
.yaml-str { color: var(--pink); }
.yaml-arr { color: var(--wisteria); }
.yaml-comment { color: var(--dim); font-style: italic; }
.yaml-flag { font-size: 14px; }

/* ══════════════════════════════════════════
   ABOUT GRID
   ══════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.about-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  transition: border-color 0.2s;
}

.about-card:hover {
  border-color: var(--border2);
}

.about-card-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.8rem;
}

.about-card-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0.8rem;
}

.about-weakness {
  font-size: 13px;
  color: var(--pink);
  margin-top: 0.2rem;
}

.about-card-sub {
  font-size: 11px;
  color: var(--dim);
  margin-top: 0.3rem;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  border: 0.5px solid rgba(125, 207, 255, 0.2);
  background: rgba(125, 207, 255, 0.05);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7DCFFF;
  box-shadow: 0 0 0 3px rgba(125, 207, 255, 0.2);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(125, 207, 255, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(125, 207, 255, 0.05); }
}

.xp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.xp-list li {
  font-size: 12px;
  color: var(--muted);
}

.xp-list li::before {
  content: '↗ ';
  color: var(--wisteria2);
}

/* ══════════════════════════════════════════
   SKILLS / STACK
   ══════════════════════════════════════════ */

.stack-group {
  margin-bottom: 2rem;
}

.stack-group-label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: var(--card);
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s;
  cursor: default;
  font-family: 'DM Mono', monospace;
}

.skill-pill:hover {
  border-color: var(--wisteria2);
  color: var(--wisteria);
  background: rgba(201, 160, 220, 0.05);
  transform: translateY(-2px);
}

.skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wisteria2);
  flex-shrink: 0;
}

.skill-pill:hover .skill-dot {
  background: var(--wisteria);
}

/* ══════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════ */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.project-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(201, 160, 220, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}

.project-card:hover::before {
  opacity: 1;
}

/* Placeholder card */
.project-card--placeholder {
  border-style: dashed;
  opacity: 0.6;
  grid-column: span 2;
}

.placeholder-inner {
  text-align: center;
  padding: 0.5rem 0;
}

.placeholder-title {
  font-size: 13px;
  color: var(--dim);
}

.placeholder-sub {
  font-size: 11px;
  color: var(--dim);
  margin-top: 0.3rem;
}

/* Project card internals */
.project-lang {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.lang-css  { background: #563d7c; }
.lang-html { background: #e34c26; }
.lang-js   { background: #f1e05a; }
.lang-ts   { background: #3178c6; }
.lang-py   { background: #3572a5; }

h3.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 0.5px solid var(--border2);
  color: var(--wisteria2);
}

.project-arrow {
  color: var(--dim);
  font-size: 18px;
  transition: color 0.2s, transform 0.2s;
}

.project-card:hover .project-arrow {
  color: var(--wisteria);
  transform: translate(2px, -2px);
}

/* ══════════════════════════════════════════
   CONNECT
   ══════════════════════════════════════════ */

.connect-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  transition: all 0.2s;
}

.connect-btn:hover {
  border-color: var(--wisteria2);
  color: var(--wisteria);
  background: rgba(201, 160, 220, 0.05);
  transform: translateY(-2px);
}

.connect-icon {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

footer {
  text-align: center;
  padding: 3rem 0 2rem;
  font-size: 12px;
  color: var(--dim);
  border-top: 0.5px solid var(--border);
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

footer .accent {
  color: var(--wisteria2);
}

.footer-sub {
  margin-top: 0.4rem;
  font-size: 11px;
}

/* ══════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 768px)
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --gap: 1.5rem;
  }

  /* Nav: show hamburger, hide links by default */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 11, 20, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 0.5px solid var(--border);
    padding: 0.5rem 0 1rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 0.8rem var(--gap);
    font-size: 13px;
    border-bottom: 0.5px solid var(--border);
    width: 100%;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Hero */
  #hero {
    padding-top: calc(var(--nav-height) + 1rem);
    min-height: calc(100vh - var(--nav-height));
  }

  .scroll-hint {
    display: none;
  }

  /* Grids → single column */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card--placeholder {
    grid-column: span 1;
  }

  /* YAML block scroll */
  .yaml-block {
    padding: 1.2rem 1.2rem;
    font-size: 12px;
  }

  /* Blobs — tone down on mobile */
  .blob-1 { width: 300px; height: 300px; }
  .blob-2 { width: 250px; height: 250px; }
  .blob-3 { width: 200px; height: 200px; }

  /* Connect grid */
  .connect-grid {
    gap: 0.6rem;
  }

  .connect-btn {
    flex: 1 1 calc(50% - 0.3rem);
    justify-content: center;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 480px)
   ══════════════════════════════════════════ */

@media (max-width: 480px) {
  :root {
    --gap: 1.2rem;
  }

  /* Tighter section padding */
  section {
    padding: 3.5rem 0;
  }

  /* YAML smaller font */
  .yaml-block {
    font-size: 11px;
    line-height: 1.85;
  }

  /* Skill pills smaller */
  .skill-pill {
    font-size: 11px;
    padding: 6px 11px;
  }

  /* Project cards */
  .project-card {
    padding: 1.2rem;
  }

  /* Connect buttons full width */
  .connect-btn {
    flex: 1 1 100%;
  }

  /* Hero tags */
  .tag {
    font-size: 10px;
    padding: 4px 11px;
  }

  /* Buttons */
  .btn {
    padding: 10px 22px;
    font-size: 12px;
    width: 100%;
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  /* About card value font */
  .about-card-val {
    font-size: 13px;
  }

  /* Blobs hidden on very small screens to save paint */
  .blob-3 {
    display: none;
  }
}
