/* =========================================
   Anaïs La Rocca — Director Portfolio
   ========================================= */

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

:root {
  --bg: #0a0a0a;
  --fg: #f0ece4;
  --fg-dim: #8a8680;
  --accent: #e07a5f;
  --accent-light: #e07a5f;
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Lora', Georgia, serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Easter egg canvas — particles */
#easterEggCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}


/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  padding: 0.2rem 0;
  border-radius: 0;
  border: none;
  background: none;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.5;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:active {
  opacity: 0.8;
}

.nav-link.active {
  color: var(--accent);
  opacity: 1;
}

.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.nav-toggle span:first-child {
  position: absolute;
  top: 4px;
}

.nav-toggle span:last-child {
  position: absolute;
  bottom: 4px;
}

.nav-toggle.active span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 10, 10, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
  opacity: 0.6;
}

.mobile-link:hover {
  color: var(--accent);
  opacity: 1;
}

/* ---- Hero — fullscreen video ---- */

.hero {
  position: relative;
  width: 100%;
  height: 250vh;
  overflow: visible;
  cursor: pointer;
}

.hero-sticky-clip {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.hero-video-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, border-radius, opacity;
  pointer-events: auto;
}

.hero-video-inner {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

/* Hero slideshow crossfade layers */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.hero-slide-active {
  opacity: 1;
}

.hero-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.hero:hover .hero-title-overlay {
  opacity: 1;
}

.hero-tag {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.hero-project-title {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.hero-scroll-hint {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  animation: heroHintPulse 2s ease-in-out infinite;
}

@keyframes heroHintPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* ---- Section shared ---- */

.section-label {
  display: block;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.section-title {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.54rem);
  font-weight: 500;
  line-height: 1.2;
}

/* ---- Work / Carousel ---- */

.work {
  padding: 3rem 0 3rem;
  position: relative;
  z-index: 1;
  margin-top: -100vh; /* slide up behind the hero */
}

.section-header {
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 0 3rem;
}

/* Carousel wrapper — full bleed */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  cursor: grab;
  padding: 1rem 0;
}

.carousel-wrapper:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  padding: 0 3rem;
  will-change: transform;
}

/* Each card — gallery-style */
.carousel-card {
  flex: 0 0 55vw;
  max-width: 900px;
  min-width: 280px;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}

.carousel-card:hover {
  transform: scale(1.02);
}

.carousel-card-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
}

.carousel-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
  background-size: 200% 200%;
  animation: cardGradientShift 8s ease infinite;
  transition: filter 0.6s;
}

/* Vimeo thumbnail layer */
.carousel-card-thumb {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-card-thumb.carousel-card-thumb-loaded {
  opacity: 1;
}

/* Autoplay video preview layer (on top of thumbnail) */
.carousel-card-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-card-video.carousel-card-video-active {
  opacity: 1;
}

.carousel-card-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

/* Only crop non-16:9 videos (anamorphic, etc.) to fill the 16:9 card */
.needs-crop .carousel-card-video iframe {
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%) scale(1.35);
  object-fit: cover;
}

/* Hide gradient when video is present */
.carousel-card.has-video .carousel-card-gradient {
  opacity: 0;
}

.carousel-card:hover .carousel-card-gradient {
  filter: brightness(1.3) saturate(1.2);
}

@keyframes cardGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.carousel-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.carousel-card:hover .carousel-card-content {
  opacity: 1;
}

.carousel-card-tag {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: rgba(10, 10, 10, 0.5);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  backdrop-filter: blur(10px);
}

.carousel-card-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.carousel-card-desc {
  font-size: 0.7rem;
  color: var(--fg-dim);
  line-height: 1.5;
  margin-bottom: 0;
  display: none;
}

.carousel-card-cta {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.carousel-card-cta::after {
  content: '\2192';
  transition: transform 0.3s var(--ease-out);
}

.carousel-card:hover .carousel-card-cta::after {
  transform: translateX(3px);
}

/* Carousel controls removed */

/* ---- Grid mode for category sub-pages ---- */

.work.grid-mode .carousel-wrapper {
  overflow: visible;
  cursor: default;
  padding: 0;
}

.work.grid-mode .carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0 3rem;
  transform: none !important;
  will-change: auto;
}

.work.grid-mode .carousel-wrapper:active {
  cursor: default;
}

.work.grid-mode .carousel-card {
  flex: none;
  max-width: none;
  min-width: 0;
  width: 100%;
}

