/* ============================================================
   kingsyah.github.io — style.css
   ============================================================ */

:root {
  --bg: #050810;
  --bg2: #080c18;
  --surface: #0d1220;
  --border: rgba(100, 160, 255, 0.12);
  --accent: #4a8fff;
  --accent2: #00e5c0;
  --accent3: #ff6b35;
  --text: #e8edf5;
  --muted: #6a7a9a;
  --grid: rgba(70, 120, 200, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(74, 143, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.18s ease;
}

/* ── BACKGROUND ── */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.7;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.scan-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  opacity: 0.15;
  animation: scanDown 8s linear infinite;
  z-index: 5;
  pointer-events: none;
}
@keyframes scanDown {
  from { top: -2px; }
  to   { top: 100vh; }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
}
.nav-logo span { color: var(--accent2); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-github {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav-github:hover {
  background: rgba(74, 143, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── TICKER ── */
.ticker-wrapper {
  position: relative;
  z-index: 10;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  margin-top: 64px;
}
.ticker {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 0 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ticker-item .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent2);
  display: inline-block;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── HERO ── */
.hero-wrap {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
}
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-title .line2 {
  color: transparent;
  -webkit-text-stroke: 1px rgba(74, 143, 255, 0.5);
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-family: 'Crimson Pro', serif;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all 0.25s;
}
.btn-primary:hover {
  background: #6aaeff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(74, 143, 255, 0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all 0.25s;
}
.btn-outline:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: translateY(-2px);
}

/* ── STATUS BAR ── */
.status-bar {
  position: absolute;
  bottom: 60px;
  right: 48px;
  display: flex;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.status-item { text-align: right; }
.status-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.status-num span { color: var(--accent); }
.status-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── ORBIT ── */
.orbit-container {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid;
}
.orbit-ring:nth-child(1) { border-color: rgba(74,143,255,0.15); animation: spin 20s linear infinite; }
.orbit-ring:nth-child(2) { inset: 30px; border-color: rgba(0,229,192,0.1); animation: spin 14s linear infinite reverse; }
.orbit-ring:nth-child(3) { inset: 65px; border-color: rgba(255,107,53,0.1); animation: spin 9s linear infinite; }
.orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  top: -4px; left: 50%;
  transform: translateX(-50%);
}
.orbit-ring:nth-child(1) .orbit-dot { background: var(--accent);  box-shadow: 0 0 12px var(--accent); }
.orbit-ring:nth-child(2) .orbit-dot { background: var(--accent2); box-shadow: 0 0 12px var(--accent2); }
.orbit-ring:nth-child(3) .orbit-dot { background: var(--accent3); box-shadow: 0 0 12px var(--accent3); }
.orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 48px;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 60px;
}
.section-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(74, 143, 255, 0.4);
}

/* ── DOMAIN CARDS ── */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.domain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}
.domain-card:hover {
  background: rgba(13, 18, 32, 0.9);
  border-color: var(--accent);
  transform: scale(1.005);
  z-index: 2;
}
.domain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.domain-card:nth-child(1)::before { background: linear-gradient(135deg, rgba(74,143,255,0.05), transparent); }
.domain-card:nth-child(2)::before { background: linear-gradient(135deg, rgba(0,229,192,0.05), transparent); }
.domain-card:nth-child(3)::before { background: linear-gradient(135deg, rgba(255,107,53,0.05), transparent); }
.domain-card:nth-child(4)::before { background: linear-gradient(135deg, rgba(180,100,255,0.05), transparent); }
.domain-card:hover::before { opacity: 1; }

.card-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 32px;
}
.card-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}
.card-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
}
.card-desc {
  font-family: 'Crimson Pro', serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 32px;
}
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid;
}
.tag-blue   { border-color: rgba(74,143,255,0.3);  color: var(--accent); }
.tag-teal   { border-color: rgba(0,229,192,0.3);   color: var(--accent2); }
.tag-orange { border-color: rgba(255,107,53,0.3);  color: var(--accent3); }
.tag-purple { border-color: rgba(180,100,255,0.3); color: #b464ff; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  position: relative;
  z-index: 10;
  margin: 0 48px;
}

/* ── PROJECTS ── */
.projects-list {
  display: flex;
  flex-direction: column;
}
.proj-cat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--accent2);
  margin-bottom: 4px;
}
.project-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.project-row:first-child { border-top: 1px solid var(--border); }
.project-row:hover { padding-left: 12px; }
.project-row:hover .project-name { color: var(--accent); }
.project-index {
  font-size: 22px;
  min-width: 40px;
  text-align: center;
  line-height: 1;
}
.project-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.project-sub {
  font-family: 'Crimson Pro', serif;
  font-size: 15px;
  color: var(--muted);
  margin-top: 2px;
}
.project-arrow {
  font-size: 20px;
  color: var(--muted);
  transition: all 0.2s;
}
.project-row:hover .project-arrow {
  color: var(--accent);
  transform: translateX(6px);
}

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.about-text p {
  font-family: 'Crimson Pro', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.skill-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 2px;
}
.skill-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.skill-bar-bg {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: left;
  animation: barGrow 1.2s ease forwards;
  transform: scaleX(0);
}
@keyframes barGrow { to { transform: scaleX(1); } }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}
.footer-left {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.footer-left strong { color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .hero { padding: 120px 24px 80px; }
  .orbit-container { display: none; }
  section { padding: 60px 24px; }
  .domains-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .status-bar { position: static; flex-direction: row; justify-content: flex-start; padding: 0 24px 60px; gap: 24px; opacity: 1; animation: none; }
  footer { flex-direction: column; gap: 24px; padding: 40px 24px; text-align: center; }
}
