/* ============================================================
   STYLE.CSS — Core styles for Ali Housseny Portfolio
   Palette: Dark amber cinematic room aesthetic
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Palette */
  --clr-bg:          #0d0a07;
  --clr-wall:        #1a1208;
  --clr-wall-tex:    #251a0e;
  --clr-desk:        #3d2b1a;
  --clr-desk-top:    #5c3d22;
  --clr-amber:       #c87941;
  --clr-amber-deep:  #8b4f1e;
  --clr-amber-glow:  #e8923a;
  --clr-amber-soft:  rgba(200, 121, 65, 0.15);
  --clr-neon:        #ffb347;
  --clr-neon-glow:   rgba(255, 179, 71, 0.6);

  /* Paper / card colors */
  --clr-paper:       #f0e6d3;
  --clr-paper-warm:  #e8d5b5;
  --clr-paper-dark:  #1e150a;
  --clr-paper-text:  #2a1f12;

  /* Sticky note colors */
  --clr-sticky-y:    #ffd966;
  --clr-sticky-p:    #ff9eaa;
  --clr-sticky-g:    #a8e6cf;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'Fira Code', 'Courier New', monospace;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 30px rgba(200, 121, 65, 0.25);

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font-body);
  background: #000;
  color: var(--clr-paper);
  overflow: hidden;
  width: 100%;
  height: 100%;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ── Particle Canvas ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-8);
  background: linear-gradient(to bottom, rgba(13,10,7,0.95) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-amber-glow);
}
.nav__logo-bracket { color: var(--clr-amber); opacity: 0.7; }
.nav__logo-name { color: var(--clr-neon); margin: 0 var(--sp-1); }

.nav__links {
  display: flex;
  gap: var(--sp-8);
}
.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 230, 211, 0.6);
  transition: color var(--transition-base);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--clr-neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.nav__link:hover { color: var(--clr-neon); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--clr-amber-glow);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ============================================================
   ROOM — Main hero container
============================================================ */
.room {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* photo-room wraps the image + hotspots, fills the full viewport */
.photo-room {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

/* Main image — covers 100% with no black bars */
.photo-room__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* Hotspot layer — full viewport */
.photo-room__hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.room__ceiling,
.room__wall,
.room__desk,
.desk__led-ambient {
  display: none;
}

.room-hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transform: translateZ(0);
  transition: background 0.2s ease;
}



.room-hotspot:focus-visible {
  outline: 2px solid rgba(255, 179, 71, 0.95);
  outline-offset: 3px;
  box-shadow: 0 0 24px rgba(255, 179, 71, 0.45);
}

/* ── Hotspot positions calibrated to new 16:9 room.jpg ── */

/* Neon sign "Ali Housseny | Software Engineer" — top center */
.room-hotspot--neon             { left: 38.0%; top: 3.0%;  width: 24.0%; height: 13.0%; }

/* Code sign "</ >" top left */
.room-hotspot--code-sign        { left: 19.5%; top: 3.5%;  width: 7.5%;  height: 12.5%; }

/* System Architecture — top, left of neon */
.room-hotspot--top-architecture { left: 27.5%; top: 2.5%;  width: 10.0%; height: 16.0%; }

/* Quote card top right */
.room-hotspot--quote            { left: 63.5%; top: 3.5%;  width: 10.5%; height: 13.5%; }

/* Skills board (dark board, left side) */
.room-hotspot--skills-board     { left: 18.5%; top: 19.0%; width: 8.5%;  height: 22.0%; }

/* About Me paper */
.room-hotspot--about-paper      { left: 27.5%; top: 19.5%; width: 8.5%;  height: 19.5%; }

/* Skills paper */
.room-hotspot--skills-paper     { left: 36.5%; top: 19.5%; width: 9.0%;  height: 20.0%; }

/* Projects paper (wide) */
.room-hotspot--projects-paper   { left: 45.5%; top: 19.5%; width: 18.5%; height: 20.5%; }

/* Experience paper */
.room-hotspot--experience-paper { left: 64.5%; top: 19.5%; width: 9.5%;  height: 20.0%; }

/* Contact paper */
.room-hotspot--contact-paper    { left: 74.5%; top: 19.5%; width: 8.5%;  height: 19.5%; }

/* Certificate (lower left) */
.room-hotspot--certificate      { left: 19.5%; top: 43.5%; width: 9.5%;  height: 13.5%; }

/* Lower system architecture diagram */
.room-hotspot--lower-architecture { left: 27.0%; top: 41.0%; width: 14.0%; height: 17.5%; }

/* Note to self */
.room-hotspot--note-self        { left: 42.0%; top: 43.5%; width: 6.5%;  height: 15.5%; }

/* API endpoints paper */
.room-hotspot--api-paper        { left: 48.5%; top: 43.5%; width: 9.0%;  height: 15.5%; }

/* UI/UX Wireframe */
.room-hotspot--wireframe        { left: 57.5%; top: 43.5%; width: 9.5%;  height: 15.0%; }

/* GitHub contributions */
.room-hotspot--github           { left: 67.5%; top: 42.5%; width: 14.0%; height: 13.0%; }

/* Database / lower architecture (bottom wall center-left) */
.room-hotspot--database         { left: 27.5%; top: 58.5%; width: 10.0%; height: 14.5%; }

/* Achievements card (right side lower) */
.room-hotspot--achievements     { left: 68.5%; top: 56.5%; width: 9.5%;  height: 13.5%; }

/* Headphones / music (far right shelf) */
.room-hotspot--headphones       { left: 84.5%; top: 30.0%; width: 7.0%;  height: 16.0%; }

/* Phone / clock widget on the desk */
.room-hotspot--phone            { left: 25.0%; top: 62.0%; width: 4.5%;  height: 12.0%; }

/* ── Ceiling ── */
.room__ceiling {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, #0a0805 0%, transparent 100%);
  z-index: 2;
  display: flex;
  justify-content: center;
}

.room__ceiling-lamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}
.room__lamp-cord {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, #1a1208 0%, #3a2a18 100%);
}
.room__lamp-bulb {
  width: 14px; height: 20px;
  background: radial-gradient(ellipse at 50% 30%, #fff8d0 0%, #e8923a 50%, #7a4010 100%);
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 0 20px 10px rgba(232, 146, 58, 0.5);
}
.room__lamp-glow {
  width: 200px; height: 100px;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,146,58,0.2) 0%, transparent 70%);
  margin-top: -4px;
}

