/* index.css - Homepage specific styles */

/* Hero Section Spacing Improvements */
#hero {
  /* Keep the vertical centering and spacing improvements */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh; 
  /* Note: Background GIF from styles.css will apply since we removed the override */
}

/* Glassmorphism Cards */

.expandable-list li {
  background: rgba(255, 255, 255, 0.03) !important; /* Extremely subtle white tint */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  margin-bottom: 1.5rem !important; /* Add margin back for vertical spacing */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.expandable-list li:hover {
  transform: translateY(-5px) !important; /* Subtle lift */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(57, 255, 20, 0.15) !important;
  border-color: var(--accent) !important;
  border-left: 1px solid var(--accent) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Enhanced Extra Content inside cards */
.extra-content {
  background: transparent !important;
  border-left: none !important;
  padding: 1rem 0.5rem 0.5rem 0.5rem !important;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgba(220, 220, 220, 0.9);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tech-style animated underline for headers */
h2 {
  display: inline-block;
  margin-bottom: 3rem;
  position: relative; /* Ensure positioning context for the pseudo-element */
}

h2::after {
  content: '';
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  bottom: -10px;
  left: 0;
  width: 100%;
  animation: scanline 3s ease-in-out infinite;
}

@keyframes scanline {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Scroll Animation Classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Section Enhancements - Headshot */
#about .headshot-image {
  border-radius: 50%;
  border: 2px solid rgba(121, 99, 178, 0.5);
  box-shadow: 0 0 30px rgba(121, 99, 178, 0.2);
  transition: all 0.5s ease;
}

#about .headshot-image:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.3);
  transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem !important;
  }
}