/* ========================================
   THE WORKSHOP — Main Styles
   ======================================== */

:root {
  /* ══════════════════════════════════════════
     WORKSHOP FOUNDATION
     A warm, rich base that ties everything together
     ══════════════════════════════════════════ */

  /* Background - Aged workshop wood */
  --bg-deep: #0f0d0a;
  --bg-dark: #1a1714;
  --bg-medium: #252019;

  /* Shared accent - Aged brass (ties all doors together) */
  --brass: #b8956c;
  --brass-bright: #d4b896;
  --brass-dim: #8a7355;

  /* Text */
  --text-light: #f0ebe4;
  --text-muted: #9a9084;

  /* ══════════════════════════════════════════
     PROFESSIONAL DOOR - Machinist's Blueprint
     Steel blue-grey, like precision tools
     ══════════════════════════════════════════ */
  --pro-base: #1c2630;
  --pro-mid: #2a3a4a;
  --pro-accent: #6a9bc3;
  --pro-highlight: #8fbbd9;
  --pro-grid: #3d4f5f;

  /* ══════════════════════════════════════════
     MUSIC DOOR - Luthier's Corner
     Rich wood and amber varnish
     ══════════════════════════════════════════ */
  --music-base: #1f1610;
  --music-mid: #3d2a1a;
  --music-accent: #c9913a;
  --music-highlight: #e8b861;
  --music-warm: #5c3d24;

  /* ══════════════════════════════════════════
     GAMES DOOR - Cartographer's Desk
     Parchment and ink, warm and inviting
     ══════════════════════════════════════════ */
  --games-paper: #d9d0c1;
  --games-cream: #c4b9a6;
  --games-accent: #6b5344;
  --games-highlight: #8b4513;
  --games-ink: #2a2318;
  --games-red: #a63d2d;

  /* Fonts */
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-hand: 'Special Elite', cursive;
  --font-body: 'DM Sans', sans-serif;
}

/* ========================================
   BASE
   ======================================== */

body {
  background:
    radial-gradient(
      ellipse 120% 100% at 50% 0%,
      var(--bg-medium) 0%,
      var(--bg-dark) 40%,
      var(--bg-deep) 100%
    );
  background-attachment: fixed;
  color: var(--text-light);
  font-family: var(--font-body);
  min-height: 100vh;
}

/* Workshop grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   WORKSHOP INTERIOR
   ======================================== */

.workshop {
  min-height: 100vh;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

/* ========================================
   HEADER
   ======================================== */

.workshop-header {
  text-align: center;
  margin-bottom: 4rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 1rem;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ========================================
   DOORS GRID
   ======================================== */

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.door {
  position: relative;
  min-height: 450px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.door:hover {
  transform: translateY(-8px);
}

/* Brass corner accents on all doors */
.door::before,
.door::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--brass-dim);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.door::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.door::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.door:hover::before,
.door:hover::after {
  opacity: 1;
}

/* ========================================
   PROFESSIONAL DOOR - Machinist's Blueprint
   ======================================== */

.door-pro {
  background: linear-gradient(135deg, var(--pro-mid) 0%, var(--pro-base) 100%);
  border: 2px solid var(--pro-grid);
  display: flex;
  flex-direction: column;
}

.door-pro:hover {
  box-shadow: 0 20px 60px rgba(42, 58, 74, 0.6);
  border-color: var(--brass-dim);
}

.door-pro-link {
  flex: 1;
  position: relative;
  display: block;
}

.door-pro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--pro-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pro-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.door-pro-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  padding-bottom: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.door-cv-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--pro-accent);
  text-align: center;
  padding: 0.75rem 1rem;
  margin: 0 2rem 1.5rem 2rem;
  border: 1px solid var(--pro-accent);
  background: transparent;
  transition: all 0.2s;
  position: relative;
  z-index: 2;
}

.door-cv-link:hover {
  background: var(--pro-accent);
  color: var(--pro-base);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.pro-title {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.pro-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--pro-accent);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.pro-specs {
  flex: 1;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.8;
}

.pro-specs li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.spec-label {
  color: var(--pro-accent);
  margin-right: 0.5rem;
}

.pro-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.1em;
  padding-top: 1rem;
  border-top: 2px solid var(--pro-accent);
  margin-top: auto;
}

