:root {
  --primary-color: #3B82B4;
  --primary-dark: #2a6a9a;
  --bg-light: #f8f9fa;
  --bg-hover: #f1f3f5;
  --border-color: #dee2e6;
  --text-muted: #6c757d;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.navbar .dropdown-item {
  color: #212529;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: #f8f9fa;
  color: #16181b;
}

/* =====================================================
   Navbar Customization
   ===================================================== */

.navbar-custom {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.brand-icon-wrapper {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(26, 35, 126, 0.2);
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a237e;
  letter-spacing: -0.5px;
}

.navbar-custom .nav-link {
  font-weight: 500;
  color: #495057;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #1a237e;
  background-color: rgba(26, 35, 126, 0.05);
}

/* =====================================================
   Modern Animations & Effects
   ===================================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }
.fade-in-up.delay-5 { transition-delay: 0.5s; }
.fade-in-up.delay-6 { transition-delay: 0.6s; }

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #43a047 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse Animation for CTAs */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-pulse:hover {
  animation: pulse 1s ease-in-out infinite;
}

/* Screenshot Preview Styles */
.screenshot-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.screenshot-container:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.screenshot-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Carousel Custom Styling */
.carousel-screenshots {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.carousel-screenshots .carousel-item img {
  border-radius: 8px;
}

.carousel-screenshots .carousel-control-prev,
.carousel-screenshots .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(26, 35, 126, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.carousel-screenshots .carousel-control-prev {
  left: 15px;
}

.carousel-screenshots .carousel-control-next {
  right: 15px;
}

.carousel-screenshots .carousel-control-prev:hover,
.carousel-screenshots .carousel-control-next:hover {
  opacity: 1;
  background: rgba(26, 35, 126, 1);
}

.carousel-screenshots .carousel-indicators {
  bottom: -40px;
}

.carousel-screenshots .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #1a237e;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-screenshots .carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.2);
}

/* Section Divider */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, #3949ab, transparent);
  margin: 40px auto;
  max-width: 200px;
  border-radius: 2px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .hover-lift,
  .screenshot-container,
  .carousel-screenshots .carousel-control-prev,
  .carousel-screenshots .carousel-control-next {
    transition: none;
  }
  
  .fade-in-up {
    opacity: 1;
    transform: none;
  }
  
  .btn-pulse:hover {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* FAQ Smooth Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  padding: 0 1.5rem;
}

.faq-answer.expanded {
  max-height: 500px;
  opacity: 1;
  padding: 1rem 1.5rem;
}

.faq-question {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.faq-question:active {
  transform: scale(0.98);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question.expanded i {
  transform: rotate(180deg);
}

/* Download Button Animation */
@keyframes downloadBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.btn-download {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-download:hover::before {
  left: 100%;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(57, 73, 171, 0.4);
}

.btn-download .bi-download {
  animation: downloadBounce 1.5s ease-in-out infinite;
}

/* Hero Screenshot Frame */
.hero-screenshot-frame {
  background: linear-gradient(145deg, #ffffff, #e8eaf6);
  padding: 15px;
  border-radius: 16px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-screenshot-frame img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}