@media (max-width: 1024px) {
  .work.grid-mode .carousel-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .work.grid-mode .carousel-track {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }
}

/* ---- Fullscreen Video Player ---- */

.fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.fullscreen-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-gradient {
  display: none;
}

/* Close button — top right */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 210;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(90deg);
}

/* Video fills the entire screen */
.modal-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 201;
  background: #000;
  display: none;
}

.modal-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Credits popup — bottom bar that slides up */
.modal-credits-toggle {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 210;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  backdrop-filter: blur(8px);
  display: none;
}

.modal-credits-toggle:hover {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.7);
}

.modal-credits-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 209;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  padding: 4rem 3rem 5rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
  display: none;
}

.modal-credits-panel.visible {
  transform: translateY(0);
  pointer-events: all;
}

.modal-credits-panel .modal-tag {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.modal-credits-panel .modal-title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.75rem;
}

.modal-credits-panel .modal-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.modal-credits-panel .modal-meta {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* Non-video fallback (gradient background for cards without video) */
.modal-content {
  position: absolute;
  inset: 0;
  z-index: 201;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.modal-content .modal-tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.modal-content .modal-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.modal-content .modal-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2rem;
}

.modal-content .modal-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--fg-dim);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.modal-content .modal-meta {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Hide text content when video is playing */
.fullscreen-modal.has-video .modal-content {
  display: none;
}

.fullscreen-modal.has-video .modal-gradient {
  display: none;
}

/* ---- Carousel progress bar ---- */

.carousel-progress {
  max-width: 200px;
  height: 2px;
  background: rgba(240, 236, 228, 0.08);
  margin: 1.25rem auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.carousel-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.work.grid-mode .carousel-progress {
  display: none;
}

/* ---- Shimmer loading skeleton ---- */

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.carousel-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 60%, rgba(255,255,255,0) 100%);
  background-size: 800px 100%;
  animation: shimmer 1.8s ease infinite;
  pointer-events: none;
}

/* Hide shimmer once thumbnail or video loads */
.carousel-card-inner:has(.carousel-card-thumb-loaded)::before,
.carousel-card-inner:has(.carousel-card-video-active)::before {
  opacity: 0;
  transition: opacity 0.5s;
}

/* ---- Clients marquee ---- */

.clients {
  padding: 3rem 0;
  border-top: 1px solid rgba(240, 236, 228, 0.06);
  border-bottom: 1px solid rgba(240, 236, 228, 0.06);
  overflow: hidden;
}

