/* 🌐 Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #111827;
}

marquee {
  font-size: 15px;
  font-weight: 500;
}

/* 📸 Image Slider Section */
.image-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #000;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: all 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  transform: translateY(0%);
  z-index: 1;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 🎯 Slide Content Overlay */
.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.55);
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-in-out;
}

.slide-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-content h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 600;
  opacity: 0;
}

.slide-content p {
  font-size: 1.15rem;
  margin-bottom: 25px;
  max-width: 600px;
  opacity: 0;
}

/* 🎯 Professional CTA Button */
.slider-button {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid #ffffff50;
  border-radius: 30px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  opacity: 0;
}

.slider-button:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  border-color: #fff;
}

/* ✨ Fade In Animations */
.slide-content.animate h3 {
  animation: fadeInUp 1s ease forwards 0.3s;
}

.slide-content.animate p {
  animation: fadeInUp 1s ease forwards 0.6s;
}

.slide-content.animate .slider-button {
  animation: fadeInUp 1s ease forwards 0.9s;
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ⬅️➡️ Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.slider-nav span {
  font-size: 28px;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* 🔘 Nav Image Preview - Hidden by default */
.slider-nav .nav-preview {
  opacity: 0;
  width: 0;
  transition: all 0.3s ease;
}

.slider-nav:hover .nav-preview {
  opacity: 1;
  width: 40px;
}

.nav-preview {
  height: 40px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid #fff;
}

.slider-nav.prev {
  left: 25px;
}

.slider-nav.next {
  right: 25px;
}

/* 🔽 Responsive Enhancements */
@media (max-width: 768px) {
  .image-slider {
    height: 320px;
  }

  .slide-content {
    padding: 20px;
  }

  .slide-content h3 {
    font-size: 1.6rem;
  }

  .slide-content p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .slider-button {
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 25px;
  }

  .slider-nav {
    padding: 8px;
  }

  .nav-preview {
    width: 30px;
    height: 30px;
  }

  .slider-nav:hover .nav-preview {
    width: 30px;
  }
}

  

/* 🔹 Why Choose KlikDataHub Section */
.why-opticonnect {
  padding: 60px 20px;
}

.why-opticonnect .feature-box {
  background: #fff;
  border-radius: 16px;
  padding: 35px 30px;
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid #2563eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.why-opticonnect .feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.why-opticonnect .icon {
  font-size: 36px;
  padding: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.3s ease;
}

.icon-1 {
  background: #eaf1ff;
  color: #2563eb;
}

.icon-2 {
  background: #fff6e5;
  color: #f59e0b;
}

.icon-3 {
  background: #e8fff3;
  color: #10b981;
}

.why-opticonnect .feature-box h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}

.why-opticonnect .feature-box p {
  font-size: 0.95rem;
  color: #555;
}

/* ✨ Scroll Animation */
.scroll-feature {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.scroll-feature.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* 🔹 Homepage Categories Section */
.home-categories {
  padding-top: 40px;
  padding-bottom: 40px;
}

.home-categories .card {
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.home-categories .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.category-img {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}


/* 🔹 User Journey Section */
.user-journey {
  background-color: #f8f9fa;
  padding: 40px 20px;
  border-radius: 12px;
}

.user-journey .card {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.user-journey .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.user-journey .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 15px;
}

.user-journey .card-body p {
  font-size: 1rem;
  color: #555;
}

.user-journey .btn {
  margin-top: 15px;
}

/* 🔄 Scroll-Triggered Animation Base */
.scroll-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: transform, opacity;
}

/* ✅ When in viewport */
.scroll-card.in-view.animate-left {
  animation: slideInLeft 0.7s ease forwards;
}

.scroll-card.in-view.animate-right {
  animation: slideInRight 0.7s ease forwards;
}

/* 🎬 Keyframe: Slide In Left */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 🎬 Keyframe: Slide In Right */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}



/* 🔸 Marquee Base */
.dashboard-marquee {
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dashboard-marquee.open {
  background-color: #198754; /* Bootstrap green */
  color: #eafff3;
}

.dashboard-marquee.closed {
  background-color: #dc3545; /* Bootstrap red */
  color: #ffeaea;
}

/* 🧾 Text inside marquee */
.marquee-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: inherit;
}

.marquee-text strong {
  text-transform: uppercase;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dashboard-marquee.open strong {
  color: #d4fcdc;
}

.dashboard-marquee.closed strong {
  color: #ffdede;
}

.marquee-text:hover {
  animation-play-state: paused;
}


/* Hover effect for active cards */
.hover-card:hover {
  transform: translateY(-4px);
  transition: 0.2s ease-in-out;
}

/* Style for inactive (disabled) cards */
.inactive-card {
  position: relative;
  opacity: 0.75;
  cursor: not-allowed;
  border: 1px solid #ddd;
}

.inactive-card .card-body {
  background-color: #f8f9fa;
}

.inactive-img {
  filter: grayscale(100%);
}

/* Overlay for unavailable items */
.inactive-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  color: #dc3545;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .25rem;
}

