/* GLOBAL RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  overflow-y: auto;   
  overflow-x: hidden; 
  height: auto;       
}

.container { display: flex; width: 100%; height: 100vh; } 

/* =========================================
   LEFT PANEL
   ========================================= */
.info-panel {
  width: 40%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;
  z-index: 10;
  box-shadow: 10px 0 30px rgba(0,0,0,0.05);
  position: relative; 
}
.text-content h1 {
  font-size: 64px; font-weight: 800; letter-spacing: -2px;
  color: #111; margin-bottom: 10px; line-height: 1;
}
.text-content h2 {
  font-size: 24px; font-weight: 300; color: #555;
  margin-bottom: 12px; line-height: 1.4;
}
.jefferson-link { color: #007aff; text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
.jefferson-link:hover { opacity: 0.8; text-decoration: underline; }

/* --- SOCIAL ICONS --- */
.social-links {
  display: flex;
  gap: 20px; 
  margin-top: 5px;
}

.social-links a {
  display: inline-block;
  text-decoration: none;
  border-bottom: none;
  color: #111;
  transition: transform 0.2s;
}

.social-icon {
  width: 30px;
  height: 30px;
  display: block;
  
  /* DARK WOOD PALETTE (No Orange) */
  fill: #F0EAD6;       /* Light Parchment/Eggshell */
  stroke: #5C4033;     /* Dark Walnut Brown */
  
  stroke-width: 1.7px;  
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.2s ease;
}

/* Hover Effect: Turns solid dark wood */
.social-links a:hover .social-icon {
  transform: scale(1.15);
  fill: #5C4033;       /* Fill becomes Dark Walnut */
  stroke: #3E2723;     /* Outline becomes Deep Espresso */
}
@media (max-width: 1000px) {
  .social-links { justify-content: center; width: 100%; }
}

/* ================= RIGHT PANEL (SCENE) ================= */
.scene-panel {
  width: 60%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wall {
  flex-grow: 1;
  position: relative;

  /* 1. THE BASE COLOR (Warm Oatmeal) */
  background-color: #E6E0D4;

  /* 2. THE TEXTURE (Generated via CSS - No Image File Needed) */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
  
  /* This ensures the noise repeats perfectly without seams */
  background-repeat: repeat; 
}
/* HANGING PLANT */
.plant-wrapper {
  position: absolute; top: 0; left: 10%; z-index: 50;
  pointer-events: none;
}
.hanging-plant {
  transform-origin: top center;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}
.hanging-plant:active { cursor: grabbing; }
.plant-string { width: 2px; height: 100px; background: #888; margin: 0 auto; pointer-events: none; }
.plant-pot {
  width: 60px; height: 50px; background: #d35400;
  border-radius: 0 0 20px 20px; position: relative; pointer-events: none;
}
/* ================= HANGING PLANT (ATTACHED TO TOP) ================= */

.plant-wrapper {
  position: absolute;
  top: 0;
  left: 100px; /* Adjust left/right position here */
  z-index: 20;
}

.hanging-plant {
  position: relative;
  width: 150px; /* Adjust size if needed */
  height: auto;
  
  /* PULL UP so image string touches the browser ceiling */
  top: -40px; 
  left: -50%; 
}

/* NO .plant-string CSS NEEDED */

/* The Plant Image */
.plant-image {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.27), filter 0.5s;
  position: relative;
  z-index: 10;
}

/* --- INTERACTIONS --- */

/* Hover Swing */
.hanging-plant:hover .plant-image {
  transform: rotate(3deg);
  transform-origin: top center;
}

/* Watering Animation */
.hanging-plant.watered .plant-image {
  /* Grow and drop down slightly when watered */
  transform: scale(1.15) translateY(15px) rotate(0deg) !important;
  filter: brightness(1.1) saturate(1.3);
  transform-origin: top center;
}

/* --- DROPLETS ON PLANT --- */
.water-droplets {
  position: absolute;
  /* Adjust these to align droplets with your specific plant image */
  top: 60%; 
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
}

.droplet {
  position: absolute;
  background-color: #a4d4ff;
  border-radius: 50%;
  opacity: 0; 
}

.d1 { width: 8px; height: 8px; top: 0; left: -10px; }
.d2 { width: 12px; height: 12px; top: -15px; left: 0; }
.d3 { width: 6px; height: 6px; top: -5px; left: 12px; }
/* SHELF */
.shelf-container { position: absolute; top: 20%; left: 25%; display: flex; align-items: flex-end; }
.shelf {
  width: 200px; height: 10px;
  background-color: #dcb386;
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(139, 69, 19, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 40%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
    repeating-radial-gradient(circle at 0% 100%, transparent 0, transparent 10px, rgba(160, 82, 45, 0.05) 11px, transparent 12px);
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  position: absolute; bottom: 0;
}

/* BOOKS */
.book {
  width: 24px;
  border-radius: 2px;
  margin-right: 4px;
  position: relative;
  bottom: 10px;
  box-shadow: inset 2px 0 5px rgba(0,0,0,0.15), 1px 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.book:hover { transform: translateY(-20px); z-index: 10; }

.spine-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 5.5px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  white-space: nowrap;
}

/* RUSTIC / WEATHERED BOOKS */
.b1 { 
  height: 82px; 
  background: #5F6F5E; /* Dusty Moss / Sage */
  border-top: 2px solid #748573; 
}

.b2 { 
  height: 98px; 
  background: #964B36; /* Deep Burnt Rust (Iron Oxide) */
  border-top: 2px solid #AD5E49; 
}

.b3 { 
  height: 76px; 
  background: #C29B50; /* Worn Saddle Leather / Antique Gold */
  border-top: 2px solid #D6AF65; 
}

#book-content { text-align: left; padding: 10px; }

/* WATERING CAN */
.watering-can {
  position: absolute;
  width: 110px;
  height: auto;
  bottom: -4px;
  right: -100px;
  cursor: grab;
  z-index: 60;
  transition: transform 0.2s;
  transform-origin: center center;
  touch-action: none;
}
.watering-can.dragging { cursor: grabbing; transition: none; z-index: 100; pointer-events: none; }
.real-can-img { width: 100%; height: auto; display: block; filter: drop-shadow(4px 4px 6px rgba(0,0,0,0.3)); }

.water-spray {
  position: absolute;
  top: -17px; left: -35px;
  width: 20px; height: 100px;
  pointer-events: none; opacity: 0;
  transition: opacity 0.2s; transform: rotate(70deg); 
}
.droplet {
  position: absolute; top: 0;
  width: 3px; height: 6px;
  background: #3498db; border-radius: 50%; opacity: 0;
}
.d1 { left: 0px; animation-duration: 0.4s; animation-delay: 0s; }
.d2 { left: 4px; animation-duration: 0.5s; animation-delay: 0.1s; }
.d3 { left: -4px; animation-duration: 0.3s; animation-delay: 0.2s; }
.d4 { left: 2px; animation-duration: 0.45s; animation-delay: 0.15s; }
.d5 { left: -2px; animation-duration: 0.35s; animation-delay: 0.05s; }

@keyframes sprinkle {
  0% { transform: translateY(0); opacity: 1; }
  80% { opacity: 0.8; }
  100% { transform: translateY(120px); opacity: 0; }
}
.watering-can.is-pouring .water-spray { opacity: 1; }
.watering-can.is-pouring .droplet {
  animation-name: sprinkle;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* PHOTOBOOTH */
.photobooth-container {
  position: absolute;
  top: 51%; left: 17%;
  transform: rotate(-5deg) scale(1.1);
  z-index: 5;
left: 200px;
}
.strip {
  width: 40px; background: white; padding: 5px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; gap: 5px;
  position: absolute; transition: transform 0.2s;
}
.strip:hover { z-index: 10; transform: scale(1.1) rotate(0deg) !important; }
.photo-slot {
  width: 100%; height: 30px; object-fit: cover;
  display: block; cursor: zoom-in; transition: opacity 0.2s;
}
.photo-slot:hover { opacity: 0.8; }
.s1 { transform: rotate(-10deg); top: 0; left: 0; z-index: 2; }
.s2 { transform: rotate(5deg); top: 10px; left: 30px; z-index: 1; }
.pin-strip { width: 10px; height: 10px; background: red; border-radius: 50%; position: absolute; top: -5px; left: 25px; z-index: 3; }

/* BIB */
.bib-container {
  position: absolute; top: 10%; right: 5%;
  transform: rotate(3deg);
  cursor: pointer;
  transition: transform 0.2s;
  overflow: visible !important;
  z-index: 10;
  transform-style: preserve-3d;
}
.bib-container:hover { transform: scale(1.05) rotate(0deg); }

.bib-paper {
  width: 180px; height: 130px; background: #fff; border: 1px solid #ddd;
  box-shadow: 2px 5px 15px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 10px;
  font-family: 'Oswald', sans-serif;
}
.bib-event { font-size: 14px; letter-spacing: 1px; border-bottom: 2px solid #d63031; width: 100%; text-align: center; padding-bottom: 5px; color: #333; }
.bib-number { font-size: 60px; font-weight: 700; color: #000; line-height: 1; }
.bib-footer { width: 100%; display: flex; justify-content: space-between; font-size: 10px; font-family: 'Inter', sans-serif; color: #666; font-weight: bold; text-transform: uppercase; }
.pin { width: 8px; height: 8px; background: #c0392b; border-radius: 50%; position: absolute; z-index: 2; box-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.top-left { top: 5px; left: 5px; }
.top-right { top: 5px; right: 5px; }

/* Medals Dangle Zone */
.medals-dangle-zone {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  width: auto; height: auto;
  z-index: -1; pointer-events: none;
  display: flex; justify-content: center;
}
.real-medals-img {
  width: 160px; height: auto; display: block;
  margin-top: -10px;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}


/* CALENDAR */
.calendar-frame {
  position: absolute; top: 40%; right: 30%;
  width: 140px; height: 160px; background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 15px;
  transform: rotate(-2deg) scale(1.1);
  font-family: 'Roboto Mono', monospace;
}
.cal-header { text-align: center; font-weight: bold; border-bottom: 2px solid #333; padding-bottom: 5px; margin-bottom: 10px; font-size: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 9px; color: #555; }
.circle-date { background: #d63031; color: white; border-radius: 50%; }
.interactive-day { cursor: pointer; position: relative; transition: transform 0.2s, background-color 0.2s; z-index: 2; }
.interactive-day:hover { transform: scale(1.3); background-color: #ff4757; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.sticky-note {
  position: absolute; bottom: -15px; right: 0px;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #ffff88 0%, #fff740 100%);
  color: #222; font-family: 'Reenie Beanie', cursive;
  font-size: 13px; line-height: 1; font-weight: bold;
  text-align: center; display: flex; justify-content: center; align-items: center;
  box-shadow: 2px 5px 10px rgba(0,0,0,0.2); transform: rotate(-5deg); z-index: 20;
}
.sticky-note:hover { transform: rotate(0deg) scale(1.05); box-shadow: 2px 8px 15px rgba(0,0,0,0.3); cursor: default; }

/* DESK SURFACE */
.desk-surface {
  height: 35%;

  /* Background Image */
  background-image: url('desk-texture.png');
  background-size: cover;
  background-position: center;
  
  /* REMOVE the old border-top line */
  border: none;
  
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  padding-bottom: 40px;
  
  /* Keep inner shadow for depth */
  box-shadow: inset 0 30px 50px rgba(0,0,0,0.5);
  
  gap: 50px;
}

/* NEW: The 3D Molding / Trim at the back */
.desk-surface::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 25px; 
  
  /* Use the same wood texture */
  background-image: url('desk-texture.png');
  background-size: cover;
  background-position: bottom; 
  
  /* CHANGED: Increased brightness to 0.9 (was 0.75) */
  /* This makes it look less like a dark void and more like shadowed wood */
  filter: brightness(1.3) contrast(1.05);
  
  /* 3D LIGHTING EFFECTS (Keep these for the depth!) */
  box-shadow: 
    /* Highlight on top edge */
    inset 0 1px 0 rgba(255,255,255,0.3),
    /* Shadow at bottom */
    inset 0 -5px 10px rgba(0,0,0,0.5),
    /* Cast shadow onto desk */
    0 10px 20px rgba(0,0,0,0.3);
    
  z-index: 10;
}

/* LAPTOP SETUP */
.laptop-setup {
  position: relative;
  transform: scale(1.4) translateY(-30px) translateX(-50px);
  transform-origin: bottom center;
  transition: transform 0.2s;
  margin-right: 80px; z-index: 10;
  cursor: pointer; bottom: -19px;
}
.laptop-setup:hover { transform: scale(1.42) translateY(-12px) translateX(-50px); }

.macbook { width: 260px; height: 170px; position: relative; }
.screen {
  width: 240px; height: 160px; background: #111;
  margin: 0 auto; border-radius: 10px 10px 0 0; padding: 8px;
  border: 1px solid #999; border-bottom: none;
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotateX(0deg);
  backface-visibility: hidden;
}
.laptop-setup.closed .screen { transform: rotateX(-100deg); }
.laptop-setup.closed .reel-video { opacity: 0; transition: opacity 0.2s; }
.display { width: 100%; height: 100%; background: #000; border-radius: 4px; overflow: hidden; position: relative; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }

/* KEYBOARD LAYERS */
.keyboard { 
  width: 280px; height: 12px; 
  background: #ccc; border-radius: 0 0 10px 10px; 
  margin-left: -10px; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  position: relative; z-index: 20;
}
.keyboard::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border-radius: 0 0 10px 10px;
  background: linear-gradient(to bottom, #999 0%, #999 50%, transparent 50%, transparent 100%);
  opacity: 0; pointer-events: none; transition: opacity 0.1s 0s; 
}
.keyboard::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; background: rgba(0,0,0,0.15); border-radius: 0 0 5px 5px; 
  opacity: 0; pointer-events: none; transition: opacity 0.1s 0s;
}
.laptop-setup.closed .keyboard::before { opacity: 1; transition: opacity 0.1s 0.3s; }
.laptop-setup.closed .keyboard::after { opacity: 1; transition: opacity 0.1s 0.3s; }

/* RECORD PLAYER */
.record-player-setup {
  position: absolute; bottom: 20px; right: 20px;
  display: flex; gap: 30px; align-items: flex-end;
  z-index: 15; transform: rotateX(50deg) rotateZ(-5deg); transform-style: preserve-3d;
}
.turntable { position: relative; width: 200px; height: 160px; bottom: 67px; }
.turntable-body {
  width: 100%; height: 100%; background: #e0e0e0;
  border-radius: 8px; position: relative;
  box-shadow: 1px 1px 0px #bbb, 2px 2px 0px #bbb, 3px 3px 0px #bbb, 4px 4px 0px #bbb, 5px 15px 20px rgba(0,0,0,0.3);
  border: 1px solid #fff;
}
.platter-zone { position: absolute; top: 20px; left: 20px; width: 120px; height: 120px; z-index: 1; }
.platter { width: 100%; height: 100%; background: #2c3e50; border-radius: 50%; border: 2px solid #1a252f; box-shadow: inset 0 0 0 2px #34495e; }
.spindle {
  position: absolute; top: 50%; left: 50%; width: 8px; height: 8px;
  background: silver; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 1px 1px 2px rgba(0,0,0,0.5); z-index: 10; pointer-events: none;
}
.knob {
  position: absolute; right: 20px; width: 20px; height: 20px;
  background: #bdc3c7; border-radius: 50%; box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.k1 { bottom: 40px; }
.k2 { bottom: 70px; }

.arm-base {
  position: absolute; top: 20px; right: 20px; width: 30px; height: 30px;
  background: #95a5a6; border-radius: 50%; box-shadow: 1px 1px 2px rgba(0,0,0,0.2); z-index: 20;
}
.tonearm {
  position: absolute; top: 12px; left: 12px; width: 55px; height: 6px;
  background: silver; transform-origin: 0% 50%; transform: rotate(100deg);
  border-radius: 3px; box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  cursor: pointer; transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); z-index: 30;
}
.tonearm::after {
  content: ''; position: absolute; right: -5px; top: -4px; width: 15px; height: 14px;
  background: #333; transform: rotate(20deg); border-radius: 2px;
}
.tonearm.playing { transform: rotate(148deg); }

/* RECORDS */
.record-stack {
  position: relative; width: 140px; height: 140px;
  margin-left: -20px; margin-top: -100px; z-index: 50;
}
.record {
  position: absolute; z-index: 0; width: 110px; height: 110px;
  border-radius: 50%; background: #111; cursor: grab;
  box-shadow: inset 0 0 0 1px #333, 1px 1px 0 #000, 2px 2px 5px rgba(0,0,0,0.4);
  display: flex; justify-content: center; align-items: center;
  transition: transform 0.2s ease-out, z-index 0s; touch-action: none;
}
.record-stack .r3 { z-index: 1; bottom: -10px; left: 48px; }
.record-stack .r2 { z-index: 2; bottom: 20px; left: 45px; }
.record-stack .r1 { z-index: 3; bottom: 50px; left: 42px; }
.record-stack .record:hover { z-index: 100 !important; transform: scale(1.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.vinyl-grooves {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 95%; height: 95%; border-radius: 50%;
    background: conic-gradient(from 45deg, transparent 0%, rgba(255,255,255,0.1) 15%, transparent 30%, transparent 50%, rgba(255,255,255,0.1) 65%, transparent 80%);
    border: 1px solid rgba(255,255,255,0.05); box-shadow: inset 0 0 0 15px rgba(255,255,255,0.02);
    z-index: 1; pointer-events: none;
}
.vinyl-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; z-index: 2;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
  pointer-events: none;
}
.vinyl-hole {
  position: absolute; width: 6px; height: 6px; background: #fff; border-radius: 50%; z-index: 3; pointer-events: none;
}
.record.dragging {
  cursor: grabbing; z-index: 1000 !important; transition: none;
  transform: scale(1.1) !important; box-shadow: 10px 10px 20px rgba(0,0,0,0.4);
}
@keyframes spin3D { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.record.spinning {
  top: 5px !important; left: 5px !important; bottom: auto !important;
  animation: spin3D 1.5s linear infinite; box-shadow: 1px 1px 2px rgba(0,0,0,0.2); z-index: 5;
}

/* CUP */
.cup-container {
  position: relative; z-index: 50; text-decoration: none;
  margin-bottom: 10px; transition: transform 0.2s;
  width: 46px; height: 55px; right: 50px; bottom: 160px;
}
.cup-container:hover { transform: translateY(-5px); }
.pencil-cup { width: 100%; height: 100%; position: relative; }
.cup-back {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  background: #1a252f; border-radius: 0 0 5px 5px; z-index: 1;
}
.item {
  position: absolute; bottom: 5px; border-radius: 3px 3px 0 0;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3); z-index: 2;
}
.pencil { width: 7px; height: 80px; background: #f1c40f; }
.p1 { left: 6px; transform: rotate(-8deg); }
.eraser { position: absolute; top: 0; width: 100%; height: 10px; background: #e74c3c; border-radius: 3px 3px 0 0; }
.ferrule { position: absolute; top: 10px; width: 100%; height: 5px; background: #95a5a6; }
.pen { width: 7px; height: 75px; }
.cap { position: absolute; top: 0; width: 100%; height: 20px; border-radius: 3px 3px 0 0; }
.clip { position: absolute; top: 5px; right: -2px; width: 2px; height: 12px; background: inherit; border-radius: 1px; }
.blue-pen { background: #3498db; left: 16px; transform: rotate(3deg); bottom: 8px; }
.blue-pen .cap { background: #2980b9; }
.red-pen { background: #e74c3c; left: 26px; transform: rotate(8deg); }
.red-pen .cap { background: #c0392b; }
.black-pen { background: #2c3e50; left: 34px; transform: rotate(-5deg); bottom: 12px; }
.black-pen .cap { background: #1a252f; }
.cup-front {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, #2c3e50, #4ca1af, #2c3e50);
  border-radius: 0 0 5px 5px; z-index: 3; box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* MUG */
.mug-wrapper {
  position: relative; width: 50px; height: 45px; z-index: 40;
  right: 228px; bottom: 55px;
}
.mug-body { width: 100%; height: 100%; position: relative; z-index: 2; }
.mug-handle {
  width: 14px; height: 24px; border: 4px solid #fff; border-radius: 0 15px 15px 0;
  position: absolute; right: -10px; top: 12px; z-index: 1; box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}
.mug-back-wall {
  position: absolute; top: 0; left: 0; width: 50px; height: 18px;
  background: #dcdcdc; border-radius: 50%; z-index: 2;
}
.coffee-surface {
  position: absolute; top: 3px; left: 3px; width: 44px; height: 12px;
  background: #3e2723; border-radius: 50%; z-index: 3; overflow: hidden;
}
.stirrer {
  width: 4px; height: 55px; background: #8d6e63;
  position: absolute; top: -35px; left: 23px; border-radius: 2px;
  transform-origin: bottom center; cursor: grab; z-index: 4;
  transition: transform 0.1s; box-shadow: 1px 0 2px rgba(0,0,0,0.3); transform: rotate(15deg); touch-action: none;
}
.stirrer:active { cursor: grabbing; }
.mug-front-wall {
  position: absolute; top: 9px; left: 0; width: 50px; height: 36px;
  background: linear-gradient(to right, #e0e0e0, #ffffff 40%, #e0e0e0);
  border-radius: 0 0 20px 20px; z-index: 5; box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
.liquid-swirl {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(transparent 30%, rgba(255,255,255,0.1) 40%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.mug-wrapper.stirring .liquid-swirl { opacity: 1; animation: spinCoffee 0.5s linear infinite; }
@keyframes spinCoffee { 100% { transform: rotate(360deg); } }

/* STEAM */
.steam-group.s-steam {
  position: absolute; top: -30px; left: 10px;
  width: 40px; height: 60px; pointer-events: none; z-index: 1;
}
.steam-path {
  position: absolute; bottom: 0; width: 15px; height: 40px; opacity: 0;
  filter: blur(2px); animation: riseSwirl 3s infinite linear;
  fill: none; stroke: white; stroke-width: 3; stroke-linecap: round;
}
.v1 { left: 5px; animation-delay: 0s; height: 40px; }
.v2 { left: 15px; animation-delay: 1.0s; height: 50px; }
.v3 { left: 10px; animation-delay: 2.0s; height: 35px; }
.v4 { left: 0px; animation-delay: 0.5s; height: 45px; }
.v5 { left: 20px; animation-delay: 1.5s; height: 55px; }
.v6 { left: 8px; animation-delay: 2.5s; height: 60px; }
@keyframes riseSwirl {
  0% { transform: translateY(10px) scaleY(0.5); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-60px) scaleY(1.5); opacity: 0; }
}

/* MODALS */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 100;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card {
  background: white; padding: 40px; width: 400px;
  border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); position: relative;
}
.close-btn { position: absolute; top: 10px; right: 15px; border: none; background: none; font-size: 24px; cursor: pointer; }
.btn-black { display: inline-block; margin-top: 20px; background: black; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; font-size: 14px; }
.public-agenda-content p { font-size: 16px; line-height: 2; color: #333; border-bottom: 1px dashed #eee; }

/* PHOTO MODAL */
.modal-card.photo-viewer {
  background: transparent; box-shadow: none; padding: 0;
  width: auto; height: auto;
  display: flex; justify-content: center; align-items: center; position: relative;
}
#full-size-image {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 8px solid white;
}
.photo-viewer .close-btn {
  color: white; font-size: 40px; top: -40px; right: -10px; text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; color: white; border: none; font-size: 40px; padding: 0;
  cursor: pointer; z-index: 20; transition: transform 0.2s, text-shadow 0.2s;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.nav-btn:hover { transform: translateY(-50%) scale(1.2); text-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.prev-btn { left: -60px; } 
.next-btn { right: -60px; } 
@media (max-width: 1000px) {
  .nav-btn { font-size: 40px; }
  .prev-btn { left: -40px; }
  .next-btn { right: -40px; }
}

/* =========================================
   PROJECTS SECTION (Global/Desktop)
   ========================================= */
.projects-section {
  min-height: 90vh;
  padding: 50px 80px;
  background: #ffffff;
  position: relative;
  z-index: 20;
  border-top: 1px solid #eee;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 50px;
  max-width: 1400px;
}

.project-card {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover { transform: translateY(-15px); }

.project-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 280px;
  border-radius: 4px;
  background-color: #f7f7f7;
  background-size: cover;
  background-position: center;
}

.project-info h3 { 
  font-family: 'Oswald', sans-serif; 
  font-size: 20px; 
  margin-bottom: 8px; 
  color: #111; 
}

.project-info p { 
  font-size: 15px; 
  color: #777; 
  line-height: 1.5; 
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   RESPONSIVE & MOBILE FIXES (Clean & Ordered)
   ========================================= */

/* 1. MEDIUM SCREENS (1200px - 1400px) */
@media (max-width: 1400px) {
  .info-panel { padding-left: 40px; }
  .text-content h1 { font-size: 48px; }
  
  /* UPDATED PLANT: Scale from TOP so string stays attached */
  .plant-wrapper { 
      transform: scale(0.9); 
      transform-origin: top left; /* <--- PINS IT TO CEILING */
      left: 5%; /* <--- MOVED RIGHT (Percentage is safer than pixels) */
  }

  .shelf-container { transform: scale(0.9); left: 120px; }
  .bib-container   { transform: scale(0.9) rotate(3deg); right: 20px; }
  .calendar-frame  { right: 35%; } 
}

/* 2. TABLET / SMALL LAPTOP (1200px and below) */
@media (max-width: 1200px) {
  .container { 
    flex-direction: column; 
    overflow-y: auto; 
    overflow-x: hidden; 
  }

  .info-panel { 
    width: 100%; height: auto; min-height: 40vh; 
    padding: 50px 30px; border-bottom: 1px solid #eee; 
  }

  .scene-panel { width: 100%; height: 900px; overflow: hidden; }
  .wall { height: 55%; width: 100%; }

  /* UPDATED PLANT FIXES */
  .plant-wrapper { 
      left: 5%; /* Moved slightly right so it's not cut off */
      top: 0; /* Keep it at the very top */
      transform: scale(0.8); 
      transform-origin: top left; /* <--- CRITICAL: Prevents the gap! */
  }

  .shelf-container { left: 90px; top: 10%; transform: scale(0.8); }
  .photobooth-container { left: 180px; top: 55%; transform: scale(0.8) rotate(-5deg); }
  .calendar-frame { left: 50%; top: 15%; transform: translateX(-50%) scale(0.85) rotate(-2deg); }
  .bib-container { left: auto; right: 20px; top: 5%; transform: scale(0.58) rotate(3deg); }
  
  /* Medals Fix */
  .scene-panel .real-medals-img { width: 110px !important; margin-top: -5px; }

  /* Desk Layout */
  .desk-surface { height: 45%; width: 125%; left: -12.5%; bottom: 0px; display: block; }

  .laptop-setup, .laptop-setup:hover, .laptop-setup.closed { 
    position: absolute; left: 13%; bottom: 40px; transform: scale(1.0) !important; margin: 0; 
  }
  .record-player-setup { position: absolute; right: 10%; bottom: 40px; transform: scale(0.9) rotateX(50deg) rotateZ(-5deg); }
  .mug-wrapper { position: absolute; left: 45%; bottom: 50px; transform: translateX(-50%) scale(0.9); }
  .cup-container { position: absolute; left: 45%; bottom: 140px; transform: translateX(-50%) scale(0.9); }
}

/* 3. MOBILE PORTRAIT (Normal Phone View) */
@media (max-width: 600px) {
  /* Panel Fixes */
  .info-panel { padding: 30px 20px; position: relative; min-height: 40vh; }
  .text-content h1 { font-size: 36px; }
  
  /* Scroll Indicator: Pushed to bottom */
  .scroll-indicator { bottom: 10px !important; left: 20px !important; transform: none !important; width: auto; }

  .scene-panel { height: 750px; }

/* Wall Items */
  .plant-wrapper { 
      /* 1. GAP FIX: Pin to top and scale from the top-left anchor */
      top: 0; 
      transform-origin: top left; 
      transform: scale(0.6) !important; 

      /* 2. CUT-OFF FIX: Move it right so the left leaves are visible */
      left: 30px; 
  }
  .shelf-container      { transform: scale(0.6) !important; left: 40px; top: 10%; }
  .photobooth-container { transform: scale(0.6) rotate(-5deg) !important; left: 80px; top: 45%; }
  .calendar-frame       { transform: translateX(-50%) scale(0.6) !important; left: 60%; top: 15%; }
  .bib-container        { transform: scale(0.6) !important; right: -10px; top: 2%; }
  
  /* Desk Items */
  .desk-surface { width: 166%; left: -33%; }
  
  .laptop-setup, .laptop-setup:hover, .laptop-setup.closed { 
    left: 17%; bottom: 35px; transform: scale(0.8) !important; 
  }
  .record-player-setup { right: 8%; bottom: 30px; transform: scale(0.5) rotateX(50deg) rotateZ(-5deg); }

  /* Mug: Moved Right */
  .mug-wrapper { left: 65%; bottom: 30px; transform: translateX(-50%) scale(0.7); }
  
  /* Cup: Moved UP */
  .cup-container { left: 50%; bottom: 165px; transform: translateX(-40px) scale(0.7); }

  /* Projects Section Spacing Fix */
  .projects-section { padding: 40px 20px !important; }
  .projects-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-title { font-size: 28px; margin-bottom: 40px; }
}

/* 4. MOBILE LANDSCAPE FIX (Rotating Phone) */
@media (max-height: 500px) and (orientation: landscape) {
  .info-panel { padding: 20px; min-height: auto; }
  .text-content h1 { font-size: 32px; }
  .scene-panel { height: 600px; } 

  .laptop-setup { left: 5% !important; bottom: 20px !important; transform: scale(0.65) !important; }
  .mug-wrapper { left: 35% !important; bottom: 20px !important; transform: scale(0.65) !important; }
  .cup-container { left: 45% !important; bottom: 80px !important; transform: scale(0.65) !important; }
  .record-player-setup { right: 5% !important; bottom: 20px !important; transform: scale(0.6) rotateX(50deg) rotateZ(-5deg) !important; }
  
  /* Wall Adjustments for short height */
  .calendar-frame { top: 5% !important; }
  .shelf-container { top: 5% !important; }
  .photobooth-container { top: 40% !important; }
}

/* =========================================
   FINAL UTILITIES (Labels, Indicators, Popups)
   ========================================= */

/* Record Labels */
.record.r1 .vinyl-label { background-image: url('olivia.jpg') !important; }
.record.r2 .vinyl-label { background-image: url('mariella.jpg') !important; }
.record.r3 .vinyl-label { background-image: url('contacts.jpg') !important; }

.vinyl-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; z-index: 2;
  background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;
  background-color: transparent !important; pointer-events: none; border: 1px solid rgba(0,0,0,0.3);
}
.record { background-color: #111 !important; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 40px; display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; color: #888; font-size: 10px; font-weight: 800; letter-spacing: 2px;
  pointer-events: none; transition: opacity 0.5s ease; z-index: 100;
}
@media (min-width: 1401px) { .scroll-indicator { left: 80px; } }

.arrow {
  width: 2px; height: 20px; background: #888; position: relative; margin-left: 15px; animation: bounce 2s infinite;
}
.arrow::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 7px; height: 7px;
  border-right: 2px solid #888; border-bottom: 2px solid #888; transform: translateX(-50%) rotate(45deg);
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* Watering Counter Popup */
.water-popup {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%) scale(0.8);
  background: white; width: 100px; padding: 6px 8px; font-size: 10px; line-height: 1.3;
  border-radius: 8px; border-top-left-radius: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  font-family: 'Oswald', sans-serif; color: #27ae60; text-align: center;
  pointer-events: none; opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 100;
}
.water-popup.show { opacity: 1; transform: translateX(-50%) scale(1); top: 75px; }

@keyframes plantGlow {
  0% { filter: drop-shadow(0 0 0 rgba(255, 255, 0, 0)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 20px #f1c40f); transform: scale(1.1); }
  100% { filter: drop-shadow(0 0 0 rgba(255, 255, 0, 0)); transform: scale(1); }
}
.hanging-plant.glowing { animation: plantGlow 1.5s ease-in-out; }

/* =========================================
   LANDSCAPE BLOCKER (Mobile Only)
   ========================================= */
.landscape-warning {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #2c3e50;
  z-index: 9999;
  color: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Oswald', sans-serif;
}

.warning-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.warning-content p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ccc;
}

.rotate-icon {
  font-size: 50px;
  margin-top: 20px;
  animation: spinIcon 2s infinite ease-in-out;
}

@keyframes spinIcon {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-90deg); }
  50% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

/* TRIGGER: Only show on mobile phones held sideways */
@media only screen and (max-height: 500px) and (orientation: landscape) {
  .landscape-warning {
    display: flex !important;
  }
  
  /* Hide the actual site so it doesn't try to render underneath */
  .container {
    display: none !important;
  }
}
/* =========================================
   MOBILE PHOTO ARROW FIX
   ========================================= */
@media (max-width: 600px) {
  .prev-btn {
    left: 10px !important;   /* Move inside the screen */
    background: rgba(0,0,0,0.2); /* Add faint background so you can see it */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4px; /* Align text arrow */
  }

  .next-btn {
    right: 10px !important;  /* Move inside the screen */
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4px; /* Align text arrow */
  }
}

