/* ==========================================================================
   MERT ÖZKARDEŞ — LIBRARY WORKSTATIONS PORTFOLIO
   Oxford Rhodes House Library & Speech Hall Architecture
   Left Column: Integrated 3D Mahogany Bookcase Cabinet Unit
   Right Column: Oxford Speech Hall & Campfire Coffee Lounge (Default Landing)
   ========================================================================== */

:root {
  --bg-color: #0E0B08;
  --panel-bg: #14100C;
  --text-main: #F4F4F6;
  --text-muted: #9E9B98;
  --accent: #D4A373; /* Warm Amber Gold */
  --accent-bright: #F5C87A;
  --border: transparent;
  
  /* Wood & Room Palette (Harmonized with Oxford Podium) */
  --wood-dark: #120D08;
  --wood-mid: #2A1C12;
  --wood-top: #3D291A;
  --wood-border: #5C3D26;
  --brass-border: #D4A054;
  --brass-bg: #2B1E13;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-sans: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

/* CUSTOM SCROLLBAR (WHITE THUMB + TRANSPARENT TRACK BACKGROUND) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  transition: background 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFFFFF;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* UNIFIED ROOM CONTAINER (OXFORD SPEECH HALL) */
.portfolio-container {
  display: grid;
  grid-template-columns: max-content 1fr;
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  perspective: 1200px;
  background-color: var(--bg-color);
  /* Unified Oxford Hall Ambient Wall & Lighting Gradient */
  background-image: 
    radial-gradient(circle at 75% 30%, rgba(0, 102, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 50%, rgba(158, 97, 43, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(14, 11, 8, 0.95) 40%, rgba(14, 11, 8, 0.98) 100%);
  position: relative;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: INTEGRATED 3D LIBRARY BOOKCASE ALCOVE
   -------------------------------------------------------------------------- */
.left-col.bookcase-seamless {
  background: transparent;
  border-right: none;
  padding: 1.8rem 1.1rem 0 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  max-height: 100vh;
  width: max-content;
  min-width: 240px;
  max-width: 280px;
  overflow: visible;
  transform-style: preserve-3d;
  z-index: 10;
  position: relative;
}

/* MAHOGANY BOOKCASE CABINET STRUCTURE */
.bookcase-cabinet {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  flex: 1;
  gap: 0;
  margin: 0.4rem 0 0 0;
  border-left: 8px solid #5C3D26;
  border-right: 8px solid #5C3D26;
  border-top: 6px solid #7D491C;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 0 0.3rem;
  background: transparent;
  box-shadow: none;
  transform-style: preserve-3d;
  position: relative;
}

.bookcase-cabinet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-left: 2px solid #9E612B;
  border-right: 2px solid #3B200C;
  pointer-events: none;
}

.shelf-tier {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  text-align: left;
  position: relative;
  user-select: none;
  outline: none;
  width: 100%;
  transform-style: preserve-3d;
  transform: none !important;
}

.shelf-books-row {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  height: 54px;
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transform: none !important;
}

.book-spine {
  flex: 1;
  height: var(--h, 48px);
  border-radius: 3px 3px 0 0;
  position: relative;
  transform-style: preserve-3d;
  background-image: linear-gradient(90deg, 
    rgba(255,255,255,0.22) 0%, 
    transparent 30%, 
    rgba(0,0,0,0.2) 70%, 
    rgba(0,0,0,0.6) 100%);
  box-shadow: -2px 0 4px rgba(0,0,0,0.5), 3px 4px 8px rgba(0,0,0,0.6);
  transition: filter 0.3s ease;
}

.book-spine::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 1px;
  right: 1px;
  height: 3px;
  background: #EAE1D0;
  border-radius: 1px 1px 0 0;
}

.book-spine::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #D4A054, #F5C87A, #B38236);
}

.spine-burgundy { background-color: #6B2329; border-top: 2px solid #9E323A; }
.spine-navy     { background-color: #1C2B42; border-top: 2px solid #2C4263; }
.spine-leather  { background-color: #8A5435; border-top: 2px solid #B06C44; }
.spine-gold     { background-color: #B38236; border-top: 2px solid #D9A045; }
.spine-forest   { background-color: #1A382A; border-top: 2px solid #28543E; }

.shelf-beam {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  transform-style: preserve-3d;
  background: linear-gradient(180deg, #7D491C 0%, #5B3310 40%, #3B200C 80%, #1A0D05 100%);
  border-top: 2px solid #9E612B;
  border-bottom: 4px solid #0D0906;
  border-left: 2px solid #7D491C;
  border-right: 2px solid #3B200C;
  box-shadow: 0 10px 20px rgba(0,0,0,0.85);
  transform: none !important;
}

.shelf-beam::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -2px;
  right: -2px;
  height: 6px;
  background: linear-gradient(90deg, #5B3310 0%, #9E612B 50%, #5B3310 100%);
  border-top: 1px solid #B07238;
  border-radius: 2px 2px 0 0;
}

.brass-label {
  background: linear-gradient(135deg, #33261B 0%, #1A130C 100%);
  border: 1.5px solid var(--brass-border);
  padding: 0.28rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.7);
  transition: background 0.3s ease, border-color 0.3s ease;
  transform: none !important;
}

.label-num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-bright);
  border-right: 1px solid var(--brass-border);
  padding-right: 0.35rem;
}

.label-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #E8D3B0;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.shelf-tier:hover .brass-label { border-color: var(--accent-bright); }

.shelf-tier.active .brass-label { 
  background: linear-gradient(135deg, #D4A054 0%, #B38236 100%); 
  border-color: #FFF0D0; 
}
.shelf-tier.active .label-num, .shelf-tier.active .label-text { color: #140E0A; font-weight: 700; }

/* --------------------------------------------------------------------------
   EXPANDED SHELF EXTENSION (PROJECTS ANIMATION TO THE RIGHT)
   -------------------------------------------------------------------------- */
.expanded-projects-shelf {
  position: absolute;
  left: 100%;
  top: -15px;
  width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(26, 18, 12, 0.96) 0%, rgba(15, 10, 6, 0.98) 100%);
  border: 2px solid var(--wood-border);
  border-left: 4px solid var(--brass-border);
  border-radius: 0 6px 6px 0;
  padding: 0.8rem 1.2rem 0.6rem 1.2rem;
  box-shadow: 
    20px 15px 45px rgba(0,0,0,0.92), 
    0 0 25px rgba(212, 160, 84, 0.15);
  transform-origin: left center;
  transform: scaleX(0);
  transition: 
    width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
  z-index: 50;
}

.shelf-tier.active[data-section="projects"] .expanded-projects-shelf {
  width: 660px;
  opacity: 1;
  pointer-events: auto;
  transform: scaleX(1);
}

.project-books-shelf-row {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
  padding-bottom: 0.4rem;
}

.project-book-item {
  cursor: pointer;
  perspective: 600px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-book-item:hover {
  transform: translateY(-8px) scale(1.04);
}

.project-book-spine {
  width: 95px;
  height: 125px;
  border-radius: 4px 4px 2px 2px;
  padding: 0.8rem 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 
    -4px 4px 10px rgba(0,0,0,0.6), 
    inset 0 0 15px rgba(0,0,0,0.4);
  border-top: 3px solid var(--brass-border);
  transition: filter 0.25s ease;
}

.project-book-item:hover .project-book-spine {
  filter: brightness(1.15);
  box-shadow: 
    -6px 8px 18px rgba(0,0,0,0.8), 
    0 0 15px rgba(245, 200, 122, 0.4);
}

.spine-gold-emboss {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #D4A054, #F5C87A, #B38236);
  border-radius: 1px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFF5E5;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.expanded-shelf-beam {
  height: 8px;
  background: linear-gradient(180deg, #7D491C 0%, #3B200C 100%);
  border-top: 1.5px solid #9E612B;
  border-radius: 2px;
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: OXFORD SPEECH HALL & SECTIONS
   -------------------------------------------------------------------------- */
.right-col {
  background: transparent;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.content-area { flex: 1; display: flex; flex-direction: column; }
.section { display: none; opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; flex: 1; }
.section.active { display: block; opacity: 1; transform: translateY(0); }

/* BORDERLESS WORKING DESK & SVG STAGE */
.working-desk {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.svg-stage-container {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  width: 100%;
}

.speech-svg-art {
  width: 100%;
  height: auto;
  display: block;
}

/* DEFAULT HEAD SWAY & CLICK VIBRANT SPIN */
.user-head-wrapper {
  transform-origin: 80px 42px;
  animation: headGentleSway 2.5s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.2s ease;
}

@keyframes headGentleSway {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

.user-head-wrapper.vibrant-spin {
  animation: headVibrantSpin 0.75s cubic-bezier(0.36, 0.07, 0.19, 0.97) 2 !important;
}

@keyframes headVibrantSpin {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-45deg) scale(1.1); }
  40% { transform: rotate(-45deg) scale(1.1); }
  60% { transform: rotate(-35deg) scale(1.05); }
  80% { transform: rotate(35deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

/* SVG INTERACTIVE SCREEN LINK TEXT HOVER EFFECTS */
.svg-a-link { text-decoration: none; }
.screen-link-btn .svg-link-text { transition: fill 0.25s ease; }
.screen-link-btn:hover .svg-link-text { fill: var(--accent-bright); }

/* --------------------------------------------------------------------------
   CAMPFIRE & COFFEE CHAT SECTION (#section-coffee — DEFAULT LANDING)
   -------------------------------------------------------------------------- */
.coffee-lounge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

/* TOP GREETING */
.coffee-greeting-top {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #F0E6D2;
  text-align: center;
  margin-top: 0;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 119, 0, 0.3);
}

/* MINIMALIST HERO TEXT LINKS (LINKEDIN, EMAIL, ABOUT ME) */
.coffee-hero-text-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.text-link-item {
  color: #D4A054;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.text-link-item:hover {
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(212, 160, 84, 0.8);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link-disabled {
  color: #A89078;
}

.text-link-disabled:hover {
  color: #E6D5B8;
  text-shadow: none;
}

.text-link-dot {
  color: #7A5C3E;
  font-size: 0.8rem;
}

.campfire-scene-wrapper {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  position: relative;
  flex: 1;
  min-height: 0;
}

.campfire-svg {
  width: 100%;
  height: 100%;
  max-height: 480px;
  display: block;
  object-fit: contain;
}

/* CLICKABLE CAMPFIRE & COFFEE MUG — STATIONARY SCENE HOVER */
.interactive-fire-coffee-link {
  text-decoration: none;
}

.interactive-fire-coffee-group {
  transform: none !important;
}

/* FIRE FLAMES — SMOOTH GPU 30% UPWARD HEIGHT INCREASE ON HOVER (NO LAG) */
.fire-flames {
  transform-origin: 450px 350px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-fire-coffee-link:hover .fire-flames {
  transform: scaleY(1.3) translateY(-10px);
}

/* SPEECH BUBBLE ANIMATION */
.speech-bubble-callout {
  animation: floatBubble 2.5s ease-in-out infinite alternate;
}

@keyframes floatBubble {
  0% { transform: translate(20px, -10px); }
  100% { transform: translate(20px, -16px); }
}

/* FLAME FLICKER ANIMATIONS (RESTING STATE) */
.flame-layer {
  transform-origin: 500px 350px;
}

.flame-outer {
  animation: flameFlickerOuter 1.2s ease-in-out infinite alternate;
}

.flame-mid {
  animation: flameFlickerMid 0.9s ease-in-out infinite alternate;
}

.flame-inner {
  animation: flameFlickerInner 0.6s ease-in-out infinite alternate;
}

.flame-core {
  animation: flameFlickerCore 0.4s ease-in-out infinite alternate;
}

@keyframes flameFlickerOuter {
  0% { transform: scaleY(1) rotate(-1deg); }
  50% { transform: scaleY(1.08) rotate(1.5deg); }
  100% { transform: scaleY(0.95) rotate(-2deg); }
}

@keyframes flameFlickerMid {
  0% { transform: scaleY(1) rotate(1deg); }
  50% { transform: scaleY(1.12) rotate(-1.5deg); }
  100% { transform: scaleY(0.92) rotate(1deg); }
}

@keyframes flameFlickerInner {
  0% { transform: scaleY(1) rotate(-0.5deg); }
  100% { transform: scaleY(1.15) rotate(1deg); }
}

@keyframes flameFlickerCore {
  0% { transform: scaleY(1); opacity: 0.9; }
  100% { transform: scaleY(1.05); opacity: 1; }
}

/* SPARKS ANIMATION */
.spark {
  animation: floatSpark 2s ease-out infinite;
}

.spark-1 { animation-delay: 0s; }
.spark-2 { animation-delay: 0.5s; }
.spark-3 { animation-delay: 1.1s; }
.spark-4 { animation-delay: 1.6s; }

@keyframes floatSpark {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-40px) scale(0.3); opacity: 0; }
}

/* STEAM ANIMATION */
.steam-line {
  animation: floatSteam 3s ease-in-out infinite;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 1s; }
.steam-3 { animation-delay: 1.8s; }

@keyframes floatSteam {
  0% { transform: translateY(0) scaleX(1); opacity: 0.2; }
  50% { opacity: 0.7; }
  100% { transform: translateY(-25px) scaleX(1.3); opacity: 0; }
}

/* --------------------------------------------------------------------------
   3D WOODEN MEDIA SHELVES ARCHIVE (#section-media)
   -------------------------------------------------------------------------- */
.media-shelves-archive {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 100%;
  padding-bottom: 2rem;
}

.media-shelf-row {
  display: flex;
  flex-direction: column;
  position: relative;
}

.media-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 0 0.8rem;
  z-index: 1;
}

.news-item-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  perspective: 600px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-item-card:hover {
  transform: translateY(-8px);
}

.news-cover-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #120D09;
  border: 1.5px solid var(--wood-border);
  box-shadow: 0 8px 18px rgba(0,0,0,0.85);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-item-card:hover .news-cover-wrapper {
  border-color: var(--brass-border);
  box-shadow: 0 14px 28px rgba(0,0,0,0.95), 0 0 15px rgba(245, 200, 122, 0.3);
}

.news-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.92) contrast(1.05);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.news-item-card:hover .news-cover-img {
  transform: scale(1.05);
  filter: brightness(1.02) contrast(1.1);
}

.news-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
  transition: opacity 0.3s ease;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #E8D3B0;
  line-height: 1.25;
  text-align: center;
  transition: color 0.25s ease;
}

.news-item-card:hover .news-title {
  color: var(--accent-bright);
}

/* 3D WOODEN SHELF BEAM UNDERNEATH EACH 4-NEWS ROW */
.wooden-shelf-beam {
  height: 12px;
  background: linear-gradient(180deg, #7D491C 0%, #5B3310 40%, #3B200C 80%, #1A0D05 100%);
  border-top: 2px solid #9E612B;
  border-bottom: 3px solid #0D0906;
  border-radius: 2px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.85);
  margin-top: 0.4rem;
  position: relative;
}

.wooden-shelf-beam::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5B3310 0%, #9E612B 50%, #5B3310 100%);
  border-top: 1px solid #B07238;
}

/* --------------------------------------------------------------------------
   DETAILS POPUP MODAL STYLING
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: linear-gradient(135deg, #18120D 0%, #0E0A07 100%);
  border: 2px solid var(--brass-border);
  padding: 2.2rem;
  max-width: 620px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 30px rgba(245, 200, 122, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--wood-border);
  padding-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #F4EAD8;
}

.modal-close-btn {
  background: var(--brass-bg);
  border: 1.5px solid var(--brass-border);
  color: var(--accent-bright);
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: var(--brass-border);
  color: #120D09;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-speaker-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.08em;
}

.modal-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
  border-left: 3px solid var(--brass-border);
  padding-left: 1rem;
  color: #F4F4F6;
}

.modal-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-actions {
  margin-top: 0.5rem;
}

.modal-btn {
  display: inline-block;
  background: var(--brass-bg);
  border: 1.5px solid var(--brass-border);
  color: var(--accent-bright);
  padding: 0.8rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.modal-btn:hover {
  background-color: var(--brass-border);
  color: #120D09;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .portfolio-container { grid-template-columns: 1fr; height: auto; overflow: auto; }
  .left-col.bookcase-seamless { position: relative; height: auto; max-height: none; width: 100%; max-width: none; }
  .right-col { padding: 1.5rem; height: auto; }
  .media-news-grid { grid-template-columns: repeat(2, 1fr); }
  .coffee-greeting-top { font-size: 2rem; }
}

/* --------------------------------------------------------------------------
   PROJECTS SECTION STYLING (#section-projects)
   -------------------------------------------------------------------------- */
.projects-empty-state {
  padding: 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.projects-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #F0E6D2;
  margin-bottom: 0.4rem;
}

.projects-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  color: #A89078;
  font-size: 1.05rem;
}

.project-detail-workspace {
  padding: 1.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

.project-period-badge {
  display: inline-block;
  background: rgba(212, 160, 84, 0.18);
  color: #F5C87A;
  border: 1px solid rgba(212, 160, 84, 0.45);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.project-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #F0E6D2;
  line-height: 1.25;
  margin-bottom: 1.6rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.project-summary-box {
  background: rgba(43, 30, 19, 0.75);
  border-left: 4px solid #D4A054;
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.summary-box-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #F5C87A;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.summary-box-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: #FFF5E5;
  line-height: 1.6;
}

.project-lorem-content {
  margin-bottom: 2rem;
}

.lorem-box-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #A89078;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

.project-lorem-content p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  color: #D4C5B2;
  line-height: 1.7;
}

.project-download-wrapper {
  margin-top: auto;
  padding-top: 1rem;
}

.project-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #D4A054, #B38236);
  color: #0E0B08;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(212, 160, 84, 0.3);
  cursor: pointer;
}

.project-download-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #F5C87A, #D4A054);
  box-shadow: 0 6px 20px rgba(212, 160, 84, 0.5);
  color: #000000;
}
