/* Custom styles for Prof. Alberto's academic website */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animations for cards */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Metric cards hover effect */
.metric-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Publication item styling */
.publication-item {
  transition: background-color 0.2s ease;
}

.publication-item:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

/* Video container responsive */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}

/* Profile image styling */
.profile-image {
  object-fit: cover;
  object-position: center top;
}

/* Section dividers */
.section-divider {
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  height: 1px;
}

/* Navigation active state */
.nav-link.active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}

/* Sticky navigation background */
.nav-sticky {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
}

/* Timeline styling */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #2563eb;
  border-radius: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -1.15rem;
  top: 1.5rem;
  width: 2px;
  height: calc(100% - 0.5rem);
  background-color: #e5e7eb;
}

.timeline-item:last-child::after {
  display: none;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: underline;
  }
}

/* Dark mode support (optional, can be enabled later) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here if needed */
}