/* ========================================
   MUSIC DOOR - Luthier's Corner
   ======================================== */

.door-music {
  background: linear-gradient(135deg, var(--music-mid) 0%, var(--music-base) 100%);
  border: 2px solid var(--music-accent);
}

.door-music:hover {
  box-shadow: 0 20px 60px rgba(201, 145, 58, 0.4);
  border-color: var(--brass);
}

.music-vinyl {
  position: absolute;
  top: 1rem;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--music-base) 0%, var(--music-base) 15%, transparent 15%),
    repeating-radial-gradient(circle at center, var(--music-warm) 0px, var(--music-warm) 2px, var(--music-mid) 2px, var(--music-mid) 4px);
  opacity: 0.5;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.music-waveform {
  position: absolute;
  bottom: 50%;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 1rem;
  opacity: 0.4;
  transform: translateY(50%);
}

.wave-bar {
  width: 6px;
  background: var(--music-accent);
  border-radius: 2px 2px 0 0;
  animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 30px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 60px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 45px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 55px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 25px; animation-delay: 0.7s; }
.wave-bar:nth-child(9) { height: 40px; animation-delay: 0.8s; }
.wave-bar:nth-child(10) { height: 65px; animation-delay: 0.9s; }
.wave-bar:nth-child(11) { height: 35px; animation-delay: 1s; }
.wave-bar:nth-child(12) { height: 20px; animation-delay: 1.1s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.music-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.music-hobby {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--music-highlight);
  letter-spacing: 0.2em;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--music-highlight);
  border-radius: 2px;
  margin-bottom: 1rem;
  width: fit-content;
}

.music-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.music-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--music-highlight);
  margin-bottom: 2rem;
}

.music-bands {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.band {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.8;
  padding-left: 1rem;
  border-left: 2px solid var(--music-accent);
}

.music-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--music-highlight);
  letter-spacing: 0.1em;
  margin-top: auto;
  padding-top: 1rem;
}

.status-icon {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ========================================
   GAMES DOOR - Cartographer's Desk
   ======================================== */

.door-games {
  background: var(--games-paper);
  border: 2px solid var(--games-cream);
  color: var(--games-ink);
}

.door-games:hover {
  box-shadow: 0 20px 60px rgba(42, 35, 24, 0.3);
  border-color: var(--brass-dim);
}

.games-paper {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 79px, var(--games-cream) 79px, var(--games-cream) 81px, transparent 81px),
    linear-gradient(var(--games-cream) 1px, transparent 1px);
  background-size: 100% 24px;
}

.games-grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--games-accent) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.games-dice {
  position: absolute;
  font-size: 3rem;
  color: var(--games-ink);
  opacity: 0.15;
  user-select: none;
}

.dice-1 {
  top: 10%;
  right: 15%;
  transform: rotate(15deg);
}

.dice-2 {
  bottom: 25%;
  left: 10%;
  transform: rotate(-20deg);
}

.games-spinner {
  position: absolute;
  bottom: 15%;
  right: 10%;
  width: 50px;
  height: 50px;
  border: 3px solid var(--games-accent);
  border-radius: 50%;
  opacity: 0.2;
}

.games-spinner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 20px;
  background: var(--games-red);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(45deg);
}

.games-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.games-hobby {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--games-red);
  transform: rotate(-2deg);
  margin-bottom: 0.5rem;
}

.games-title {
  font-family: var(--font-hand);
  font-size: 3.5rem;
  color: var(--games-ink);
  margin-bottom: 0.25rem;
  transform: rotate(-1deg);
}

.games-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--games-accent);
  margin-bottom: 2rem;
}

.games-projects {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--games-ink);
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--games-accent);
}

.games-note {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--games-accent);
  margin-top: auto;
  padding-top: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */

.workshop-footer {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.footer-links a:hover {
  color: var(--text-light);
  border-color: var(--text-light);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .workshop {
    padding: 2rem 1rem;
  }

  .doors {
    gap: 1.5rem;
  }

  .door {
    min-height: 380px;
  }

  .door-window {
    grid-template-columns: repeat(4, 40px);
  }

  .music-vinyl {
    width: 100px;
    height: 100px;
    right: -20px;
  }
}