/* ── WALL ── */
.room__wall {
  position: relative;
  width: 100%;
  max-width: 1400px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 90px var(--sp-8) var(--sp-8);

  /* Textured concrete wall */
  background:
    radial-gradient(ellipse at 50% 20%, rgba(200,121,65,0.08) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.01) 2px,
      rgba(255,255,255,0.01) 4px
    ),
    var(--clr-wall-tex);
  border-radius: 0 0 8px 8px;
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.6),
    inset 0 0 200px rgba(0,0,0,0.3);
}

/* ── Neon Sign ── */
.wall__neon-sign {
  text-align: center;
  margin-bottom: var(--sp-8);
  padding: var(--sp-4) var(--sp-12);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.neon-sign__inner {
  background: #0f0907;
  border: 2px solid rgba(255,179,71,0.4);
  border-radius: 4px;
  padding: var(--sp-4) var(--sp-12);
  box-shadow:
    0 0 30px rgba(255,179,71,0.3),
    inset 0 0 20px rgba(0,0,0,0.8),
    0 4px 20px rgba(0,0,0,0.8);
  position: relative;
}
.neon-sign__inner::before,
.neon-sign__inner::after {
  content: '';
  position: absolute;
  top: 6px; bottom: 6px; left: 6px; right: 6px;
  border: 1px solid rgba(255,179,71,0.15);
  border-radius: 2px;
  pointer-events: none;
}
.neon-sign__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  text-shadow:
    0 0 10px var(--clr-neon-glow),
    0 0 30px var(--clr-neon-glow),
    0 0 60px rgba(255,179,71,0.4);
  line-height: 1.2;
}
.neon-sign__title {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--clr-amber-glow);
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(200,121,65,0.8);
  margin-top: var(--sp-2);
  min-height: 1.5em;
}

/* Ceiling spot-lights above the sign */
.wall__neon-sign::after {
  content: '';
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,200,100,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Cards Grid ── */
.wall__cards-grid {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.wall__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* ── Bottom Row ── */
.wall__bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-2);
}