.clients-marquee {
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* ---- About ---- */

.about {
  padding: 0 3rem 8rem;
}

/* Big editorial statement above the grid */
.about-statement {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding-top: 6rem;
}

.about-headline {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
}

.about-headline-sub {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.about-portrait {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-right {
  padding-top: 0.5rem;
}

.about-right .section-label {
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
}

.about-text-lead {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text em {
  color: var(--accent-light);
  font-style: italic;
}

.about-awards {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(240, 236, 228, 0.08);
}

.about-awards-title {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.about-awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-awards-list li {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  padding-left: 1.2rem;
  position: relative;
  text-transform: uppercase;
}

.about-awards-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

/* ---- Quote ---- */

.quote-section {
  padding: 6rem 3rem;
  display: flex;
  justify-content: center;
}

.quote {
  max-width: 850px;
  text-align: center;
}

.quote p {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.6;
  color: var(--fg);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.quote p em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.quote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
}

/* ---- Contact ---- */

.contact {
  padding: 8rem 3rem;
  text-align: center;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.contact-links {
  margin-bottom: 3rem;
}

.contact-link {
  font-size: 1.1rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(196, 168, 124, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.contact-link:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.contact-rep {
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.contact-rep-name {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--fg);
  margin-top: 0.25rem;
}

/* ---- Footer ---- */

.footer {
  padding: 2rem 3rem;
  border-top: 1px solid rgba(240, 236, 228, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.footer-name {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(240, 236, 228, 0.1);
}

.footer-social-link {
  color: var(--fg-dim);
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
}

.footer-social-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---- Reveal animation ---- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .carousel-card {
    flex: 0 0 65vw;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-portrait {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .work {
    padding: 2rem 0 3rem;
  }

  .hero-title-overlay {
    padding: 2rem 1.5rem 1.5rem;
  }

  .carousel-track {
    gap: 0.75rem;
    padding: 0 1.5rem;
  }

  .carousel-card {
    flex: 0 0 75vw;
  }

  .carousel-card-content {
    opacity: 1;
    padding: 1rem 1.25rem;
  }

  .carousel-card-inner {
    border-radius: 4px;
  }

  .about {
    padding: 3rem 1.5rem 5rem;
  }

  .quote-section {
    padding: 4rem 1.5rem;
  }

  .contact {
    padding: 5rem 1.5rem;
  }

  .modal-credits-panel {
    padding: 3rem 1.5rem 4rem;
  }

  .modal-credits-toggle {
    bottom: 1rem;
  }

  .section-header {
    margin-bottom: 1.25rem;
    padding: 0 1.5rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-social {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .carousel-card {
    flex: 0 0 85vw;
  }
}

/* ============================================================
   THEME TOGGLE — Light / Dark mode
   ============================================================ */

.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

@media (hover: hover) {
  .theme-toggle { cursor: none; }
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Show sun icon in dark mode, moon icon in light mode */
.theme-icon-moon { display: none; }
.theme-icon-sun { display: block; }

body.light-mode .theme-icon-moon { display: block; }
body.light-mode .theme-icon-sun { display: none; }

/* ---- Light mode overrides ---- */
body.light-mode {
  background: #f5f2ec;
  color: #1a1a1a;
}

body.light-mode .nav {
  background: rgba(245, 242, 236, 0.6);
}

body.light-mode .nav.scrolled {
  background: rgba(245, 242, 236, 0.85);
}

body.light-mode .nav-logo {
  color: #1a1a1a;
}

body.light-mode .nav-link {
  background: none;
  color: #1a1a1a;
}

body.light-mode .section-label {
  color: #888;
}

body.light-mode .section-title {
  color: #1a1a1a;
}

body.light-mode .carousel-card-content {
  background: linear-gradient(to top, rgba(245, 242, 236, 0.9), transparent);
}

body.light-mode .carousel-card-tag {
  background: rgba(245, 242, 236, 0.7);
  color: #555;
}

body.light-mode .carousel-card-title {
  color: #1a1a1a;
}

body.light-mode .carousel-card-desc {
  color: #666;
}

body.light-mode .carousel-card-cta {
  color: #e07a5f;
}

body.light-mode .carousel-progress {
  background: rgba(0, 0, 0, 0.08);
}

body.light-mode .about {
  background: #eae7e0;
}

body.light-mode .about-headline {
  color: #1a1a1a;
}

body.light-mode .about-text {
  color: #333;
}

body.light-mode .about-awards-title {
  color: #1a1a1a;
}

body.light-mode .about-awards-list li {
  color: #555;
}

body.light-mode .quote-section {
  background: #f5f2ec;
}

body.light-mode .quote p {
  color: #1a1a1a;
}

body.light-mode .quote cite {
  color: #888;
}

body.light-mode .contact {
  background: #eae7e0;
}

body.light-mode .contact-title {
  color: #1a1a1a;
}

body.light-mode .contact-link {
  color: #e07a5f;
}

body.light-mode .contact-rep {
  color: #555;
}

body.light-mode .footer {
  background: #1a1a1a;
  color: #f0ece4;
}

body.light-mode .clients {
  background: #f5f2ec;
}

body.light-mode .clients-track span {
  color: #555;
}

body.light-mode .mobile-menu {
  background: rgba(245, 242, 236, 0.97);
}

body.light-mode .mobile-link {
  color: #1a1a1a;
}

body.light-mode .fullscreen-modal {
  background: rgba(0, 0, 0, 0.95);
}

body.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

body.light-mode .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.2);
}

body.light-mode ::selection {
  background: #e07a5f;
  color: #fff;
}

/* ============================================================
   MYSPACE MODE — press X to activate 🌟
   ============================================================ */

@keyframes rainbow {
  0% { color: #ff0000; }
  15% { color: #ff8800; }
  30% { color: #ffff00; }
  45% { color: #00ff00; }
  60% { color: #0088ff; }
  75% { color: #8800ff; }
  90% { color: #ff00ff; }
  100% { color: #ff0000; }
}

@keyframes rainbowBg {
  0% { border-color: #ff0000; }
  15% { border-color: #ff8800; }
  30% { border-color: #ffff00; }
  45% { border-color: #00ff00; }
  60% { border-color: #0088ff; }
  75% { border-color: #8800ff; }
  90% { border-color: #ff00ff; }
  100% { border-color: #ff0000; }
}

@keyframes blink90s {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes starSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes tileScroll {
  0% { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

@keyframes marqueeMyspace {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sparkle cursor trail element */
.myspace-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  font-size: 16px;
  transition: none;
  animation: starSpin 0.6s linear forwards;
  opacity: 1;
}

.myspace-sparkle.fade {
  opacity: 0;
  transition: opacity 0.4s;
}

/* MySpace mode banner */
.myspace-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(90deg, #ff1493, #ff69b4, #ff00ff, #cc00ff, #ff1493);
  background-size: 300% 100%;
  animation: bannerGradient 3s linear infinite;
  padding: 6px 0;
  text-align: center;
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

@keyframes bannerGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

body.myspace-mode .myspace-banner {
  display: block;
}

/* Visitor counter */
.myspace-counter {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  background: #000;
  border: 3px solid #ff00ff;
  animation: rainbowBg 2s linear infinite;
  padding: 8px 14px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #ff69b4;
  text-align: center;
  border-radius: 0;
}

body.myspace-mode .myspace-counter {
  display: block;
}

/* ASCII art decorations */
.myspace-ascii {
  display: none;
  position: fixed;
  z-index: 9998;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  line-height: 1.1;
  color: #ff69b4;
  white-space: pre;
  opacity: 0.5;
  pointer-events: none;
}

.myspace-ascii-right {
  color: #00ffcc;
}

body.myspace-mode .myspace-ascii {
  display: block;
}

/* --- Override everything in MySpace mode --- */

body.myspace-mode {
  background: #120018 !important;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 0, 128, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(200, 0, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 105, 180, 0.05) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255, 0, 128, 0.02) 20px,
      rgba(255, 0, 128, 0.02) 21px
    ) !important;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', cursive !important;
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><text y='28' font-size='28'>💋</text></svg>") 4 4, auto !important;
  color: #ff69b4 !important;
}

body.myspace-mode a, body.myspace-mode button { cursor: pointer; }

/* Nav goes full 90s */
body.myspace-mode .nav {
  background: linear-gradient(180deg, #330066, #000033) !important;
  border-bottom: 3px solid;
  animation: rainbowBg 3s linear infinite;
  backdrop-filter: none !important;
  padding-top: 2rem;
}

body.myspace-mode .nav-logo {
  font-family: 'Comic Sans MS', cursive !important;
  font-size: 1.1rem !important;
  color: #ff00ff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  animation: rainbow 3s linear infinite;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

body.myspace-mode .nav-link {
  font-family: 'Comic Sans MS', cursive !important;
  font-size: 0.9rem !important;
  color: #00ffff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-shadow: 0 0 8px #00ffff;
}

body.myspace-mode .nav-link:hover {
  color: #ffff00 !important;
  text-shadow: 0 0 15px #ffff00;
}

body.myspace-mode .nav-link::after {
  background: #ff00ff !important;
  height: 2px !important;
}

/* Section labels */
body.myspace-mode .section-label {
  font-family: 'Comic Sans MS', cursive !important;
  color: #ff00ff !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.05em !important;
  text-shadow: 0 0 10px #ff00ff;
  animation: blink90s 1.2s step-end infinite;
}

body.myspace-mode .section-title {
  font-family: 'Comic Sans MS', cursive !important;
  animation: rainbow 2s linear infinite;
  text-shadow: 2px 2px 0 #000, 0 0 20px currentColor;
}

/* Carousel cards get gaudy borders */
body.myspace-mode .carousel-card-inner {
  border: 3px solid;
  animation: rainbowBg 2s linear infinite;
  border-radius: 0 !important;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.4), inset 0 0 20px rgba(0, 255, 255, 0.1);
}

body.myspace-mode .carousel-card-content {
  background: linear-gradient(to top, rgba(26, 0, 48, 0.95) 0%, rgba(51, 0, 102, 0.5) 50%, transparent 70%) !important;
  opacity: 1 !important;
}

body.myspace-mode .carousel-card-tag {
  background: #ff00ff !important;
  color: #fff !important;
  font-family: 'Comic Sans MS', cursive !important;
  border-radius: 0 !important;
  font-size: 0.7rem !important;
  backdrop-filter: none !important;
}

body.myspace-mode .carousel-card-title {
  font-family: 'Comic Sans MS', cursive !important;
  color: #00ffff !important;
  font-size: 1.1rem !important;
  text-shadow: 0 0 10px #00ffff;
}

body.myspace-mode .carousel-card-cta {
  color: #ffff00 !important;
  font-family: 'Comic Sans MS', cursive !important;
  text-shadow: 0 0 8px #ffff00;
}

/* Clients marquee — speed it up, make it rainbow */
body.myspace-mode .clients {
  background: linear-gradient(90deg, #330066, #000033, #003300, #330066) !important;
  border-color: #ff00ff !important;
  border-width: 2px !important;
}

body.myspace-mode .clients-track {
  font-family: 'Comic Sans MS', cursive !important;
  animation: marquee 10s linear infinite !important;
  font-size: 1rem !important;
  color: #ff69b4 !important;
  text-transform: none !important;
  text-shadow: 0 0 8px #ff69b4;
}

/* About section */
body.myspace-mode .about {
  background: rgba(51, 0, 102, 0.3);
  border-top: 2px dashed #ff00ff;
  border-bottom: 2px dashed #00ffff;
}

body.myspace-mode .about-portrait {
  border: 4px solid;
  animation: rainbowBg 2s linear infinite;
  border-radius: 0 !important;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
}

body.myspace-mode .about-text {
  color: #ffb6c1 !important;
  font-family: 'Comic Sans MS', cursive !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

body.myspace-mode .about-text em {
  color: #ff69b4 !important;
}

body.myspace-mode .about-awards-title {
  font-family: 'Comic Sans MS', cursive !important;
  color: #ffff00 !important;
  font-size: 0.85rem !important;
  animation: blink90s 1s step-end infinite;
}

body.myspace-mode .about-awards-list li {
  color: #ffb6c1 !important;
  font-family: 'Comic Sans MS', cursive !important;
}

body.myspace-mode .about-awards-list li::before {
  background: #ff00ff !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 0 !important;
}

/* Quote — make it dramatic */
body.myspace-mode .quote-section {
  background: linear-gradient(180deg, transparent, rgba(255, 0, 255, 0.1), transparent);
}

body.myspace-mode .quote p {
  font-family: 'Comic Sans MS', cursive !important;
  animation: rainbow 4s linear infinite;
  font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
  font-style: normal !important;
  text-shadow: 2px 2px 0 #000;
}

body.myspace-mode .quote cite {
  color: #ff69b4 !important;
  font-family: 'Comic Sans MS', cursive !important;
}

/* Contact — neon everything */
body.myspace-mode .contact-title {
  font-family: 'Comic Sans MS', cursive !important;
  animation: rainbow 2s linear infinite;
  text-shadow: 2px 2px 0 #000, 0 0 30px currentColor;
}

body.myspace-mode .contact-link {
  color: #00ffff !important;
  border-color: #00ffff !important;
  font-family: 'Comic Sans MS', cursive !important;
  font-size: 1.2rem !important;
  text-shadow: 0 0 15px #00ffff;
}

body.myspace-mode .contact-link:hover {
  color: #ff00ff !important;
  border-color: #ff00ff !important;
  text-shadow: 0 0 20px #ff00ff;
}

body.myspace-mode .contact-rep {
  color: #ffb6c1 !important;
  font-family: 'Comic Sans MS', cursive !important;
}

body.myspace-mode .contact-rep-name {
  color: #ffff00 !important;
  font-family: 'Comic Sans MS', cursive !important;
  text-shadow: 0 0 8px #ffff00;
}

/* Footer */
body.myspace-mode .footer {
  background: linear-gradient(180deg, transparent, #330066) !important;
  border-color: #ff00ff !important;
}

body.myspace-mode .footer-inner {
  font-family: 'Comic Sans MS', cursive !important;
  color: #ff69b4 !important;
}

body.myspace-mode .footer-name {
  font-family: 'Comic Sans MS', cursive !important;
  animation: rainbow 3s linear infinite;
}

/* Modal in MySpace mode */
body.myspace-mode .fullscreen-modal {
  background: #0a0020 !important;
}

body.myspace-mode .modal-close {
  border-color: #ff00ff !important;
  background: rgba(51, 0, 102, 0.8) !important;
}

body.myspace-mode .modal-credits-toggle {
  font-family: 'Comic Sans MS', cursive !important;
  border-color: #00ffff !important;
  background: rgba(0, 0, 51, 0.8) !important;
}

body.myspace-mode .modal-credits-panel .modal-tag {
  color: #ff00ff !important;
}

body.myspace-mode .modal-credits-panel .modal-title {
  font-family: 'Comic Sans MS', cursive !important;
  animation: rainbow 3s linear infinite;
}

/* Mobile menu */
body.myspace-mode .mobile-menu {
  background: rgba(26, 0, 48, 0.98) !important;
}

body.myspace-mode .mobile-link {
  font-family: 'Comic Sans MS', cursive !important;
  color: #00ffff !important;
  text-shadow: 0 0 10px #00ffff;
}

body.myspace-mode .mobile-link:hover {
  color: #ff00ff !important;
}

/* Scrollbar in MySpace mode */
body.myspace-mode::-webkit-scrollbar {
  width: 14px;
}

body.myspace-mode::-webkit-scrollbar-track {
  background: #1a0030;
}

body.myspace-mode::-webkit-scrollbar-thumb {
  background: linear-gradient(#ff00ff, #00ffff);
  border: 2px solid #1a0030;
}

/* Selection in MySpace mode */
body.myspace-mode ::selection {
  background: #ff00ff !important;
  color: #000 !important;
}

/* Stars background canvas */
#myspaceStarsCanvas {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

body.myspace-mode #myspaceStarsCanvas {
  display: block;
}

/* ---- INTENSITY LEVELS ---- */

/* Level 1: Comic Sans, pink/magenta — cute MySpace vibe */
/* (base .myspace-mode styles handle this) */

/* Level 2: Papyrus, teal/lime — geocities nature page */
body.myspace-level-2 {
  font-family: 'Papyrus', 'Herculanum', fantasy !important;
  background: #001a0a !important;
  background-image:
    radial-gradient(circle at 30% 70%, rgba(0, 255, 100, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(0, 200, 255, 0.08) 0%, transparent 40%) !important;
  color: #00ff88 !important;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4) !important;
}

body.myspace-level-2 .nav {
  background: linear-gradient(180deg, #002211, #001a33) !important;
  box-shadow: 0 2px 20px rgba(0, 255, 128, 0.3) !important;
  border-bottom-color: #00ff88 !important;
}

body.myspace-level-2 .nav-logo {
  font-family: 'Papyrus', fantasy !important;
  color: #00ffaa !important;
  animation: rainbow 5s linear infinite;
  text-shadow: 0 0 10px #00ffaa;
}

body.myspace-level-2 .nav-link {
  font-family: 'Papyrus', fantasy !important;
  color: #88ffcc !important;
  text-shadow: 0 0 8px #00ff88;
}

body.myspace-level-2 .section-label {
  font-family: 'Papyrus', fantasy !important;
  color: #00ff88 !important;
  text-shadow: 0 0 10px #00ff88;
}

body.myspace-level-2 .section-title {
  font-family: 'Papyrus', fantasy !important;
  text-shadow: 2px 2px 0 #000, 0 0 20px #00ffaa;
}

body.myspace-level-2 .carousel-card-inner {
  border-color: #00ff88 !important;
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.4) !important;
}

body.myspace-level-2 .carousel-card-tag {
  background: #00aa66 !important;
  font-family: 'Papyrus', fantasy !important;
}

body.myspace-level-2 .carousel-card-title {
  font-family: 'Papyrus', fantasy !important;
  color: #aaffdd !important;
  text-shadow: 0 0 10px #00ffaa;
}

body.myspace-level-2 .about-text {
  font-family: 'Papyrus', fantasy !important;
  color: #88ddbb !important;
}

body.myspace-level-2 .about {
  background: rgba(0, 51, 34, 0.3);
  border-top: 2px dashed #00ff88;
  border-bottom: 2px dashed #00ccff;
}

body.myspace-level-2 .about-portrait {
  border-color: #00ff88 !important;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

body.myspace-level-2 .clients {
  background: linear-gradient(90deg, #002211, #001133, #001a0a) !important;
  border-color: #00ff88 !important;
}

body.myspace-level-2 .clients-track {
  font-family: 'Papyrus', fantasy !important;
  color: #00ff88 !important;
  text-shadow: 0 0 8px #00ff88;
}

body.myspace-level-2 .myspace-banner {
  background: linear-gradient(90deg, #006644, #00aa88, #008866, #00cc99, #006644) !important;
  font-family: 'Papyrus', fantasy !important;
}

body.myspace-level-2 .contact-title {
  font-family: 'Papyrus', fantasy !important;
}

body.myspace-level-2 .contact-link {
  font-family: 'Papyrus', fantasy !important;
  color: #00ffaa !important;
  border-color: #00ffaa !important;
  text-shadow: 0 0 15px #00ffaa;
}

/* Level 3: Impact/bold, red/orange — under construction danger zone */
body.myspace-level-3 {
  font-family: Impact, 'Arial Black', 'Haettenschweiler', sans-serif !important;
  background: #1a0500 !important;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255, 80, 0, 0.06) 30px,
      rgba(255, 80, 0, 0.06) 31px
    ),
    radial-gradient(circle at 50% 50%, rgba(255, 60, 0, 0.15) 0%, transparent 50%) !important;
  color: #ff6600 !important;
  text-shadow: 0 0 12px rgba(255, 100, 0, 0.6) !important;
  animation: bgPulse 2s ease-in-out infinite !important;
}

body.myspace-level-3 .nav {
  background: linear-gradient(180deg, #330a00, #1a0500) !important;
  box-shadow: 0 2px 30px rgba(255, 80, 0, 0.5) !important;
  border-bottom-color: #ff4400 !important;
}

body.myspace-level-3 .nav-logo {
  font-family: Impact, 'Arial Black', sans-serif !important;
  color: #ff4400 !important;
  text-shadow: 0 0 10px #ff4400, 2px 2px 0 #000;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

body.myspace-level-3 .nav-link {
  font-family: Impact, 'Arial Black', sans-serif !important;
  color: #ffaa00 !important;
  text-shadow: 0 0 8px #ff8800;
  text-transform: uppercase !important;
}

body.myspace-level-3 .section-label {
  font-family: Impact, 'Arial Black', sans-serif !important;
  color: #ff4400 !important;
  text-shadow: 0 0 10px #ff4400;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
}

body.myspace-level-3 .section-title {
  font-family: Impact, 'Arial Black', sans-serif !important;
  text-shadow: 3px 3px 0 #000, 0 0 20px #ff6600;
  text-transform: uppercase !important;
}

body.myspace-level-3 .carousel-card-inner {
  border-color: #ff4400 !important;
  box-shadow: 0 0 30px rgba(255, 80, 0, 0.5) !important;
}

body.myspace-level-3 .carousel-card-tag {
  background: #cc3300 !important;
  font-family: Impact, sans-serif !important;
  text-transform: uppercase !important;
}

body.myspace-level-3 .carousel-card-title {
  font-family: Impact, 'Arial Black', sans-serif !important;
  color: #ffcc00 !important;
  text-shadow: 0 0 10px #ff8800;
  text-transform: uppercase !important;
}

body.myspace-level-3 .about-text {
  font-family: Impact, 'Arial Black', sans-serif !important;
  color: #dd8855 !important;
  font-weight: normal !important;
}

body.myspace-level-3 .about {
  background: rgba(51, 10, 0, 0.3);
  border-top: 3px solid #ff4400;
  border-bottom: 3px solid #ffaa00;
}

body.myspace-level-3 .about-portrait {
  border-color: #ff4400 !important;
  box-shadow: 0 0 30px rgba(255, 68, 0, 0.6);
  animation: portraitGlow3 1.5s ease-in-out infinite alternate !important;
}

body.myspace-level-3 .clients {
  background: linear-gradient(90deg, #330a00, #1a0500, #331100) !important;
  border-color: #ff4400 !important;
}

body.myspace-level-3 .clients-track {
  font-family: Impact, 'Arial Black', sans-serif !important;
  color: #ff6600 !important;
  text-shadow: 0 0 8px #ff4400;
  text-transform: uppercase !important;
}

body.myspace-level-3 .myspace-banner {
  background: linear-gradient(90deg, #cc3300, #ff6600, #ff4400, #ffaa00, #cc3300) !important;
  font-family: Impact, 'Arial Black', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

body.myspace-level-3 .contact-title {
  font-family: Impact, 'Arial Black', sans-serif !important;
  text-transform: uppercase !important;
}

body.myspace-level-3 .contact-link {
  font-family: Impact, 'Arial Black', sans-serif !important;
  color: #ff6600 !important;
  border-color: #ff6600 !important;
  text-shadow: 0 0 15px #ff4400;
  text-transform: uppercase !important;
}

/* Level 4: Courier/monospace, green-on-black — Matrix/hacker mode + MAXIMUM OVERDRIVE */
body.myspace-level-4 {
  font-family: 'Courier New', 'Lucida Console', monospace !important;
  background: #000a00 !important;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 0, 0.03) 2px,
      rgba(0, 255, 0, 0.03) 4px
    ) !important;
  color: #00ff00 !important;
  text-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 40px rgba(0, 255, 0, 0.6) !important;
}

body.myspace-level-4 .nav {
  background: rgba(0, 10, 0, 0.95) !important;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.4) !important;
  border-bottom-color: #00ff00 !important;
  animation: rainbowBorder 0.5s linear infinite !important;
}

body.myspace-level-4 .nav-logo {
  font-family: 'Courier New', monospace !important;
  color: #00ff00 !important;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
}

body.myspace-level-4 .nav-link {
  font-family: 'Courier New', monospace !important;
  color: #00cc00 !important;
  text-shadow: 0 0 8px #00ff00;
  text-transform: uppercase !important;
}

body.myspace-level-4 .section-label {
  font-family: 'Courier New', monospace !important;
  color: #00ff00 !important;
  text-shadow: 0 0 15px #00ff00;
  text-transform: uppercase !important;
  letter-spacing: 0.3em !important;
}

body.myspace-level-4 .section-title {
  font-family: 'Courier New', monospace !important;
  color: #00ff00 !important;
  text-shadow: 0 0 20px #00ff00, 0 0 40px #00cc00;
  text-transform: uppercase !important;
}

body.myspace-level-4 .carousel-card-inner {
  border-color: #00ff00 !important;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.5), 0 0 80px rgba(0, 255, 0, 0.2) !important;
  animation: cardPulse 0.3s ease-in-out infinite !important;
}

body.myspace-level-4 .carousel-card-tag {
  background: #003300 !important;
  border: 1px solid #00ff00 !important;
  font-family: 'Courier New', monospace !important;
  text-transform: uppercase !important;
  color: #00ff00 !important;
}

body.myspace-level-4 .carousel-card-title {
  font-family: 'Courier New', monospace !important;
  color: #00ff00 !important;
  text-shadow: 0 0 10px #00ff00;
  text-transform: uppercase !important;
}

body.myspace-level-4 .about-text {
  font-family: 'Courier New', monospace !important;
  color: #00cc00 !important;
}

body.myspace-level-4 .about {
  background: rgba(0, 20, 0, 0.4);
  border-top: 2px solid #00ff00;
  border-bottom: 2px solid #00ff00;
}

body.myspace-level-4 .about-portrait {
  border-color: #00ff00 !important;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.6);
  animation: portraitSpin 2s linear infinite !important;
}

body.myspace-level-4 .clients {
  background: rgba(0, 10, 0, 0.8) !important;
  border-color: #00ff00 !important;
}

body.myspace-level-4 .clients-track {
  font-family: 'Courier New', monospace !important;
  color: #00ff00 !important;
  text-shadow: 0 0 8px #00ff00;
  text-transform: uppercase !important;
}

body.myspace-level-4 .myspace-banner {
  background: #000 !important;
  border-bottom: 2px solid #00ff00 !important;
  font-family: 'Courier New', monospace !important;
  color: #00ff00 !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  animation: bannerShake 0.1s linear infinite !important;
}

body.myspace-level-4 .contact-title {
  font-family: 'Courier New', monospace !important;
  text-transform: uppercase !important;
}

body.myspace-level-4 .contact-link {
  font-family: 'Courier New', monospace !important;
  color: #00ff00 !important;
  border-color: #00ff00 !important;
  text-shadow: 0 0 15px #00ff00;
  text-transform: uppercase !important;
}

body.myspace-level-4 .section-label,
body.myspace-level-4 .section-title,
body.myspace-level-4 .contact-title {
  animation: textRainbow 1s linear infinite !important;
}

body.myspace-shake {
  animation: screenShake 0.15s linear infinite !important;
}

/* Level animations */
@keyframes bgPulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.1) saturate(1.3); }
}

@keyframes portraitGlow {
  from { box-shadow: 0 0 20px rgba(255, 105, 180, 0.4); }
  to { box-shadow: 0 0 40px rgba(255, 0, 255, 0.8); }
}

@keyframes portraitGlow3 {
  from { box-shadow: 0 0 20px rgba(255, 68, 0, 0.4); }
  to { box-shadow: 0 0 40px rgba(255, 120, 0, 0.8); }
}

@keyframes portraitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cardPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes screenShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
  100% { transform: translate(1px, 2px); }
}

@keyframes bannerShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(1px); }
}

@keyframes textRainbow {
  0% { color: #ff1493; }
  16% { color: #ff69b4; }
  33% { color: #ff00ff; }
  50% { color: #cc00ff; }
  66% { color: #ff69b4; }
  83% { color: #ff1493; }
  100% { color: #ff1493; }
}

@keyframes rainbowBorder {
  0% { border-color: #ff1493; }
  25% { border-color: #ff00ff; }
  50% { border-color: #cc00ff; }
  75% { border-color: #ff69b4; }
  100% { border-color: #ff1493; }
}
