/* ===== General ===== */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ===== Navbar ===== */
#mainNav {
  padding: 1rem 0;
  transition: background-color 0.3s, padding 0.3s, box-shadow 0.3s;
}

#mainNav.scrolled {
  background-color: #0f1b4c !important;
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

#mainNav .nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

#mainNav .nav-link:hover {
  opacity: 1;
}

/* Mobile: solid background when menu is open or always on small screens */
@media (max-width: 991.98px) {
  #mainNav {
    background-color: #0f1b4c !important;
  }
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0f1b4c 0%, #1a237e 40%, #283593 70%, #3f51b5 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.hero-section .container {
  z-index: 1;
}

.text-gradient {
  background: linear-gradient(135deg, #90caf9, #e1bee7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero floating cards */
.hero-visual {
  position: relative;
  height: 450px;
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

.hero-card-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-card-2 {
  top: 35%;
  right: 5%;
  animation-delay: 1.5s;
}

.hero-card-3 {
  bottom: 25%;
  left: 5%;
  animation-delay: 3s;
}

.hero-card-4 {
  bottom: 5%;
  right: 15%;
  animation-delay: 4.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Presentation Cards ===== */
.presentation-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.presentation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.presentation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* ===== Feature Cards ===== */
.feature-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1rem;
}

/* ===== Advantage Cards ===== */
.advantage-card {
  padding: 1.5rem 1rem;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: #fff;
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a237e, #3f51b5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* ===== Screenshot Slider ===== */
.screenshot-slider {
  max-width: 900px;
  margin: 0 auto;
}

.screenshot-slide {
  padding: 0 1rem;
}

.screenshot-slide img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #dee2e6;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9ecef;
}

.screenshot-caption {
  text-align: center;
  margin-top: 1.25rem;
  color: #6c757d;
  font-size: 0.95rem;
}

.screenshot-caption .badge {
  font-size: 0.8rem;
  font-weight: 600;
  vertical-align: middle;
}

/* Carousel nav buttons */
.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #1a237e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s;
}

.carousel-nav-btn:hover {
  background: #1a237e;
  color: #fff;
  transform: scale(1.1);
}

.carousel-control-prev,
.carousel-control-next {
  width: auto;
  opacity: 1;
}

.carousel-control-prev {
  left: -60px;
}

.carousel-control-next {
  right: -60px;
}

#platformCarousel .carousel-indicators {
  bottom: -40px;
}

#platformCarousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #adb5bd;
  border: none;
  opacity: 1;
  transition: background-color 0.2s, transform 0.2s;
}

#platformCarousel .carousel-indicators button.active {
  background-color: #1a237e;
  transform: scale(1.3);
}

@media (max-width: 991.98px) {
  .carousel-control-prev {
    left: 0;
  }
  .carousel-control-next {
    right: 0;
  }
  .carousel-nav-btn {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 2rem;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Client logos */
.clients-logos {
  opacity: 0.8;
}

.client-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.client-logo-img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== Testimonial Slider ===== */
#testimonialCarousel .carousel-item {
  min-height: 280px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #adb5bd;
  background: transparent;
  padding: 0;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.testimonial-dot.active {
  background-color: #1a237e;
  border-color: #1a237e;
  transform: scale(1.2);
}

#testimonialCarousel .carousel-nav-btn {
  position: static;
  flex-shrink: 0;
}

/* ===== CTA Card ===== */
.cta-card {
  background: linear-gradient(135deg, #0f1b4c, #1a237e, #3f51b5);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

/* ===== Footer ===== */
footer a:hover {
  color: #fff !important;
}

/* ===== Animations on scroll ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
  }

  .hero-section .d-flex.gap-3 {
    justify-content: center;
  }

  .hero-section .d-flex.gap-4.mt-5 {
    justify-content: center;
  }

  .py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2rem;
  }
}