/* ── Sticky Notes on Wall ── */
.wall__stickies {
  position: absolute;
  pointer-events: none;
}
.sticky {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.6;
  padding: var(--sp-3) var(--sp-3);
  width: 80px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.sticky--yellow { background: var(--clr-sticky-y); color: #5a4200; top: 120px; left: -110px; }
.sticky--pink   { background: var(--clr-sticky-p); color: #6b1525; top: 80px;  right: -110px; }
.sticky--green  { background: var(--clr-sticky-g); color: #1a4a35; top: 240px; right: -110px; }
.sticky--rot-neg  { transform: rotate(-3deg); }
.sticky--rot-pos  { transform: rotate(2.5deg); }
.sticky--rot-neg2 { transform: rotate(-5deg); }
.sticky--rot-pos2 { transform: rotate(4deg); }

/* ============================================================
   WALL CARDS (portfolio sections)
============================================================ */
.wall-card {
  position: relative;
  padding: var(--sp-4);
  min-height: 180px;
  border-radius: 2px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition-base);
  overflow: visible;
}

/* Paper variant */
.wall-card--paper {
  background: var(--clr-paper);
  color: var(--clr-paper-text);
}

/* Dark variant */
.wall-card--dark {
  background: var(--clr-paper-dark);
  color: var(--clr-paper);
  border: 1px solid rgba(200,121,65,0.2);
}

/* Wide variant (projects) */
.wall-card--wide {
  min-height: 260px;
}

/* Small variant */
.wall-card--sm {
  min-height: 140px;
}

/* Hover state */
.wall-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow:
    var(--shadow-card),
    0 12px 40px rgba(0,0,0,0.4),
    var(--shadow-glow);
}
.wall-card:focus-visible {
  outline: 2px solid var(--clr-neon);
  outline-offset: 4px;
}

/* Pins */
.wall-card__pin {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e0c070, #8b6020);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5), inset 0 -1px 1px rgba(0,0,0,0.3);
  z-index: 2;
}
.wall-card__pin--tl { top: -4px; left: 12px; }
.wall-card__pin--tr { top: -4px; right: 12px; }
.wall-card__pin--bl { bottom: -4px; left: 12px; }
.wall-card__pin--br { bottom: -4px; right: 12px; }

/* Card header */
.wall-card__header { margin-bottom: var(--sp-3); }
.wall-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
  display: block;
  margin-bottom: var(--sp-1);
}
.wall-card--paper .wall-card__eyebrow { color: var(--clr-amber-deep); }
.wall-card--dark  .wall-card__eyebrow { color: var(--clr-amber); }

.wall-card__title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid;
  padding-bottom: var(--sp-2);
}
.wall-card--paper .wall-card__title { border-color: rgba(42,31,18,0.2); color: var(--clr-paper-text); }
.wall-card--dark  .wall-card__title { border-color: rgba(200,121,65,0.3); color: var(--clr-amber-glow); }

/* Card body (preview content) */
.wall-card__body {
  font-size: 0.72rem;
  line-height: 1.6;
  opacity: 0.85;
}
.wall-card--paper .wall-card__body { color: var(--clr-paper-text); }
.wall-card--dark  .wall-card__body { color: rgba(240,230,211,0.8); }

/* Sticky note on card */
.wall-card__sticky {
  position: absolute;
  bottom: 10px; right: -6px;
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  transform: rotate(3deg);
  box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  line-height: 1.4;
}
.wall-card__sticky--yellow {
  background: var(--clr-sticky-y);
  color: #5a4200;
}

/* ============================================================
   DESK AREA
============================================================ */
.room__desk {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  align-items: end;
  min-height: 280px;
}

/* ── Shelves (left/right of desk) ── */
.room__shelf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  height: 100%;
}

