/* Base Styles */
:root {
  --primary: #3a86ff;
  --primary-hover: #f64f59;
  --dark-blue: #0f7d96;
  --purple: #8a81dc;
  --red: #f64f59;
  --gold: #f1c40f;
  --text: #333333;
  --light-bg: #f8f8f8;
}

a {
  color: var(--primary);
}

a:hover, a:focus, a:active {
  color: var(--primary-hover);
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-danger {
  background-color: var(--red) !important;
}

.text-danger {
  --bs-text-opacity: 1;
  color: var(--red) !important;
}

.bg-purple {
  background-color: var(--purple);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

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

.z-index-1 {
  z-index: 1;
}

.text-highlight {
  color: #000;
}

.bounce-arrow-css {
  animation: bounce-arrow-css 1s infinite alternate ease-in-out;
}

@keyframes bounce-arrow-css {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  100% {
    transform: translateX(-50%) translateY(-25px);
  }
}

.max-width-3xl {
  max-width: 48rem;
}

/* Scrolling and animation effects */
.transition-all {
  transition: all 0.3s ease;
}

/* Navbar */
#mainNav {
  transition: all 0.3s ease;
  padding: 1.5rem 0;
  background-color: transparent;
}

#mainNav.scrolled {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#mainNav .navbar-brand {
  padding: 0;
  display: block;
  position: absolute;
}

.navbar-logo {
  max-height: 72px;
  width: auto;
  transition: transform 0.3s ease;
}

#mainNav.scrolled .navbar-logo {
  transform: scale(0.9);
}

#mainNav .nav-link {
  color: #f8f8f8;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

#mainNav.scrolled .nav-link {
  color: var(--primary);
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

#mainNav .nav-link:hover {
  color: var(--primary-hover);
}

@media (max-width: 992px) {
  #mainNav .container {
    display: flex !important;
    flex-direction: row-reverse;
  }
  #mainNav .navbar-brand {
    left: 0;
    top: 0;
  }
  #mainNav .navbar-toggler {
    float: right;
  }
  #mainNav.fixed-top {
    position: absolute;
  }
  #mainNav.scrolled {
    background-color: transparent !important;
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: none !important;
  }
  #mainNav .navbar-toggler {
    color: rgb(255 255 255 / 90%) !important;
    background-color: transparent !important;
    border: 2px solid rgb(255 255 255 / 50%) !important;
  }
  #mainNav .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
    background: #00000080;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border-radius: 15px;
  }
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Hero Section */
#hero {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  filter: blur(7px);
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  will-change: transform;
}

.bg-gradient-overlay {
  background: linear-gradient(to bottom, rgb(0 0 0 / 70%), rgba(0, 0, 0, 0.4), rgb(0 0 0 / 23%));
  top: 0;
  bottom: 0;
  width: 100%;
}

.text-white-90 {
  color: rgba(255, 255, 255, 0.9);
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white-60 {
  color: rgba(255, 255, 255, 0.6);
}

.bg-opacity-20 {
  --bs-bg-opacity: 0.2;
}

.bg-opacity-10 {
  --bs-bg-opacity: 0.1;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, #3a86ff, #8a81dc, #ef6351);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.bg-gradient-primary {
  background: linear-gradient(90deg, #3a86ff, #8a81dc, #ef6351);
}

.bg-gradient-alternative {
  background: linear-gradient(90deg, #3a86ff, #c751ef);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(138, 129, 220, 0.1), rgba(239, 99, 81, 0.1));
}

.border-gradient {
  background: linear-gradient(90deg, #3a86ff, #8a81dc, #ef6351);
  height: 2px;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* How It Works Section */
.blur-effect {
  filter: blur(50px);
}

.text-purple {
  color: var(--purple);
}

.bg-purple {
  background-color: var(--purple);
}

/* Testimonials */
#testimonialCarousel .carousel-item {
  min-height: 200px;
}

#testimonialCarousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  border: 0;
  margin: 0 5px;
}

#testimonialCarousel .carousel-indicators .active {
  background: var(--primary);
  transform: scale(1.2);
}

.btn-navigation {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--primary);
  transition: all 0.3s ease;
}

.btn-navigation:hover {
  background-color: var(--primary);
  color: white;
}

/* Counter */
@keyframes countUp {
  from {
    content: "0";
  }
  to {
    content: attr(data-target);
  }
}

/* FAQ */
.accordion-button:not(.collapsed) {
  color: inherit;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.accordion-item {
  border: 0px !important;
}


.accordion-body {
  color: #666;
}

/* Footer */
.hover-white:hover {
  color: white !important;
}

.hover-white-20:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.border-opacity-20 {
  --bs-border-opacity: 0.2;
}

/* Utility Classes */
.rounded-4 {
  border-radius: 1rem;
}

.rounded-circle {
  border-radius: 50%;
}

/* Benefits Cards */
.benefit-card {
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Subscribe Form */
.subscribe-container {
  max-width: 600px;
  z-index: 10;
}

.custom-input-group {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.custom-input-group:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

#subscribeForm .form-control {
  border-radius: 50px;
  border: none;
  padding: 12px 20px;
  background-color: rgb(255 255 255 / 55%);
  color: var(--dark-blue);
  font-weight: 500;
  transition: all 0.3s ease;
}

#subscribeForm .form-control::placeholder {
  color: rgba(255, 255, 255, 1);
  font-weight: 400;
}

#subscribeForm .form-control:focus {
  box-shadow: none;
  background-color: white;
}

#subscribeForm .btn-primary {
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
  border: none;
  margin-left: 8px !important;
  transition: all 0.3s ease;
}

#subscribeForm .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(58, 134, 255, 0.4);
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  #hero {
    padding-top: 6rem;
  }
}

@media (max-width: 768px) {
  .py-lg-7 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}