/* ===== RESET & BASE STYLES ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }

/* Main page body styling */
body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px; /* Medium - body text */
  font-weight: lighter;
  color: black;
  overflow: hidden;
  position: relative;
}

/* ===== BACKGROUND SYSTEM ===== */
/* Base background: white to light gray gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, #ffffff 0%, #fafafa 100%);
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

/* Kitsch background: cloud image overlay with bloom effect */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("images/40034-sun-calm-sky_blue-sunlight-cumulus-x750.png") no-repeat center center fixed;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  filter: brightness(1.05) contrast(1.02) saturate(1.05);
}

/* Kitsch mode: hide gradient, show cloud image */
body.kitsch::before { opacity: 0; }
body.kitsch::after  { 
  opacity: 1 !important; 
  animation: backgroundBloomPulse 8s ease-in-out infinite !important;
}

/* ===== BLUR OVERLAY SYSTEM ===== */
/* Full-screen blur effect for modal interactions */
#blur-overlay {
  position: fixed;
  inset: 0;
  background: rgba(237, 237, 237, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#blur-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== NAVBAR SYSTEM ===== */
/* Top navigation bar with macOS-style appearance */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  background: linear-gradient(to bottom, #f0f0f0 0%, #e8e8e8 100%);
  border-bottom: 1px solid #c0c0c0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 1px rgba(0,0,0,0.05);
}
.navbar-left { position: absolute; left: 0; display: flex; }
.navbar-right { position: absolute; right: 0; display: flex; }

/* Kitsch mode toggle button positioning */
.kitsch-button {
  position: relative;
  z-index: 10002;
}

/* Navbar title styling (Benjamin Martin) */
.navbar-title {
  font-family: "Lucida Grande", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  transition: all 0.4s ease-in-out;
  position: relative;
  z-index: 10001;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
  letter-spacing: -0.3px;
}

/* Iframe close button styling */
#project-iframe-container .iframe-close {
  font-family: inherit;
  transition: color 0.6s ease-in-out, text-shadow 0.6s ease-in-out;
}
body.kitsch #project-iframe-container .iframe-close {
  color: #fff;
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff;
}

/* ===== KITSCH MODE STYLES ===== */
/* Navbar in kitsch mode: translucent with blur */
body.kitsch .navbar {
  background: radial-gradient(circle, rgba(237, 237, 237, 0.9) 0%, rgba(231, 194, 255, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 8px rgba(231, 194, 255, 0.2), 0 0 15px rgba(231, 194, 255, 0.1);
  filter: brightness(1.03) saturate(1.05);
}

/* Navbar title in kitsch mode: cursive with blue glow and black stroke */
body.kitsch .navbar-title {
  font-family: cursive, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff !important;
  -webkit-text-stroke: 0.1px #000;
  text-stroke: 0.1px #000;
}

/* ===== DROPDOWN SYSTEM ===== */
/* Play/pause button in navbar */
.menu-toggle {
  background: transparent;
  border: none;
  border-radius: 4px;
  font-family: "Lucida Grande", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  color: #000000;
  transition: all 0.3s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
  font-weight: 500;
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.menu-toggle::before {
  content: url("images/BM_Play.svg");
  font-size: 16px;
  color: #2286ff;
  text-shadow: none;
  transition: all 0.3s ease;
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.menu-toggle.open::before {
  content: url("images/BM_Pause.svg");
  font-size: 16px;
  display: inline-block;
  width: 12px;
  height: 12px;
}
.menu-toggle.open { 
  transform: none;
}

body.kitsch .menu-toggle {
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff;
  color: #ffffff;
}

.dropdown {
  position: absolute;
  top: 28px; left: 0; right: 0;
  width: 100%;
  list-style: none;
  margin: 0; padding: 0;
  font-family: "Lucida Grande", "Helvetica Neue", Arial, sans-serif;
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #b0b0b0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 8px rgba(0,0,0,0.25);
  overflow: visible;
}
.dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 8px 12px;
  text-decoration: none;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  border-top: none;
  transition: background 0.3s ease, color 0.3s ease, padding-left 0.3s ease, padding-right 0.3s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
  letter-spacing: -0.2px;
}
.dropdown li a:hover {
  background: #2286ff;
  color: #fff;
  padding: 8px 20px 8px 12px;
  text-shadow: none;
}

.dropdown li a:hover .work-type {
  color: #fff;
  text-shadow: none;
}
body.kitsch .dropdown li a {
  font-family: cursive, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff;
  background: transparent;
  border-top: 1px solid #000;
  -webkit-text-stroke: 0.1px #000;
  text-stroke: 0.1px #000;
}

body.kitsch .dropdown li a:hover {
  background: #2286ff;
  color: #fff;
  padding: 2px 20px 2px 12px;
}

/* Kitsch mode - make dropdown rows thinner */
body.kitsch .dropdown li a {
  padding: 2px 16px 2px 12px;
}

.dropdown li a .work-type {
  font-size: 12px;
  color: #000000;
  font-weight: 400;
  transition: color 0.3s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
  letter-spacing: 0.2px;
}

body.kitsch .dropdown li a .work-type {
  font-family: cursive, sans-serif;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff;
}

/* Kitsch mode dropdown background */
body.kitsch .dropdown {
  background: radial-gradient(circle, rgba(231, 194, 255, 1.0) 0%, rgba(237, 237, 237, 1.0) 90%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
}

/* Mobile: linear gradient instead of radial for dropdown */
@media (max-width: 768px) {
  body.kitsch .dropdown {
    background: linear-gradient(90deg, rgba(237, 237, 237, 1.0) 0%, rgba(231, 194, 255, 1.0) 90%);
  }
}

/* Project preview - appears below hovered item */
.dropdown li {
  position: relative;
}

.project-preview {
  position: static;
  background: transparent;
  border: none;
  padding: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease, max-height 0.3s ease;
  z-index: 10001;
  overflow: visible;
  max-height: 0;
}

.project-preview.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 200px;
  padding: 10px 15px;
}

.preview-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 15px 0;
  justify-content: center;
}

.preview-images::-webkit-scrollbar {
  height: 4px;
}

.preview-images::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

.preview-images::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 2px;
}

.preview-image {
  flex: 0 0 auto;
  height: 10vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.2s ease;
}

.preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10vh;
  color: #666;
  font-size: 14px;
}

