/* TIMELINE POSITIONING VALUES - Change these to adjust timeline: */

:root {
  --bg: #000; --fg: #fff; --bg-rgb: 0,0,0;
  --grid-item-size: 220px;
  --right-padding: 30px;
  --marker-size: 12px;
  --line-width: 2px;
  --marker-right: 0px;
  --connection-width: calc(var(--right-padding) - var(--marker-right) - (var(--marker-size) / 2));
  --connection-right: calc(-1 * var(--connection-width));
  --line-right: 35px;
  --timeline-top: 0;
  --timeline-height: auto;
}
body.light { --bg: #fff; --fg: #000; --bg-rgb: 255,255,255; }

/* SIMPLE THIN SCROLLBAR - CLEAN APPROACH */

/* Step 1: Hide ALL scrollbars by default */
* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

/* Step 2: Only show scrollbar on main page (html element) */
html {
  overflow-y: scroll !important;
  scrollbar-width: thin !important;
  scrollbar-color: #fff #000 !important; /* white thumb, black track */
}

html::-webkit-scrollbar {
  width: 2px !important;
  display: block !important;
}

html::-webkit-scrollbar-track {
  background: #000 !important;
}

html::-webkit-scrollbar-thumb {
  background: #fff !important;
  border-radius: 0 !important;
}

html::-webkit-scrollbar-button {
  display: none !important;
}

/* Step 3: Light theme colors */
body.light html {
  scrollbar-color: #000 #fff !important; /* black thumb, white track */
}

body.light html::-webkit-scrollbar-track {
  background: #fff !important;
}

body.light html::-webkit-scrollbar-thumb {
  background: #000 !important;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: sans-serif; background: var(--bg); color: var(--fg);
  transition: background .3s, color .3s; padding-top: 50px;
}

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: 40px; background: var(--bg);
  border-bottom: 1px solid var(--fg); display: flex; align-items: center;
  padding: 0 1rem; z-index: 1000; white-space: nowrap;
}
#logo { font-size: 1.5rem; font-weight: bold; margin-right: 1rem; }
#name { font-size: 1.2rem; flex-grow: 1; text-align: center; margin: 0 1rem; }
#controls { display: flex; gap: 0; height: 100%; }
#controls button {
  background: var(--bg); border: 1px solid var(--fg); color: var(--fg);
  padding: 0; margin: 0; cursor: pointer; transition: background .3s, color .3s;
  font-size: 1rem; border-left: none; min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-top: none; border-bottom: 1px solid var(--fg);
}
#controls button:first-child { border-left: 1px solid var(--fg); }
#controls button:last-child { border-right: 1px solid var(--fg); }
#controls button:hover { background: var(--fg); color: var(--bg); }
button.flash { background: var(--fg) !important; color: var(--bg) !important; }

/* TIMELINE */
.timeline-container {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 2rem var(--right-padding) 2rem 2rem; position: relative; max-width: 1200px; margin: 0 auto;
}

/* View indicator - static positioned above timeline content */
.timeline-container .view-indicator-static {
  position: absolute;
  top: 0.5rem;
  left: 2rem;
  font-size: 0.65rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  text-transform: lowercase;
  font-weight: 300;
  pointer-events: none;
}
.timeline-container::before {
  content: ''; position: absolute; right: var(--line-right); top: var(--timeline-top);
  height: var(--timeline-height); bottom: auto;
  width: var(--line-width); background: var(--fg); z-index: 1;
}
.timeline-item { display: flex; align-items: center; margin-bottom: 2rem; position: relative; width: 100%; }

.timeline-marker {
  width: var(--marker-size); height: var(--marker-size); border-radius: 50%; border: 2px solid var(--fg);
  background: var(--bg); position: absolute; right: var(--marker-right); top: 50%;
  transform: translateY(-50%); transition: all .3s ease; z-index: 5;
}
.timeline-marker.present-moment {
  border-radius: 0 0 6px 6px; height: calc(var(--marker-size) / 2); border-top: none;
}
.timeline-marker.active { box-shadow: 0 0 8px var(--fg); background: var(--fg); }
.timeline-marker:hover { box-shadow: 0 0 12px var(--fg); }

.year-label { font-size: .9rem; opacity: .3; margin: 1rem var(--right-padding) .5rem 0; align-self: flex-end; }

