/* Horizontal Scrollable Interests Section - Refined */

.interests-section {
  padding: 80px 0;
  background-color: var(--background-color);
  overflow: hidden;
  position: relative;
}

/* Container for the scrollable row */
.interests-gallery-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.interests-gallery {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 60px 40px; /* Padding for scaling */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
  width: 100%;
  scroll-behavior: smooth;
}

.interests-gallery::-webkit-scrollbar {
  display: none;
}

/* Navigation Arrows */
.interest-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  color: var(--heading-color);
}

.interest-nav-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.interest-nav-prev { left: 20px; }
.interest-nav-next { right: 20px; }

/* Individual Interest Item (Card) */
.interest-item {
  position: relative;
  min-width: 280px;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth fluid transition */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: var(--surface-color);
  scroll-snap-align: center;
  flex-shrink: 0;
  
  /* No filters as requested - maintaining original colors */
  transform: scale(0.92);
  /* Slight opacity reduction for non-focused items to give depth without color shift */
  opacity: 0.85;
}

.interest-item:hover {
  opacity: 1;
  transform: scale(0.95);
}

.interest-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.8s ease;
}

/* Active State (Expanded) */
.interest-item.active {
  min-width: 700px;
  transform: scale(1.02);
  opacity: 1;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
  z-index: 10;
  cursor: default;
}

/* Overlay - Minimal, just for text readability */
.interest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: opacity 0.5s ease;
}

.interest-item.active .interest-overlay {
  opacity: 0; /* Hide initial overlay when active to show full details view */
}

.interest-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.interest-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Detailed Content - Only visible when active */
.interest-details {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%; 
  height: 100%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.6s ease 0.2s; /* Delayed smooth entry */
  pointer-events: none;
  
  /* Glassmorphism gradient background for details text area */
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.85) 100%);
  backdrop-filter: blur(5px);
}

.interest-item.active .interest-details {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.interest-details h3 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.interest-details .detail-category {
  color: var(--accent-color);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 25px;
  display: block;
}

.interest-details p {
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  font-weight: 300;
}

.interest-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.interest-details-list li {
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.interest-details-list li i {
  color: var(--accent-color);
  font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .interest-item.active {
    min-width: 85vw;
  }
}

@media (max-width: 768px) {
  .interests-gallery {
    padding: 40px 20px;
    gap: 15px;
  }
  
  .interest-item {
    min-width: 260px;
    height: 380px;
  }

  .interest-item.active {
    min-width: 90vw;
    transform: scale(1);
    border-radius: 15px;
  }
  
  .interest-details {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 100%);
    padding: 30px;
    justify-content: flex-end;
  }

  .interest-details h3 { font-size: 28px; }
  .interest-details p { font-size: 14px; margin-bottom: 20px; }
  
  .interest-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
  }
  .interest-nav-prev { left: 10px; }
  .interest-nav-next { right: 10px; }
}