.preview-image:hover {
  transform: scale(1.05);
}

body.kitsch .project-preview {
  background: transparent;
}

/* Kitsch button + unicorn */
.kitsch-button {
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 20px; /* Large - kitsch button */
  font-weight: 500;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}
.unicorn {
  display: inline-block;
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.3s ease;
}

.kitsch-button:hover .unicorn {
  transform: scale(1.2);
}
.unicorn.spin { animation: spin 0.6s linear; }
.kitsch-button.spin { animation: spin 0.6s linear; }

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

@keyframes unicornGlow {
  0%   { transform: scale(1); text-shadow: none; }
  5%   { transform: scale(1.2); text-shadow: 0 0 8px #ff00ff, 0 0 16px #00ffff; }
  10%  { transform: scale(1.2); text-shadow: 0 0 12px #ff00ff, 0 0 24px #00ffff; }
  15%  { transform: scale(1.2); text-shadow: 0 0 8px #ff00ff, 0 0 16px #00ffff; }
  20%  { transform: scale(1); text-shadow: none; }
  25%  { transform: scale(1.2); text-shadow: 0 0 6px #ff00ff, 0 0 12px #00ffff; }
  30%  { transform: scale(1); text-shadow: none; }
  100% { transform: scale(1); text-shadow: none; }
}
body:not(.kitsch) .kitsch-button { animation: unicornGlow 10s infinite; }
body.kitsch .kitsch-button { 
  animation: none; 
  text-shadow: none;
  box-shadow: none;
  filter: brightness(1.08) saturate(1.1);
}

/* Bloom pulse animations for kitsch mode */
@keyframes bloomPulse {
  0% { 
    filter: brightness(1.0) saturate(1.0);
    box-shadow: none;
  }
  25% { 
    filter: brightness(1.4) saturate(1.8);
    box-shadow: 0 0 25px rgba(231, 194, 255, 0.8), 0 0 50px rgba(231, 194, 255, 0.6), 0 0 75px rgba(231, 194, 255, 0.4);
  }
  50% { 
    filter: brightness(1.2) saturate(1.4);
    box-shadow: 0 0 15px rgba(231, 194, 255, 0.5), 0 0 30px rgba(231, 194, 255, 0.3);
  }
  75% { 
    filter: brightness(1.3) saturate(1.6);
    box-shadow: 0 0 20px rgba(231, 194, 255, 0.6), 0 0 40px rgba(231, 194, 255, 0.4), 0 0 60px rgba(231, 194, 255, 0.2);
  }
  100% { 
    filter: brightness(1.0) saturate(1.0);
    box-shadow: none;
  }
}

@keyframes backgroundBloomPulse {
  0% { filter: brightness(1.0) contrast(1.0) saturate(1.0); }
  20% { filter: brightness(1.15) contrast(1.08) saturate(1.2); }
  40% { filter: brightness(1.08) contrast(1.04) saturate(1.1); }
  60% { filter: brightness(1.12) contrast(1.06) saturate(1.15); }
  80% { filter: brightness(1.18) contrast(1.1) saturate(1.25); }
  100% { filter: brightness(1.0) contrast(1.0) saturate(1.0); }
}

/* Curseur emoji en mode kitsch */
body.kitsch,
body.kitsch * {
  cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext x='50%25' y='50%25' font-size='20' text-anchor='middle' dominant-baseline='middle'%3E😁%3C/text%3E%3C/svg%3E") 16 16, pointer !important;
}

/* Galerie */
.scroll-container {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.horizontal-gallery {
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  padding: 10vh 0;
}
.horizontal-gallery::-webkit-scrollbar { display: none; }

.image-frame {
  flex: 0 0 auto;
  background: transparent;
  transform-style: preserve-3d;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.6s ease;
}

/* Add horizontal padding specifically to the Machines Analogiques image for better visual spacing */
.image-frame.analog-frame {
  padding: 0 40px;
}
.image-frame img {
  display: block;
  max-width: 43vw;
  max-height: 75vh;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.image-frame:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.3));
}
.image-frame.visible { opacity: 1; }

.image-frame.empty-frame {
  opacity: 0 !important;
  pointer-events: none !important;
  cursor: default !important;
  visibility: hidden !important;
  /* Wider dimensions for empty frames */
  width: 150px !important;
  height: 50px !important;
  margin: 0 10px !important;
  flex: 0 0 auto !important;
}

.image-frame.empty-frame:hover {
  transform: none !important;
  filter: none !important;
}

.horizontal-gallery.focus-mode .image-frame {
  opacity: 0.1;
  filter: blur(2px);
  pointer-events: none;
}
.horizontal-gallery.focus-mode .image-frame.focused {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  z-index: 1000;
}

.horizontal-gallery.no-scroll {
  overflow-x: hidden !important;
  pointer-events: none !important;
}

/* Mobile Gallery - Vertical Layout */
@media (max-width: 768px) {
  .scroll-container {
    align-items: flex-start;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
  }
  
  /* Hide project type text on mobile */
  .dropdown li a .work-type {
    display: none;
  }
  
  /* Make kitsch dropdown text match navbar title on mobile */
  body.kitsch .dropdown li a {
    font-size: 22px;
    font-weight: 500;
  }
  
  .horizontal-gallery {
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    height: 100vh;
    padding: 3vh 0 10vh 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    perspective: 1000px;
    transform-style: preserve-3d;
  }
  
  .horizontal-gallery::-webkit-scrollbar { 
    display: none; 
  }
  
  .image-frame {
    margin: 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .image-frame img {
    max-width: 75vw;
    max-height: 60vh;
    object-fit: contain;
  }
  
  .image-frame.empty-frame {
    width: 90px !important;
    height: 30px !important;
    margin: 5px 0 !important;
  }
  
  .horizontal-gallery.focus-mode .image-frame {
    opacity: 0.1;
    filter: blur(2px);
    pointer-events: none;
  }
  
  .horizontal-gallery.focus-mode .image-frame.focused {
    opacity: 1;
    filter: none;
    pointer-events: auto;
    z-index: 1000;
  }
  
  .horizontal-gallery.no-scroll {
    overflow-y: hidden;
    pointer-events: none;
  }
  
  /* Remove hover effects on mobile */
  .image-frame:hover img,
  .image-frame:hover video {
    transform: none !important;
    filter: none !important;
  }
  
  /* Adjust play/pause button position on mobile - move 1px up */
  #project-info .project-info-toggle .label {
    margin-top: -1px;
    vertical-align: middle;
    line-height: 1;
  }
}

/* Iframe project drawer */
#project-iframe-container {
  position: fixed;
  left: 0; right: 0;
  top: 5vh;
  bottom: 0;
  will-change: transform;
  transform: translate3d(0, 100%, -1px);
  height: 95vh;
  transition: transform 0.6s ease;
  z-index: 3000;
  display: none;
  overflow: hidden;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.2);
}
#project-iframe-container.expanded { display: block; transform: translate3d(0, 0%, -1px); }
#project-iframe-container.closing  { display: block; transform: translate3d(0, 100%, -1px); }

/* Mobile iframe - full width */
@media (max-width: 768px) {
  #project-iframe-container {
    left: 0;
    right: 0;
  }
}

