/* Custom styles for the features carousel */
#features-carousel {
  padding: 60px 0;
}

#features-carousel .carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#features-carousel .carousel-item {
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  min-height: 500px;
}

#features-carousel .carousel-caption-side {
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

#features-carousel .carousel-caption-side h3 {
  color: #764ba2;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

#features-carousel .carousel-caption-side p.lead {
  color: #5a6c7d;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

#features-carousel .carousel-control-prev,
#features-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

#features-carousel .carousel-control-prev:hover,
#features-carousel .carousel-control-next:hover {
  opacity: 1;
}

#features-carousel .carousel-control-prev-icon,
#features-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

#features-carousel .carousel-indicators {
  margin-bottom: -30px;
}

#features-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #764ba2;
  background-color: transparent;
  margin: 0 5px;
}

#features-carousel .carousel-indicators button.active {
  background-color: #764ba2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #features-carousel .carousel-item {
    padding: 20px;
    text-align: center;
  }
  
  #features-carousel .carousel-caption-side {
    margin-top: 30px;
  }
  
  #features-carousel .carousel-caption-side h3 {
    font-size: 1.5rem;
  }
  
  #features-carousel .carousel-caption-side p.lead {
    font-size: 1rem;
  }
}

/* Animation for smooth transitions */
#features-carousel .carousel-item img {
  transition: transform 0.3s ease;
}

#features-carousel .carousel-item:hover img {
  transform: scale(1.02);
}

/* Section styling with purple theme */
#features-carousel.portfolio {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

#features-carousel.portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

#features-carousel .container {
  position: relative;
  z-index: 2;
}

#features-carousel .section-title h2 {
  color: #764ba2;
  font-weight: 700;
  margin-bottom: 15px;
}

#features-carousel .section-title p {
  color: #5a6c7d;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* YouTube button styling */
#features-carousel .btn-outline-primary {
  border-color: #764ba2;
  color: #764ba2;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#features-carousel .btn-outline-primary:hover {
  background-color: #764ba2;
  border-color: #764ba2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

/* Hero carousel styles */
#heroCarousel {
  width: 100%;
  height: 100%;
  position: relative;
}

#heroCarousel .carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

#heroCarousel .carousel-item {
  width: 100%;
  height: 100%;
  position: relative;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: auto;
  border: 3px solid #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain;
  background: #f8f9fa;
  padding: 20px;
}

#heroCarousel .carousel-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Hero text overlay styles */
#heroCarousel .hero-overlay {
  position: absolute;
  bottom: 2.5em;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 1;
}

#heroCarousel .hero-overlay h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#heroCarousel .hero-overlay p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.95;
  line-height: 1.4;
}

/* Animation for text overlay */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reset animation for active slide */
#heroCarousel .carousel-item.active .hero-overlay {
  opacity: 1;
}

/* Responsive adjustments for hero carousel */
@media (max-width: 768px) {
  #heroCarousel .hero-overlay {
    bottom: 2em;
    width: 85%;
    padding: 12px 20px;
  }
  
  #heroCarousel .hero-overlay h5 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  #heroCarousel .hero-overlay p {
    font-size: 0.8rem;
  }
  
  #heroCarousel .hero-indicators {
    margin-top: 15px;
  }
  
  #heroCarousel .hero-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 6px;
  }
}

/* Ensure hero column takes full space */
.hero-img {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero carousel styles */
#heroCarousel {
  width: 100%;
  height: 100%;
}

#heroCarousel .carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

#heroCarousel .carousel-item {
  width: 100%;
  height: 100%;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: auto;
  border: 8px solid #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain;
  background: #f8f9fa;
  padding: 20px;
}

#heroCarousel .carousel-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Hero carousel indicators styling */
#heroCarousel .hero-indicators {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -22px;
  margin-bottom: 0;
  z-index: 10;
}

#heroCarousel .hero-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #764ba2;
  background-color: transparent;
  margin: 0 8px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

#heroCarousel .hero-indicators button.active {
  background-color: #764ba2;
  opacity: 1;
  transform: scale(1.2);
}

#heroCarousel .hero-indicators button:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Image Modal Styling */
#imageModal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
}

#imageModal .modal-title {
  font-weight: 600;
}

#imageModal .btn-close {
  filter: invert(1);
}

#imageModal .modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(118, 75, 162, 0.2);
}

#imageModal .modal-body {
  padding: 30px;
}

#imageModal img {
  max-height: 70vh;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

/* Modal trigger hover effect */
.modal-trigger:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(118, 75, 162, 0.2) !important;
}

/* Resource and Award Cards Styling */
.resource-card, .award-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(118, 75, 162, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card:hover, .award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(118, 75, 162, 0.15);
  border-color: rgba(118, 75, 162, 0.2);
}

.resource-card .resource-icon, .award-card .award-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.resource-card h4, .award-card h4 {
  color: #764ba2;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.resource-card p, .award-card p {
  color: #5a6c7d;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-resource {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-resource:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(118, 75, 162, 0.3);
  color: white;
}

.resource-preview img {
  max-height: 150px;
  width: auto;
  border: 3px solid #f8f9fa;
  transition: transform 0.3s ease;
}

.resource-preview img:hover {
  transform: scale(1.05);
}

.award-badge img {
  max-height: 120px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.award-details {
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
  margin-top: auto !important;
}

.award-details small {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .resource-card, .award-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .resource-card .resource-icon, .award-card .award-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .resource-card h4, .award-card h4 {
    font-size: 1.2rem;
  }
  
  .btn-resource {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .resource-preview img {
    max-height: 120px;
  }
  
  .award-badge img {
    max-height: 100px;
  }
}
