/* ===== GLOBAL FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
  --font-main: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: #e5e5e5;
  --bg: #1f2125;
  --surface: #22252b;
  --surface-soft: rgba(34,37,43,0.88);
  --shadow-dark: rgba(0,0,0,0.35);
  --shadow-light: rgba(60,60,65,0.15);
  --radius-lg: 1.5rem;           /* you used this later */
  --accent: #9f85ff;             /* gradient-text uses this */
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  min-height: 100vh;
  position: relative;
}

body.custom-cursor-active {
  cursor: none;
}

body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active [role="button"],
body.custom-cursor-active label {
  cursor: none;
}

body.custom-cursor-active a *,
body.custom-cursor-active button *,
body.custom-cursor-active [role="button"] *,
body.custom-cursor-active label *,
body.custom-cursor-active .clickable,
body.custom-cursor-active .clickable *,
body.custom-cursor-active [data-interactive="true"],
body.custom-cursor-active [data-interactive="true"] *,
body.custom-cursor-active video,
body.custom-cursor-active video * {
  cursor: none;
}

body.custom-cursor-active input,
body.custom-cursor-active textarea,
body.custom-cursor-active select,
body.custom-cursor-active [contenteditable="true"] {
  cursor: text;
}

/* ===== NEUMORPHIC BUTTON WITH RAINBOW TEXT ===== */
.neo-btn {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 1.5rem;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  font-family: var(--font-main);
  color: transparent; /* hide base text color */
  background-image: linear-gradient(
    120deg,
    #ff6b6b 0%,
    #f7d794 20%,
    #1dd1a1 40%,
    #48dbfb 60%,
    #5f27cd 80%,
    #ff9ff3 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  backdrop-filter: blur(3px);
  z-index: 1;
}

.neo-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: inherit;
  box-shadow:
    14px 14px 28px var(--shadow-dark),
    -14px -14px 28px var(--shadow-light);
  z-index: -1;
  transition: box-shadow 0.15s ease-out, transform 0.15s ease-out;
}

.neo-btn:hover {
  transform: translateY(-2px);
}

.neo-btn:hover::before {
  box-shadow:
    6px 6px 18px rgba(0,0,0,0.4),
    -6px -6px 18px rgba(60,60,65,0.06);
}

/* ===== HEADER / LAYOUT ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem 0.5rem;
  position: relative;
  z-index: 2;
}

.site-title {
  font-size: 1.4rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.top-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.015);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  box-shadow: 7px 7px 15px rgba(0,0,0,0.35),
              -7px -7px 15px rgba(60,60,65,0.15);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.top-nav a:hover,
.top-nav a:focus {
  transform: translateY(-1px);
  box-shadow: 3px 3px 10px rgba(0,0,0,0.35),
              -3px -3px 10px rgba(60,60,65,0.15);
}

.top-nav a.active {
  background: rgba(159,133,255,0.12);
}

.page {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.2rem 1.4rem 3.5rem;
  position: relative;
  z-index: 1;
}

/* particle canvas layer remains click-through */
#particle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}
#rainbow-cursor-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 128px;
  height: 128px;
  pointer-events: none;
  z-index: 220;
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 0.14s ease;
  will-change: transform, opacity;
}

#rainbow-cursor-layer.is-visible {
  opacity: 1;
}

.neo-card {
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 25px rgba(0,0,0,0.35),
              -10px -10px 25px rgba(60,60,65,0.15);
  backdrop-filter: blur(8px);
}

/* headings that use accent */
.gradient-text {
  background: linear-gradient(120deg, #f6d365 0%, #fda085 35%, var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.media-slot,
.text-slot,
.extra-slot {
  background: rgba(0,0,0,0.05);
  border: 1px dashed rgba(255,255,255,0.03);
  border-radius: 1rem;
  min-height: 90px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* profile video defaults for subpages */
.profile-video-wrap {
  position: relative;
  width: 130px;
  height: 130px;
}

.profile-video {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.05);
  box-shadow: 10px 10px 25px rgba(0,0,0,0.35),
              -10px -10px 25px rgba(60,60,65,0.25);
  cursor: pointer;
}

.video-hint {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  opacity: 0.5;
}

@media (max-width: 950px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-video-wrap {
    margin-top: 0.6rem;
  }
}

@media (max-width: 600px) {
  .page {
    padding-inline: 1rem;
  }
  .top-nav {
    gap: 0.4rem;
  }
  .top-nav a {
    font-size: 0.7rem;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.6rem, 5vw, 3rem);
  background: rgba(6, 7, 11, 0.84);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  z-index: 200;
}

.lightbox.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.lightbox__img {
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  border-radius: 1.2rem;
  box-shadow:
    26px 26px 52px rgba(0, 0, 0, 0.55),
    -22px -22px 44px rgba(70, 70, 80, 0.14);
}

.lightbox__close {
  position: absolute;
  top: clamp(1.2rem, 3vw, 2.2rem);
  right: clamp(1.2rem, 3vw, 2.2rem);
  width: 3rem;
  height: 3rem;
  border-radius: 1.5rem;
  border: none;
  background: rgba(20, 22, 30, 0.9);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    14px 14px 28px rgba(0, 0, 0, 0.45),
    -14px -14px 28px rgba(60, 60, 65, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.42),
    -8px -8px 20px rgba(60, 60, 65, 0.12);
}

/* ===== PLAYGROUND NAV BUTTON ===== */
.playground-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(159, 133, 255, 0.25), rgba(255, 107, 107, 0.15));
  color: var(--text);
  box-shadow:
    7px 7px 15px rgba(0, 0, 0, 0.35),
    -7px -7px 15px rgba(60, 60, 65, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

.playground-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.35),
    -4px -4px 10px rgba(60, 60, 65, 0.15);
}

.playground-nav-btn .btn-icon {
  font-size: 1rem;
}

.playground-nav-btn.active {
  background: linear-gradient(135deg, rgba(159, 133, 255, 0.4), rgba(255, 107, 107, 0.25));
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.3),
    inset -4px -4px 8px rgba(60, 60, 65, 0.1),
    0 0 15px rgba(159, 133, 255, 0.2);
}

/* ===== MOBILE HAMBURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: var(--surface);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    6px 6px 14px var(--shadow-dark),
    -6px -6px 14px var(--shadow-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.mobile-menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow:
    4px 4px 10px var(--shadow-dark),
    -4px -4px 10px var(--shadow-light);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 800px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .site-header {
    flex-wrap: wrap;
  }
  
  .top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(31, 33, 37, 0.97);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 100;
    padding: 2rem;
  }
  
  .top-nav.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .top-nav a {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
    min-width: 180px;
  }
  
  .playground-nav-btn {
    margin-left: 0;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.2rem;
  }
  
  .top-nav a {
    font-size: 0.9rem;
    padding: 0.65rem 1.25rem;
    min-width: 160px;
  }
}