/* About Me iframe - goes higher on laptop only */
@media (min-width: 769px) {
  #project-iframe-container.about-me-iframe {
    top: 5vh;
    height: 95vh;
  }
}

#project-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Project info panel */
#project-info {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 10;
}

body.kitsch #project-info {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
#project-info .project-info-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  padding: 4px 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  color: #000000;
  font-family: "Lucida Grande", "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
  letter-spacing: -0.2px;
  width: auto;
  height: 28px;
  justify-content: flex-start;
}
#project-info .project-info-toggle .label {
  font-size: 16px;
  transition: color 0.1s ease;
  order: 2;
  margin-left: 8px !important;
  margin-top: 0;
  vertical-align: middle;
  line-height: 1;
}

#project-info .project-info-toggle .chevron {
  display: none; /* Hide chevron for iPod style */
}

/* iPod-style play/pause icon */
#project-info .project-info-toggle::before {
  content: url("images/BM_Play.svg");
  font-size: 16px;
  color: #2286ff;
  text-shadow: none;
  transition: all 0.3s ease;
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: relative;
  top: -1px;
}

#project-info .project-info-toggle[aria-expanded="true"]::before {
  content: url("images/BM_Pause.svg");
}

/* Normal mode: label and chevron change to black when opened */
#project-info .project-info-toggle[aria-expanded="true"] .label {
  color: #000;
  transition-delay: 0.15s;
}

