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

:root {
  --bg: #06080f;
  --bg-card: rgba(15, 20, 35, 0.6);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.14);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --accent: #818cf8;
  --accent2: #38bdf8;
  --accent3: #a78bfa;
  --green: #4ade80;
  --font: 'Inter', -apple-system, sans-serif;
  --radius: 16px;
  --transition: 300ms cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }
strong { font-weight: 600; color: var(--text); }
.green { color: var(--green); font-weight: 600; }
.container { max-width: 900px; margin: 0 auto; padding: 0 28px; }

/* ─── Noise ─── */
.noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px;
}

/* ─── Orbs ─── */
.orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px); opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite alternate;
}
.orb-1 {
  width: 500px; height: 500px; top: -10%; left: -5%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
}
.orb-2 {
  width: 400px; height: 400px; top: 30%; right: -10%;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
  animation-delay: -7s; animation-duration: 25s;
}
.orb-3 {
  width: 350px; height: 350px; bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 70%);
  animation-delay: -12s; animation-duration: 30s;
}
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 30px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* ─── Particles ─── */
.particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}

/* ─── Side Dots ─── */
.side-dots {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 16px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none;
  transition: all var(--transition); position: relative;
}
.dot:hover, .dot.active {
  background: var(--accent); box-shadow: 0 0 12px rgba(129,140,248,0.4);
  transform: scale(1.3);
}
.dot-label {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.dot:hover .dot-label { opacity: 1; }

/* ─── Top Nav ─── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6, 8, 15, 0.7);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-logo {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo span { font-weight: 600; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; z-index: 1;
}
.hero-content { padding: 80px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent);
  padding: 6px 14px; border-radius: 20px;
  background: rgba(129,140,248,0.1); border: 1px solid rgba(129,140,248,0.2);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 900;
  letter-spacing: -0.05em; line-height: 0.95;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 40%, var(--accent3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted); line-height: 1.8; margin-bottom: 40px;
  max-width: 520px;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 600; font-family: var(--font);
  border: 1px solid var(--border); color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  transition: all var(--transition); cursor: pointer;
}
.btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(129,140,248,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(129,140,248,0.12);
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: 8px; }
.btn-ghost { background: transparent; }

/* ─── Sections ─── */
.section { position: relative; z-index: 1; padding: 120px 0; }
.section-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent);
  margin-bottom: 48px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}

/* ─── Glass ─── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.glass:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 80px rgba(129,140,248,0.04);
}

/* ─── About ─── */
.about-content {
  display: grid; grid-template-columns: 1fr 260px;
  gap: 48px; align-items: start;
}
.about-text p {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.85; margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-card {
  padding: 18px 22px; display: flex; flex-direction: column; gap: 4px;
}
.stat-value { font-size: 1rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-dim); font-weight: 500; }

/* ─── Project Showcases (PAW & Lobs) ─── */
.project-showcase { margin-bottom: 28px; }
.showcase-glass {
  padding: 40px; position: relative; overflow: hidden;
}
.showcase-glass::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.showcase-glass--alt::before {
  background: linear-gradient(135deg, rgba(167,139,250,0.06) 0%, transparent 60%);
}
.showcase-top {
  display: flex; gap: 36px; align-items: flex-start;
  position: relative; z-index: 1;
}
.showcase-logo-area {
  flex-shrink: 0; width: 160px;
}
.showcase-logo {
  width: 100%; height: auto; border-radius: 12px;
}
.showcase-screenshot-full {
  margin: 24px auto 32px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-width: 600px;
}
.showcase-screenshot-full img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s ease;
}
.showcase-glass:hover .showcase-screenshot-full img { transform: scale(1.01); }
.showcase-info { position: relative; z-index: 1; flex: 1; }
.badge {
  display: inline-block; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(129,140,248,0.15); color: var(--accent);
  margin-bottom: 10px;
}
.badge--purple { background: rgba(167,139,250,0.15); color: var(--accent3); }
.showcase-title {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 4px;
}
.showcase-title a {
  color: var(--text); transition: color var(--transition);
}
.showcase-title a:hover { color: var(--accent); }
.showcase-subtitle {
  font-size: 0.9rem; color: var(--text-dim); margin-bottom: 16px;
}
.showcase-desc {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 20px;
}
.showcase-features-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.feature-pill {
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600;
  background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2);
  color: var(--green);
}
.tech-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tech {
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 500;
  background: rgba(129,140,248,0.08); border: 1px solid rgba(129,140,248,0.15);
  color: var(--accent);
}
.link-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Project Cards ─── */
.project-card-wrapper { margin-bottom: 20px; }
.project-card {
  padding: 32px; display: block; color: inherit;
}
.project-card--visual {
  padding: 0; display: grid; grid-template-columns: 280px 1fr;
  overflow: hidden;
}
.card-image {
  overflow: hidden; background: #0a0e1a;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.card-subtitle { font-size: 0.8rem; color: var(--text-dim); }
.card-desc {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; flex: 1;
}
.card-meta { font-size: 0.72rem; color: var(--text-dim); font-style: italic; }

/* ─── Steam Widget ─── */
.steam-widget {
  margin-top: 8px; border-radius: var(--radius); overflow: hidden;
}
.steam-widget iframe { display: block; border-radius: var(--radius); }

/* ─── Contact ─── */
.contact-section { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }
.contact-heading {
  font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Footer ─── */
.footer {
  padding: 32px 0; border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); text-align: center; }

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.3s; }
.reveal-d3 { transition-delay: 0.45s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .about-content { grid-template-columns: 1fr; gap: 32px; }
  .showcase-top { flex-direction: column; }
  .showcase-logo-area { width: 120px; }
  .showcase-screenshot-full { margin: 0 28px 24px; }
  .showcase-glass { padding: 28px; }
  .project-card--visual { grid-template-columns: 1fr; }
  .card-image { max-height: 200px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .side-dots { display: none; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-content { padding: 40px 0; }
}
