/* index.css - Specific styles for the homepage */

/* Hero Visual Carousel Integration */
.hero-visual {
  position: relative;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  background: white;
}

.mySlides {
  display: none;
  position: relative;
}

.mySlides.active {
  display: block;
}

.mySlides img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: var(--space-6) var(--space-4) var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

/* Navigation arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -30px;
  padding: var(--space-4);
  color: white;
  font-weight: bold;
  font-size: 20px;
  background: rgba(0,0,0,0.5);
  border: none;
  user-select: none;
  transition: var(--transition-base);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.next {
  right: var(--space-4);
}

.prev {
  left: var(--space-4);
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

/* Dots indicators */
.dots-container {
  text-align: center;
  margin-top: var(--space-4);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  display: inline-block;
  transition: var(--transition-fast);
}

.dot.active, .dot:hover {
  background-color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slideshow-container {
    border-radius: var(--radius-xl);
  }
  
  .mySlides img {
    height: 250px;
  }
  
  .text {
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-3) var(--space-3);
  }
  
  .prev, .next {
    padding: var(--space-3);
    font-size: 16px;
    margin-top: -25px;
  }
}

/* Performance optimizations */
.mySlides img {
  will-change: transform;
}

.about-card,
.publication-card {
  will-change: transform;
}

/* Print styles */
@media print {
  .hero,
  .footer,
  .hamburger,
  .prev,
  .next {
    display: none !important;
  }
  
  .main {
    background: white !important;
  }
  
  .about-card,
  .publication-card {
    box-shadow: none !important;
    border: 1px solid var(--gray-300) !important;
  }
}