.project-card {
  flex: 1; border: 1px solid var(--fg); padding: .5rem 1rem; cursor: pointer;
  transition: margin-right 0.3s ease, box-shadow .3s ease; position: relative; margin-right: var(--right-padding);
}
.project-card::after {
  content: ''; position: absolute; width: var(--connection-width); height: 2px; background: var(--fg);
  right: var(--connection-right); top: 50%; transform: translateY(-50%); z-index: 3; opacity: .8;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
/* NEW: Hover effect - right edge moves inward, tail adjusts to maintain connection */
.project-card:not(.present-moment):hover {
  margin-right: calc(var(--right-padding) + 15px);
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.project-card:not(.present-moment):hover::after {
  width: calc(var(--connection-width) + 15px);
  right: calc(var(--connection-right) - 15px);
}
.project-card.present-moment {
  cursor: default; background: rgba(128,128,128,.15); border-color: rgba(128,128,128,.6);
}
.project-card.present-moment:hover { box-shadow: none; }
.project-card.present-moment::after { background: rgba(128,128,128,.6); opacity: .6; }
.project-card.expanded { height: 400px; }

.project-compact { font-size: .95rem; display: flex; align-items: baseline; gap: .5rem; }
.project-type { font-size: .6rem; color: gray; }
.project-title { font-weight: bold; }
.project-date { font-style: italic; font-size: .9rem; }

.expanded-content { 
  height: 0; overflow: hidden; transition: height .4s ease; 
}
.project-card.expanded .expanded-content { 
  height: calc(100% - 50px); overflow-y: auto; padding-top: 1rem; 
}

.close-btn {
  position: absolute; top: 6px; right: 8px; border: none; background: transparent;
  color: var(--fg); font-size: 1.2rem; cursor: pointer; display: none;
}
.project-card.expanded .close-btn { display: block; }

.timeline-position-orb {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--fg);
  pointer-events: none; transition: top .3s ease, left .3s ease; box-shadow: 0 0 12px var(--fg);
  z-index: 20; display: none;
}

/* GRID */
.grid-controls {
  position: fixed; top: 50px; left: 0; right: 0; background: var(--bg);
  padding: .5rem 1rem; z-index: 999; display: flex; align-items: center;
  gap: 1rem; font-size: .8rem; justify-content: space-between;
}
.filter-dropdown { position: relative; display: inline-block; }
.filter-select {
  background: var(--bg); border: 1px solid var(--fg); color: var(--fg);
  padding: 4px 8px; font-size: .8rem; cursor: pointer; min-width: 120px;
}
.checkbox-dropdown {
  position: absolute; top: 100%; left: 0; background: var(--bg);
  border: 1px solid var(--fg); border-top: none; min-width: 200px; z-index: 1000; display: none;
}
.checkbox-dropdown.open { display: block; }
.checkbox-item {
  display: flex; align-items: center; padding: 6px 8px; cursor: pointer; font-size: .8rem;
}
.checkbox-item:hover { background: rgba(var(--fg-rgb),.1); }
.checkbox-item input { margin-right: 8px; }

.grid-container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--grid-item-size), 1fr));
  gap: 1rem; padding: 2rem;
}
.grid-card {
  border: 1px solid var(--fg); cursor: pointer; transition: transform .2s ease;
  overflow: hidden; position: relative; aspect-ratio: 1/1;
}
.grid-card:hover { transform: scale(1.02); }
.grid-image { width: 100%; height: 100%; background-size: cover; background-position: center; }
.grid-title {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(var(--bg-rgb),.7);
  color: var(--fg); padding: .5rem; text-align: center; font-size: .8rem;
  display: flex; align-items: baseline; justify-content: center; gap: .5rem;
}

/* OVERLAYS */
.grid-overlay, .media-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
  background: rgba(0,0,0,.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.overlay-card {
  width: 80%; max-height: 80%; overflow-y: auto; background: var(--bg);
  border: 1px solid var(--fg); padding: 1rem; position: relative;
}
.overlay-content { position: relative; max-width: 90%; max-height: 90%; background: var(--bg); }
.overlay-content img, .overlay-content video, .overlay-content iframe {
  width: 100%; height: auto; display: block;
}
.fullscreen-btn {
  position: absolute; top: 10px; left: 10px; background: var(--bg);
  border: 1px solid var(--fg); color: var(--fg); padding: 5px 10px; cursor: pointer;
}
.close-overlay, .overlay-close-btn {
  position: absolute; top: 1rem; right: 1rem; background: transparent;
  border: none; color: var(--fg); font-size: 1.5rem; cursor: pointer;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s ease; z-index: 10001;
}
.close-overlay:hover, .overlay-close-btn:hover {
  opacity: 0.7;
}

/* CONTENT SECTIONS */
.content-section { margin-bottom: 1.5rem; }
.content-section h4 { margin: 0 0 .5rem 0; font-size: 1rem; font-weight: bold; }
.expanded-header { margin-bottom: 1rem; }
.expanded-header h2 { margin: 0 0 .5rem 0; font-size: 1.3rem; }
.project-metadata { display: flex; align-items: baseline; gap: .5rem; font-size: .9rem; }

.media-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.media-item {
  width: 100px; height: 100px; object-fit: cover; cursor: pointer; border: 1px solid var(--fg);
}
.video-thumb, .youtube-thumb {
  display: flex; align-items: center; justify-content: center;
  background: var(--fg); color: var(--bg); font-size: .8rem; text-align: center;
}
.external-link { color: var(--fg); text-decoration: underline; cursor: pointer; }

/* SPLASH SCREEN OVERLAY */
.splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  max-width: 70vw;
  max-height: 70vh;
  width: 90%;
  padding: 3rem;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--fg);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.splash-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.splash-name::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--fg);
  margin: 1rem auto;
  opacity: 0.3;
}

