/* Base Styles */
body {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  cursor: none;
  overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(13, 110, 253, 0.8);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition:
    transform 0.2s cubic-bezier(0.4, 2, 0.6, 1),
    background 0.3s;
  z-index: 9999;
  mix-blend-mode: difference;
  border: 2px solid #fff2;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .cursor {
    display: none;
  }
}

.cursor.cursor-hover {
  transform: translate(-50%, -50%) scale(2.5);
  background: rgba(220, 53, 69, 0.8);
  border: 2px solid #fff;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.9);
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero.parallax .hero-background {
  transition: transform 0.1s;
}

/* Decorative Elements */
.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: white;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

/* Feature Icons */
.feature-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition:
    transform 0.3s,
    filter 0.3s;
  cursor: pointer;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.feature-icon:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 4px 8px rgba(118, 75, 162, 0.5));
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1.2) rotate(10deg); }
  50% { transform: scale(1.3) rotate(10deg); }
}

/* Cards with Glassmorphism */
.card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.card.border-primary {
  border: 2px solid #667eea;
  position: relative;
  overflow: hidden;
}

.card.border-primary::before {
  content: "TERPOPULER";
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Navigation */
nav {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav .nav-link {
  position: relative;
  overflow: hidden;
  color: #333;
  font-weight: 500;
  transition:
    color 0.3s,
    transform 0.3s;
}

nav .nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: -100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: left 0.3s;
}

nav .nav-link:hover,
nav .nav-link:focus {
  color: #667eea;
  transform: translateY(-2px);
}

nav .nav-link:hover::after,
nav .nav-link:focus::after {
  left: 0;
}

/* Buttons */
.btn {
  transition:
    transform 0.2s,
    background-color 0.3s,
    box-shadow 0.3s;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 50px;
  font-weight: 600;
  padding: 12px 32px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
  background: transparent;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.btn-light {
  background: white;
  color: #667eea;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  background: #f8f9fa;
  color: #764ba2;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-light {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Statistics Section */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(102, 126, 234, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
}

/* FAQ Section */
.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.15);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #333;
  user-select: none;
  transition: all 0.3s;
}

.faq-question:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  color: #667eea;
}

.faq-question i {
  transition: transform 0.3s;
  color: #667eea;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-out;
  padding: 0 1.5rem;
  color: #6c757d;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* Trust Badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin: 0.5rem;
  transition: all 0.3s;
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.2);
}

.trust-badge i {
  color: #667eea;
  font-size: 1.5rem;
}

/* Star Rating */
.star-rating {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s;
}

.testimonial-card::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  color: rgba(102, 126, 234, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(102, 126, 234, 0.2);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #667eea;
  margin-bottom: 1rem;
}

/* Section Decorations */
.section-decoration {
  position: relative;
  overflow: hidden;
}

.section-decoration::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 50%;
  z-index: 0;
}

.section-decoration > * {
  position: relative;
  z-index: 1;
}

/* Animated underline for links */
a:not(.btn):not(.nav-link) {
  position: relative;
  text-decoration: none;
  transition:
    color 0.3s,
    transform 0.2s;
}

a:not(.btn):not(.nav-link)::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

a:not(.btn):not(.nav-link):hover::after,
a:not(.btn):not(.nav-link):focus::after {
  transform: scaleX(1);
  transform-origin: left;
}

a:not(.btn):not(.nav-link):hover,
a:not(.btn):not(.nav-link):focus {
  color: #667eea;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

footer a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

footer a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: #667eea;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

footer a:hover {
  color: #667eea;
}

footer a:hover::after,
footer a:focus::after {
  transform: scaleX(1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
}

/* Pricing Table Enhancements */
.pricing-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(245, 87, 108, 0.4);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  z-index: 10000;
  transition: width 0.1s;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .section-decoration::before {
    width: 300px;
    height: 300px;
  }
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  .cursor,
  nav,
  footer,
  .btn,
  #scroll-progress {
    display: none;
  }
}