/* Edison bulb */
.shelf__lamp--edison {
  width: 18px; height: 24px;
  background: radial-gradient(ellipse at 50% 40%, #fff8d0 0%, #e8923a 60%, #7a4010 100%);
  border-radius: 50% 50% 30% 30%;
  box-shadow: 0 0 20px 8px rgba(232,146,58,0.6), 0 0 40px 10px rgba(232,146,58,0.2);
}
.shelf__books {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}
.book {
  border-radius: 1px 1px 0 0;
}
.book--dark  { width: 12px; height: 55px; background: #1a1208; }
.book--amber { width: 10px; height: 40px; background: var(--clr-amber-deep); }
.book--rust  { width: 11px; height: 48px; background: #7a2e1a; }
.book--tall  { height: 65px !important; }
.shelf__plant {
  width: 30px; height: 35px;
  background: radial-gradient(ellipse at 50% 80%, #1a3a1a 0%, #2d5a2d 60%, #1a3a1a 100%);
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 4px 0 #3d2b1a;
}

/* ── Main Desk Surface ── */
.desk__surface {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: linear-gradient(to bottom, var(--clr-desk-top) 0%, var(--clr-desk) 100%);
  border-top: 3px solid rgba(255,200,100,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 -4px 20px rgba(0,0,0,0.5),
    0 4px 40px rgba(0,0,0,0.8);
  min-height: 180px;
  border-radius: 2px 2px 0 0;
  position: relative;
  overflow: visible;
}
/* Wood grain effect */
.desk__surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    88deg,
    transparent 0px,
    rgba(0,0,0,0.03) 1px,
    transparent 2px,
    transparent 8px
  );
  pointer-events: none;
  border-radius: inherit;
}

/* ── Left desk items ── */
.desk__left-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  min-width: 80px;
}

/* Desk lamp */
.desk__lamp { position: relative; margin-bottom: var(--sp-2); }
.lamp__arm {
  width: 3px; height: 60px;
  background: linear-gradient(to top, #222 0%, #444 100%);
  transform: rotate(-15deg);
  transform-origin: bottom center;
  border-radius: 2px;
}
.lamp__head {
  position: absolute;
  top: 0; left: -8px;
  width: 20px; height: 10px;
  background: #333;
  border-radius: 50% 50% 0 0;
  transform: rotate(-15deg);
}
.lamp__glow {
  position: absolute;
  top: 8px; left: -20px;
  width: 50px; height: 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,230,150,0.3) 0%, transparent 70%);
  pointer-events: none;
}

/* Stacked books on desk */
.desk__books-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.book--flat {
  width: 60px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Small plant */
.desk__plant--small {
  width: 28px; height: 32px;
  background: radial-gradient(ellipse at 40% 70%, #1a3a1a, #3a6a3a);
  border-radius: 50% 60% 30% 40%;
  box-shadow: 0 4px 0 var(--clr-desk);
}

/* Mugs */
.desk__mug {
  width: 28px; height: 32px;
  border-radius: 3px 3px 5px 5px;
  position: relative;
}
.desk__mug--black { background: #111; }
.desk__mug--code {
  background: #111;
  width: 38px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mug__text {
  font-family: var(--font-mono);
  font-size: 0.32rem;
  color: var(--clr-amber-glow);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

/* ── Monitors ── */
.desk__monitors {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-end;
  flex: 1;
  justify-content: center;
}
.monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.monitor__screen {
  width: 280px; height: 170px;
  background: #0a0e1a;
  border: 6px solid #1a1a1a;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  position: relative;
}
.monitor__screen--scene { background: #0a0614; }

/* Code on left monitor */
.monitor__code-content {
  padding: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.7;
}
.code-keyword { color: #c792ea; }
.code-var     { color: #82aaff; }
.code-key     { color: #f07178; }
.code-str     { color: #c3e88d; }
.code-fn      { color: #82aaff; }
.code-indent  { padding-left: 1em; }
.code-cursor  {
  color: #fff;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Scene on right monitor */
.monitor__scene-content {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}
.monitor__scene-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #0a0614 0%, #1a0824 30%, #4a1830 55%, #c43830 75%, #e87820 90%, #ffa040 100%);
}
.monitor__scene-sun {
  position: absolute;
  bottom: 38%; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 24px;
  background: radial-gradient(circle, #fff8d0 0%, #ffa040 60%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px 10px rgba(255,160,64,0.4);
}
.monitor__scene-mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background:
    polygon(0% 100%, 20% 40%, 40% 70%, 60% 20%, 80% 50%, 100% 100%);
  clip-path: polygon(0% 100%, 15% 45%, 30% 65%, 50% 20%, 70% 55%, 85% 35%, 100% 60%, 100% 100%);
  background-color: #0a1a0a;
}
.monitor__scene-tree {
  position: absolute;
  bottom: 22%; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 30px;
  background: #0a0a0a;
}
.monitor__scene-tree::before,
.monitor__scene-tree::after {
  content: '';
  position: absolute;
  bottom: 100%; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid #0f1a0f;
}
.monitor__scene-tree::before { bottom: 12px; border-bottom-width: 16px; }

.monitor__stand {
  width: 20px; height: 30px;
  background: linear-gradient(to bottom, #1a1a1a, #111);
}
.monitor__base {
  width: 60px; height: 8px;
  background: #111;
  border-radius: 2px;
}
.monitor__glow {
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 30px;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,50,120,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.monitor__glow--warm {
  background: radial-gradient(ellipse at 50% 0%, rgba(255,100,30,0.35) 0%, transparent 70%);
}

/* ── Keyboard area ── */
.desk__keyboard-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
}
.desk__mousepad {
  position: absolute;
  bottom: var(--sp-2);
  left: 50%;
  transform: translateX(-50%);
  width: 260px; height: 100px;
  background: #0f0a06;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.04);
}
.desk__keyboard {
  width: 220px; height: 60px;
  background: #1a1208;
  border-radius: 4px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}
.keyboard__rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
}
.keyboard__row {
  flex: 1;
  background: linear-gradient(to bottom, #222 0%, #1a1a1a 100%);
  border-radius: 2px;
  display: flex;
  gap: 2px;
}
.keyboard__row--fn { flex: 0.7; }
.keyboard__row--space { justify-content: center; }
.keyboard__led-strip {
  position: absolute;
  bottom: -3px; left: 10px; right: 10px;
  height: 2px;
  background: linear-gradient(to right, #ff4444, #ff8800, #ffff00, #00ff44, #0088ff, #8800ff);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(255,100,0,0.8);
}
.desk__mouse {
  position: absolute;
  bottom: var(--sp-3);
  right: calc(50% - 140px);
  width: 22px; height: 30px;
  background: #1a1208;
  border-radius: 11px 11px 8px 8px;
  border: 1px solid rgba(255,255,255,0.05);
  z-index: 1;
}

/* ── Right desk items ── */
.desk__right-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  min-width: 80px;
}

/* Lantern */
.desk__lantern { position: relative; }
.lantern__body {
  width: 22px; height: 32px;
  background: linear-gradient(to bottom, #3a3010, #2a2008);
  border-radius: 4px;
  border: 1px solid rgba(200,150,50,0.3);
}
.lantern__glow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(ellipse, rgba(200,150,50,0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: lanternFlicker 3s ease-in-out infinite;
}

/* Phone */
.desk__phone {
  width: 22px; height: 40px;
  background: #111;
  border-radius: 4px;
  border: 2px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__screen {
  width: 16px; height: 28px;
  background: radial-gradient(ellipse at 50% 50%, #1a3050 0%, #0a1020 100%);
  border-radius: 2px;
}

/* Right plant */
.desk__plant--right {
  width: 32px; height: 38px;
  background: radial-gradient(ellipse at 40% 60%, #1a3a1a, #2d5a2d);
  border-radius: 40% 60% 30% 50%;
  box-shadow: 0 4px 0 var(--clr-desk);
}

/* ── PC Tower ── */
.desk__pc-tower {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pc__body {
  width: 55px; height: 100px;
  background: linear-gradient(to right, #0f0f0f, #1a1a1a);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pc__ring-light {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(#0f0f0f, #0f0f0f) padding-box,
              linear-gradient(90deg, #00bfff, #8800ff, #00bfff) border-box;
  box-shadow: 0 0 12px rgba(0,191,255,0.5), inset 0 0 8px rgba(0,191,255,0.2);
  animation: rgbSpin 4s linear infinite;
}
.pc__rgb-strip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #00bfff, #8800ff, #ff4400, #00bfff);
  animation: rgbScroll 3s linear infinite;
}
.pc__fan {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 50%, #333, #111);
  border: 1px solid #444;
}

/* Headphones on right shelf */
.shelf__headphones {
  width: 36px; height: 36px;
  border: 4px solid #333;
  border-radius: 50%;
  position: relative;
}
.shelf__headphones::before,
.shelf__headphones::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 10px; height: 12px;
  background: #222;
  border-radius: 0 0 4px 4px;
}
.shelf__headphones::before { left: -2px; }
.shelf__headphones::after  { right: -2px; }

.shelf__clock {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #111;
  border: 3px solid #2a2a2a;
}

/* ── LED ambient strip under monitors ── */
.desk__led-ambient {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 4px;
  background: linear-gradient(to right,
    rgba(200,121,65,0.1),
    rgba(255,179,71,0.8) 20%,
    rgba(255,200,100,1) 50%,
    rgba(255,179,71,0.8) 80%,
    rgba(200,121,65,0.1)
  );
  filter: blur(2px);
  box-shadow: 0 0 20px rgba(255,179,71,0.6), 0 2px 40px rgba(255,150,50,0.4);
  pointer-events: none;
}

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  position: relative;
  background: var(--clr-paper);
  color: var(--clr-paper-text);
  border-radius: 3px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--sp-8);
  box-shadow:
    0 20px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(200,121,65,0.2);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);

  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--clr-amber-deep) transparent;
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--clr-amber-deep); border-radius: 2px; }

.modal__close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  color: var(--clr-paper-text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), transform var(--transition-base);
}
.modal__close:hover { background: rgba(0,0,0,0.2); transform: rotate(90deg); }

/* Modal content styles (injected by JS) */
.modal__content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid rgba(42,31,18,0.15);
  color: var(--clr-paper-text);
}
.modal__content p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

/* About modal */
.modal-about__bio { font-size: 0.95rem; line-height: 1.9; }
.modal-about__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.modal-about__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--clr-paper-text);
  color: var(--clr-paper);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: transform var(--transition-base), background var(--transition-base);
}
.modal-about__link:hover {
  background: var(--clr-amber-deep);
  transform: translateY(-2px);
}

/* Skills modal */
.modal-skills__categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.skill-category__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-amber-deep);
  margin-bottom: var(--sp-3);
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(42,31,18,0.08);
  border: 1px solid rgba(42,31,18,0.15);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin: 0 4px 6px 0;
  transition: background var(--transition-base), transform var(--transition-base);
}
.skill-tag:hover {
  background: rgba(42,31,18,0.15);
  transform: translateY(-1px);
}
.skill-tag__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-amber-deep);
}

/* Projects modal */
.project-card {
  border: 1px solid rgba(42,31,18,0.15);
  border-radius: 3px;
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  transition: border-color var(--transition-base);
}
.project-card:hover { border-color: rgba(42,31,18,0.35); }
.project-card__name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--clr-paper-text);
}
.project-card__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: var(--sp-3);
  opacity: 0.85;
}
.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.stack-tag {
  padding: 2px 8px;
  background: var(--clr-paper-text);
  color: var(--clr-paper);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* Experience modal */
.experience-item {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-6);
  border-left: 2px solid rgba(42,31,18,0.2);
}
.experience-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-amber-deep);
}
.experience-item__role {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.experience-item__company {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--clr-amber-deep);
  margin-bottom: var(--sp-2);
}
.experience-item__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.5;
  margin-bottom: var(--sp-3);
}
.experience-item__points {
  list-style: disc;
  padding-left: var(--sp-4);
  font-size: 0.85rem;
  line-height: 1.7;
}
.experience-item__points li { margin-bottom: var(--sp-2); }

