:root {
  --bg: #0e0e11;
  --text: #e6e6f0;
  --accent: #ff66c4;
  --card: #1a1a22;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Layout + Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s;
}

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

/* Hero + Section Basics */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

section {
  margin-bottom: 4rem;
}

h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

p, li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Portfolio Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* NSFW: click-to-reveal styles */
.nsfw-item {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.nsfw-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 200ms ease, transform 200ms ease, opacity 200ms ease;
  filter: blur(10px) grayscale(30%);
  transform-origin: center;
}

.nsfw-item .nsfw-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,12,0.75);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 1rem;
  gap: .5rem;
  transition: opacity 150ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Focus ring for keyboard users */
.nsfw-item .nsfw-overlay:focus {
  outline: 3px solid rgba(100,180,255,0.25);
  outline-offset: 3px;
}

/* Revealed state: show image clean, hide overlay */
.nsfw-item.revealed img {
  filter: none;
}

.nsfw-item.revealed .nsfw-overlay {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 1rem;
  margin-right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #ff89d6;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: 3rem;
}

/* KONAMI GLITCH EFFECT – CLEANED */

#glitch-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#glitch-overlay.active {
  opacity: 1;
}

.scanline {
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, transparent, white, transparent);
  animation: scan-glitch 1s ease infinite;
  opacity: 0.05;
}

@keyframes scan-glitch {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.glitch-x {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
}

.x-stroke {
  stroke: white;
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: dash-in 0.6s forwards;
}

.x-stroke:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes dash-in {
  to { stroke-dashoffset: 0; }
}

.x-final {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: auto;
  transform: translate(-50%, -50%);
  animation: xfadein 0.5s ease forwards;
  opacity: 0;
}

@keyframes xfadein {
  to { opacity: 1; }
}