/* Custom styles beyond Tailwind */

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Image flash overlay */
#flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-out;
}

#flash-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#flash-overlay img {
  position: absolute;
  width: 280px;
  height: 400px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.15s ease;
}

@media (min-width: 768px) {
  #flash-overlay img {
    width: 350px;
    height: 500px;
  }
}

#flash-overlay img.active {
  opacity: 1;
}

/* Main content hidden during flash */
#main-content {
  opacity: 0;
  transition: opacity 1s ease-in;
}

#main-content.visible {
  opacity: 1;
}

/* Hero illustration styling */
.hero-illustration {
  max-width: 280px;
  transform: rotate(3deg);
}

@media (min-width: 768px) {
  .hero-illustration {
    max-width: 350px;
  }
}

/* Featured project star styling */
.featured-star {
  color: #d1d5db;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

/* Navigation link hover effect */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Section styling */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* Experience and project items */
.item-title {
  font-weight: 500;
}

.item-meta {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Project item hover effect */
.project-item {
  display: block;
  transition: transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.project-item:hover {
  transform: scale(1.02);
}

/* Project descriptions */
.project-short {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.project-long {
  color: #9ca3af;
  font-size: 0.8125rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
}

.project-item:hover .project-long {
  max-height: 100px;
  opacity: 1;
  margin-top: 0.375rem;
}

/* Featured projects */
.featured-project {
  display: block;
}

/* External link icon styling */
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.external-link:hover {
  color: #111827;
}

/* Placeholder image styling */
.placeholder-img {
  background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Book List */
.book-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.book-list li {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.book-list .book-title {
  color: #374151;
}

.book-list .book-author {
  color: #9ca3af;
}

.book-list .book-author::before {
  content: "— ";
}

/* Article links */
.article-link {
  color: #6b7280;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.article-link:hover {
  color: #111827;
}

.article-author {
  color: #9ca3af;
  font-size: 0.875rem;
}

.article-author::before {
  content: "— ";
}

/* Experience section illustration - permanent on right */
.experience-illustration {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%) rotate(3deg);
  width: 440px;
  opacity: 0.9;
  pointer-events: none;
}

@media (min-width: 768px) {
  .experience-illustration {
    width: 550px;
  }
}

@media (max-width: 1100px) {
  .experience-illustration {
    display: none;
  }
}

/* Reading section illustration - permanent on left */
.reading-illustration {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  width: 200px;
  opacity: 0.9;
  pointer-events: none;
}

@media (min-width: 768px) {
  .reading-illustration {
    width: 250px;
    left: -100px;
  }
}

@media (max-width: 1100px) {
  .reading-illustration {
    display: none;
  }
}