.splash-titles {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  color: var(--fg);
}

.splash-bio {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0.7;
  color: var(--fg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.splash-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.splash-btn {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  text-transform: uppercase;
}

.splash-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}

.splash-btn:hover::before {
  left: 100%;
}

.splash-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.splash-links {
  position: relative;
  margin-bottom: 2rem;
}

.links-toggle {
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.links-toggle:hover {
  opacity: 1;
}

.links-dropdown {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--fg);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
  margin-bottom: 0.5rem;
}

.links-dropdown.open {
  display: flex;
}

.links-dropdown a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.25rem 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  border-bottom: 1px solid transparent;
}

.links-dropdown a:hover {
  opacity: 1;
  border-bottom-color: var(--fg);
}

.splash-footer {
  font-size: 0.7rem;
  opacity: 0.4;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ENHANCED MOBILE STYLES */
@media (max-width: 768px) {
  /* Header adjustments */
  body { padding-top: 50px; }
  .header { height: 45px; padding: 0 0.75rem; }
  #logo { font-size: 1.1rem; margin-right: 0.5rem; }
  #name { font-size: 0.9rem; margin: 0 0.25rem; }
  #controls { gap: 0; }
  #controls button { 
    min-width: 44px; 
    height: 45px; 
    font-size: 1.1rem;
    touch-action: manipulation;
  }
  
  /* Timeline mobile optimization */
  :root {
    --right-padding: 15px;
    --marker-right: 5px;
    --line-right: calc(5px + (var(--marker-size) / 2) - (var(--line-width) / 2));
    --connection-width: calc(var(--right-padding) - 5px - (var(--marker-size) / 2));
    --connection-right: calc(-1 * var(--connection-width));
  }
  
  .timeline-container { 
    padding: 1.5rem 1rem 1.5rem 1rem; 
    align-items: stretch;
  }
  
  .timeline-item { margin-bottom: 1.5rem; }
  
  .year-label { 
    margin-right: 15px; 
    font-size: 0.8rem;
    align-self: flex-end;
  }
  
  .project-card { 
    margin-right: 15px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .project-card:not(.present-moment):hover {
    margin-right: 15px; /* Disable hover indent on mobile */
  }
  
  .project-card:not(.present-moment):hover::after {
    width: var(--connection-width); /* Keep original width */
    right: var(--connection-right); /* Keep original position */
  }
  
  .project-compact { 
    font-size: 0.85rem; 
    flex-wrap: wrap;
  }
  
  .project-type { font-size: 0.55rem; }
  .project-title { font-size: 0.9rem; }
  .project-date { font-size: 0.8rem; }
  
  .project-card.expanded { 
    height: 350px; 
    max-height: 60vh;
  }
  
  .expanded-content {
    font-size: 0.85rem;
  }
  
  .timeline-container .view-indicator-static,
  .grid-container .view-indicator-static {
    left: 1rem;
    font-size: 0.6rem;
    top: 0.25rem;
  }
  
  /* Grid mobile optimization */
  .grid-controls { 
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.75rem;
    top: 45px;
  }
  
  .grid-controls > div {
    flex: 1 1 auto;
  }
  
  .filter-dropdown {
    order: 2;
  }
  
  .grid-controls label:has(input[type="range"]) {
    order: 3;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
  }
  
  .grid-controls input[type="text"] {
    width: 150px;
    font-size: 0.75rem;
    padding: 6px;
  }
  
  .filter-select {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-width: 100px;
  }
  
  .checkbox-dropdown {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .checkbox-item {
    padding: 8px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .grid-container { 
    padding: 7rem 1rem 1rem 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  :root {
    --grid-item-size: 150px;
  }
  
  .grid-card {
    min-height: 150px;
  }
  
  .grid-title {
    font-size: 0.7rem;
    padding: 0.4rem;
  }
  
  /* Splash mobile optimization */
  .splash-content {
    max-width: 95vw;
    max-height: 90vh;
    padding: 2rem 1.5rem;
    width: 95%;
  }
  
  .splash-name {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
  }
  
  .splash-titles {
    font-size: clamp(0.85rem, 3vw, 1rem);
    margin-bottom: 1rem;
  }
  
  .splash-bio {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    line-height: 1.5;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .splash-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .splash-btn {
    width: 100%;
    max-width: 250px;
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
    min-width: unset;
  }
  
  .splash-links {
    margin-bottom: 1.5rem;
  }
  
  .links-toggle {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }
  
  .links-dropdown {
    bottom: auto;
    top: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0;
    width: 90vw;
    max-width: 300px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .links-dropdown a {
    font-size: 0.75rem;
    padding: 0.4rem 0;
  }
  
  .splash-footer {
    font-size: 0.65rem;
  }
  
  .overlay-close-btn {
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
  }
  
  /* Overlays mobile optimization */
  .overlay-card {
    width: 95%;
    max-height: 90%;
    padding: 1rem;
  }
  
  .overlay-content {max-width: 95%;
    max-height: 85%;
  }
  
  .media-overlay .overlay-content {
    width: 95%;
  }
  
  .fullscreen-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  
  .content-section {
    margin-bottom: 1rem;
  }
  
  .content-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  
  .expanded-header h2 {
    font-size: 1.1rem;
  }
  
  .project-metadata {
    font-size: 0.8rem;
  }
  
  .media-gallery {
    gap: 8px;
  }
  
  .media-item {
    width: 80px;
    height: 80px;
  }
  
  .video-thumb, .youtube-thumb {
    font-size: 0.7rem;
  }
}

/* Very small devices (iPhone SE, etc.) */
@media (max-width: 375px) {
  /* Header ultra-compact */
  #logo { 
    font-size: 1rem; 
    margin-right: 0.25rem;
  }
  #name { 
    font-size: 0.8rem;
    display: none; /* Hide name on very small screens */
  }
  #controls button {
    min-width: 40px;
    font-size: 1rem;
  }
  
  /* Timeline adjustments */
  .timeline-container {
    padding: 1rem 0.75rem;
  }
  
  .project-card {
    padding: 0.5rem 0.6rem;
    margin-right: 12px;
  }
  
  .project-compact {
    font-size: 0.8rem;
  }
  
  .project-type { font-size: 0.5rem; }
  .project-title { font-size: 0.85rem; }
  .project-date { font-size: 0.75rem; }
  
  .year-label {
    font-size: 0.75rem;
  }
  
  /* Grid adjustments */
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding-top: 8rem; /* More space for wrapped controls */
  }
  
  :root {
    --grid-item-size: 120px;
  }
  
  .grid-controls input[type="text"] {
    width: 120px;
  }
  
  /* Splash adjustments */
  .splash-content {
    padding: 1.5rem 1rem;
  }
  
  .splash-name {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  
  .splash-titles {
    font-size: 0.8rem;
  }
  
  .splash-bio {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  .splash-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* Touch device optimizations */
@media (pointer: coarse) {
  /* Increase touch targets */
  button, .splash-btn, .links-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  .checkbox-item {
    min-height: 44px;
  }
  
  .external-link {
    display: inline-block;
    padding: 4px 0;
    margin: -4px 0;
  }
  
  /* Disable hover effects on touch */
  .project-card:hover {
    margin-right: var(--right-padding);
    box-shadow: none;
  }
  
  .project-card:hover::after {
    width: var(--connection-width);
    right: var(--connection-right);
  }
  
  .timeline-marker:hover {
    box-shadow: none;
  }
  
  .grid-card:hover {
    transform: none;
  }
}

/* Safe area adjustments for notched devices */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .timeline-container {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(var(--right-padding), env(safe-area-inset-right));
  }
  
  .grid-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  
  .splash-content {
    margin-left: env(safe-area-inset-left);
    margin-right: env(safe-area-inset-right);
  }
}

/* Landscape mobile adjustments */
@media (max-width: 896px) and (orientation: landscape) {
  .splash-content {
    max-height: 85vh;
    padding: 1.5rem;
  }
  
  .splash-name {
    font-size: 2rem;
  }
  
  .splash-bio {
    margin-bottom: 1.5rem;
  }
  
  .splash-actions {
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .project-card.expanded {
    height: 280px;
    max-height: 70vh;
  }
  
  .overlay-card {
    max-height: 85vh;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .timeline-marker {
    border-width: 1.5px;
  }
  
  .timeline-container::before {
    width: 1.5px;
  }
  
  .project-card::after {
    height: 1.5px;
  }
}

/* Animation reduction for performance */
@media (max-width: 768px) {
  * {
    animation-duration: 0.2s !important;
  }
  
  .project-card,
  .timeline-marker,
  .grid-card {
    transition-duration: 0.15s !important;
  }
}

/* Animation */
.splash-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}