#project-info .project-info-toggle[aria-expanded="true"] .chevron {
  color: #000;
  transition-delay: 0.15s;
}

/* Make toggle button expand to match dropdown width when open */
#project-info .project-info-toggle[aria-expanded="true"] {
  width: 500px;
  max-width: calc(100vw - 40px);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  color: #000;
  transition-delay: 0.15s;
}

/* Expand background when dropdown is open */
#project-info .project-info-toggle[aria-expanded="true"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: -100px; /* Adjust based on dropdown height */
  width: 100%;
  background: rgba(237, 237, 237, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: -1;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.1s;
}

/* Kitsch mode background for expanded state */
body.kitsch #project-info .project-info-toggle[aria-expanded="true"]::after {
  background: radial-gradient(circle, rgba(231, 194, 255, 1.0) 0%, rgba(237, 237, 237, 1.0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.1s;
}
/* Kitsch mode - keep iPod style but with kitsch colors */
body.kitsch #project-info .project-info-toggle::before {
  color: #fff;
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff;
}

body.kitsch #project-info .project-info-toggle .label {
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff;
  color: #ffffff;
}

body.kitsch #project-info .project-info-toggle .chevron {
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff;
  color: #ffffff;
}

/* Kitsch mode: keep white text and chevron when opened */
body.kitsch #project-info .project-info-toggle[aria-expanded="true"] {
  color: #fff;
}

body.kitsch #project-info .project-info-toggle[aria-expanded="true"] .chevron {
  color: #fff;
}
body.kitsch #project-info .project-info-toggle {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  color: #fff;
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff;
}

.project-info-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 500px;
  max-width: calc(100vw - 40px);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  padding: 0 8px 0 8px;
  color: #000;
  font-size: 16px; /* Medium - description text */
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.6s ease-in-out, text-shadow 0.6s ease-in-out, background 0.6s ease-in-out, font-family 0.6s ease-in-out, font-size 0.6s ease-in-out;
}

.project-info-dropdown .description-text {
  margin-top: 1.35em; /* One line height gap at top */
  margin-bottom: 1.35em; /* One line height gap at bottom */
  text-align: left;
}

.project-info-dropdown .year-info {
  font-size: 16px; /* Medium - year info (same as description) */
  color: #000; /* Same color as description */
  font-style: normal; /* Remove italic */
  margin-top: 0.5em;
  margin-bottom: 0.5em; /* Reduced bottom margin after year */
}

.project-info-dropdown .description-text a {
  color: #2286ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-info-dropdown .description-text a:hover {
  color: #1a6bcc;
  text-decoration: none;
}

body.kitsch .project-info-dropdown .description-text a {
  color: #2286ff;
}

body.kitsch .project-info-dropdown .description-text a:hover {
  color: #1a6bcc;
}
.project-info-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Project description styling in kitsch mode - keep normal text */
body.kitsch .project-info-dropdown {
  color: #000;
  text-shadow: none;
  background: transparent;
}

body.kitsch .project-info-dropdown.show {
  /* No separate background - contained within toggle button */
}

/* Responsive dropdown width for small screens */
@media (max-width: 502px) {
  .project-info-dropdown {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
  
  #project-info .project-info-toggle[aria-expanded="true"] {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }
}

/* About Me iframe specific styles */
.about-me-iframe .wrap {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
  width: min(600px, 70vw) !important;
}

.about-me-iframe h2 {
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.about-me-iframe p {
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Kitsch mode for About Me iframe - only h2 elements */
body.kitsch .about-me-iframe h2 {
  font-family: cursive, sans-serif !important;
  color: #fff !important;
  text-shadow: 0 0 1px #0400ff, 0 0 5px #0400ff !important;
}

/* Ensure p elements stay normal in kitsch mode */
body.kitsch .about-me-iframe p {
  font-family: inherit !important;
  color: inherit !important;
  text-shadow: none !important;
}

/* Kitsch side images for About Me */
.kitsch-side-image {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 100vh;
  background-image: url('images/test.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  clip-path: inset(5px);
}

.kitsch-left {
  left: 50px;
}

.kitsch-right {
  right: 50px;
  transform: translateY(-50%) scaleX(-1);
}

body.kitsch .kitsch-side-image {
  opacity: 1;
}
