/* ============================================
   BASE & GLOBAL
   ============================================ */
body {
  font-family: 'Inter', sans-serif;
  background-color: #03070f;
  padding-top: 80px;
  overflow-x: clip;
}

#header-container {
  position: relative;
  z-index: 50;
}

/* ============================================
   GLASS CARDS & BORDERS
   ============================================ */
.glass-card {
  background: rgba(12, 25, 45, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 2rem;
}

.glass-card-light {
  background: rgba(18, 35, 55, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.gradient-border {
  position: relative;
  background: linear-gradient(135deg, #0A1929, #07111f);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(125deg, #00e0ff, #0066ff, #00c3ff);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hover-glow {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -12px rgba(0, 200, 255, 0.25);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: linear-gradient(105deg, #00c6ff, #0072ff);
  box-shadow: 0 8px 20px -6px rgba(0, 114, 255, 0.4);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(105deg, #00b3ee, #0066e6);
  transform: scale(1.02);
  box-shadow: 0 12px 28px -8px rgba(0, 160, 255, 0.6);
}

/* ============================================
   BACKGROUND
   ============================================ */
.bg-dark-deep {
  background: #03070f;
}

/* ============================================
   ANIMATIONS & REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-slow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.animate-float {
  animation: float-slow 3s infinite alternate ease-in-out;
}

.page-transition {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link-active {
  color: #06b6d4;
  border-bottom: 2px solid #06b6d4;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, #0A1929, #07111f);
  border-radius: 2rem;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1100;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

.toast.show {
  transform: translateX(0);
}

/* ============================================
   HERO CARD HOVER EFFECT
   ============================================ */
.glass-card.animate-float:hover {
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.4);
  border-color: rgba(0, 210, 255, 0.8);
  scale: 1.03;
}

  /* Hero section centering */
  #page-container .grid.md\:grid-cols-2:first-of-type {
    text-align: center;
  }
  #page-container .grid.md\:grid-cols-2:first-of-type > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #page-container .grid.md\:grid-cols-2:first-of-type .flex.flex-wrap {
    justify-content: center;
  }
  #page-container .grid.md\:grid-cols-2:first-of-type > div:last-child {
    margin-left: auto;
    margin-right: auto;
  }

/* ============================================
   TESTIMONIALS (FADE CAROUSEL)
   ============================================ */
.testimonial-fade-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 280px;
}

.testimonial-fade-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  visibility: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.testimonial-fade-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.testimonial-fade-slide .testimonial-card {
  flex: 1 1 calc(33.333% - 1.5rem);
  min-width: 250px;
  background: rgba(18, 35, 55, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
  text-align: center;
}

.testimonial-fade-slide .testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 15px 30px -12px rgba(0, 200, 255, 0.2);
}

.testimonial-card .flex.items-center {
  justify-content: center;
}

.testimonial-card .flex.items-center i {
  margin-right: 0.5rem;
}

.testimonial-card .flex.items-center div {
  text-align: center;
}

/* Testimonial Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  background: #444;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.testimonial-dot.active {
  background: #06b6d4;
  width: 24px;
  border-radius: 12px;
}

/* ============================================
   PAYMENT PARTNER SLIDER (Pure CSS)
   ============================================ */
.payment-partner-slider-css {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.05), transparent);
  padding: 20px 0;
}

.payment-slider-track-css {
  display: inline-flex;
  gap: 2rem;
  animation: slideLeftToRight 25s linear infinite;
  will-change: transform;
}

.payment-slider-track-css:hover {
  animation-play-state: paused;
}

@keyframes slideLeftToRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.payment-partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-partner-logo:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-5px);
}

.payment-partner-logo .w-12 i {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.payment-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ============================================
   TRUSTED PARTNER SLIDER (Pure CSS)
   ============================================ */
.partner-slider-css {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 20px 0;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.05), transparent);
}

.partner-slider-track-css {
  display: inline-flex;
  gap: 2rem;
  animation: slideRightToLeft 30s linear infinite;
  will-change: transform;
}

.partner-slider-track-css:hover {
  animation-play-state: paused;
}

@keyframes slideRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 210, 255, 0.2);
  transition: all 0.3s;
}

.partner-logo:hover {
  border-color: rgba(0, 210, 255, 0.6);
  transform: scale(1.05);
}

.partner-logo i {
  font-size: 2rem;
  margin-right: 0.5rem;
}

.partner-logo span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ccc;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  background: rgba(18, 35, 55, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-question {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(0, 210, 255, 0.1);
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  padding: 0 1.5rem;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s;
  color: #bbb;
  line-height: 1.6;
  border-top: 0 solid rgba(0, 210, 255, 0.2);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1rem 1.5rem;
  border-top-width: 1px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* ============================================
   FEATURE CARDS (HOVER EFFECTS)
   ============================================ */
.grid.sm\:grid-cols-2.lg\:grid-cols-4 .glass-card-light {
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.grid.sm\:grid-cols-2.lg\:grid-cols-4 .glass-card-light:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 20px 35px -12px rgba(0, 200, 255, 0.3);
  background: rgba(18, 35, 55, 0.8);
}

.grid.sm\:grid-cols-2.lg\:grid-cols-4 .glass-card-light .w-12.h-12 {
  margin-left: auto;
  margin-right: auto;
}

/* Features page - center icons */
#page-container .glass-card-light > i:first-child {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Pricing page - center plan name and price */
#page-container .gradient-border > div > h3,
#page-container .gradient-border > div > div.mt-3 {
  text-align: center !important;
}

/* ============================================
   RESPONSIVE STYLES (MERGED)
   ============================================ */

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .testimonial-fade-slide .testimonial-card {
    flex: 1 1 calc(50% - 1.5rem);
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .testimonial-fade-slide {
    gap: 1rem;
  }
  .testimonial-fade-slide .testimonial-card {
    flex: none;
    width: 90%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* Small Mobile (max-width: 640px) */
@media (max-width: 640px) {
  .counter-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .counter-box {
    flex: 0 1 auto;
    min-width: 70px;
    padding: 0.65rem 0.4rem;
  }

  .payment-partner-logo .w-12 {
    width: 2.5rem;
    height: 2.5rem;
  }
  .payment-partner-logo img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .partner-logo {
    flex-direction: column;
    text-align: center;
    padding: 0.5rem 1rem;
  }
  .partner-logo i {
    margin-right: 0;
    margin-bottom: 0.25rem;
  }

  /* Footer centering */
  footer .grid {
    text-align: center;
  }
  footer .grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  footer .grid ul {
    text-align: center;
  }
}

/* Extra small devices (max-width: 767px) */
@media (max-width: 767px) {
  .grid.md\:grid-cols-2 > div:first-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .grid.md\:grid-cols-2 > div:first-child .flex.flex-wrap {
    justify-content: center;
  }
  .grid.md\:grid-cols-2 > div:first-child .inline-flex {
    margin-left: auto;
    margin-right: auto;
  }
}