/* Contact modal */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: rgba(42,31,18,0.06);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: background var(--transition-base);
}
.contact-item:hover { background: rgba(42,31,18,0.12); }
.contact-item__icon { font-size: 1.1rem; flex-shrink: 0; }

/* Cert modal */
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid rgba(42,31,18,0.15);
  border-radius: 3px;
  margin-bottom: var(--sp-3);
}
.cert-item__badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--clr-amber-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cert-item__name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.cert-item__issuer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-amber-deep);
}

/* Arch modal */
.arch-diagram {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
  background: var(--clr-paper-dark);
  color: var(--clr-paper);
  padding: var(--sp-4);
  border-radius: 3px;
  overflow-x: auto;
}
.arch-diagram span { color: var(--clr-amber-glow); }

/* GitHub preview */
.github-preview-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: var(--clr-paper-text);
  color: var(--clr-paper);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: var(--sp-4);
  transition: background var(--transition-base), transform var(--transition-base);
}
.github-preview-link:hover {
  background: var(--clr-amber-deep);
  transform: translateY(-2px);
}

.spotify-player {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(42,31,18,0.15);
  background: #121212;
  margin: var(--sp-4) 0 var(--sp-6);
}

.spotify-player iframe {
  display: block;
  border: 0;
}

/* Stat row in github */
.github-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}
.github-stat {
  text-align: center;
  padding: var(--sp-4);
  background: rgba(42,31,18,0.06);
  border-radius: 3px;
}
.github-stat__number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--clr-amber-deep);
}
.github-stat__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 4px;
}

/* Keep the photographed room as the only visible home scene. */
.room__ceiling,
.room__wall,
.room__desk,
.desk__led-ambient {
  display: none;
}

/* ============================================================
   PHONE CLOCK OVERLAY
============================================================ */
.phone-clock {
  position: absolute;
  z-index: 5;
  left: 21.09%;
  top: 68.82%;
  width: 8.20%;
  height: 9.35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: 2px;
  background: transparent;
}

.phone-clock__time {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 1.2vw, 1.1rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(120, 200, 255, 0.9), 0 0 20px rgba(120,200,255,0.4);
  letter-spacing: 0.08em;
  line-height: 1;
}

.phone-clock__date {
  font-family: var(--font-mono);
  font-size: clamp(0.28rem, 0.65vw, 0.55rem);
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 8px rgba(120, 200, 255, 0.7);
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}