/* 
 * Eliminate Your Debt Fast Finance Website - Custom Styles
 * Color Theme: Modern gradient with purple, blue, teal accents
 * Replace brand colors by changing the CSS variables in :root
 */

:root {
  /* Brand Color Palette - Replace these values to change theme */
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #00b09b;
  --accent-color-2: #96c93d;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --success-color: #28a745;
  
  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
  --gradient-dark: linear-gradient(135deg, #16213e, var(--dark-color));
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  
  /* Animation Timings */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Shadows */
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 12px 36px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(106, 17, 203, 0.3);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* For fixed navbar */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
  background-color: var(--light-color);
}

/* Accessibility */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.3s;
}

.skip-to-main:focus {
  top: 0;
}

/* Focus styles for accessibility */
:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.lead {
  font-size: 1.1rem;
  color: var(--gray-color);
}

/* Navbar Styles */
.navbar {
  padding: 1rem 0;
  transition: all var(--transition-medium);
  background-color: transparent;
  box-shadow: none;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  padding: 0.5rem 0;
}

.logo-square {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  font-weight: bold;
}

.logo-text {
  font-size: 1.2rem;
}

.brand-name {
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  color: var(--dark-color);
  position: relative;
  padding: 0.5rem 0;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--accent-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: -2;
}

.hero-bg.active {
  opacity: 1;
}

.hero-bg-1 {
  background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
}

.hero-bg-2 {
  background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
}

.hero-bg-3 {
  background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  opacity: 0.85;
  z-index: -1;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-heavy);
  color: white;
}

.floating-card {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: white;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-accent);
  transition: width var(--transition-fast);
  z-index: -1;
}

.btn-gradient:hover::before {
  width: 100%;
}

.btn-outline-gradient {
  background: transparent;
  border: 2px solid transparent;
  background-image: var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
}

.btn-outline-gradient:hover {
  background-image: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.arrow-icon {
  transition: transform var(--transition-fast);
}

.btn-gradient:hover .arrow-icon {
  transform: translateX(5px);
}

/* Badges Container */
.badges-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.badge-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  width: 80%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.floating-badge {
  animation: floating 4s ease-in-out infinite;
}

.badge-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-10px);
  box-shadow: var(--shadow-medium);
}

.badge-content {
  display: flex;
  align-items: center;
  color: white;
}

.badge-content i {
  font-size: 1.5rem;
  margin-right: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge-content span {
  font-size: 1.2rem;
  font-weight: 600;
}

/* About Section */
.about-section {
  background-color: white;
}

.about-image {
  background-image: url('https://images.unsplash.com/photo-1554224154-26032ffc0d07?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  min-height: 400px;
}

.floating-image {
  animation: floating 8s ease-in-out infinite;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Services Section */
.services-section {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gradient-primary);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: white;
  transition: all var(--transition-medium);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-description {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  min-height: 60px;
}

.btn-details {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

.btn-details:hover {
  color: var(--secondary-color);
}

.btn-details i {
  transition: transform var(--transition-fast);
}

.btn-details.active i {
  transform: rotate(180deg);
}

.detailed-card {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium) ease;
  margin-top: 1rem;
}

.detailed-card.active {
  max-height: 500px;
}

.detailed-content {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
}

.detailed-content h4 {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.service-points {
  list-style: none;
  padding: 0;
}

.service-points li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
}

.service-points li i {
  color: var(--accent-color);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Testimonial Section */
.testimonial-section {
  background: var(--gradient-dark);
  color: white;
}

.testimonial-content {
  color: white;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent-color);
}

.testimonial-image {
  background-image: url('images/cl.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  min-height: 400px;
}

.testimonial-author {
  margin-top: 1.5rem;
}

.author-name {
  font-weight: 600;
  font-size: 1.2rem;
}

.author-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
  background-color: white;
}

.accordion-button {
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  background-color: white;
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(106, 17, 203, 0.05);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.25);
  border-color: var(--primary-color);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236a11cb'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236a11cb'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-body {
  padding: 1.5rem;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact & Newsletter Section */
.contact-section {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.contact-form-container,
.newsletter-container {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-light);
  height: 100%;
}

.contact-form-container h3,
.newsletter-container h3 {
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent-color);
}

.form-control, .form-select {
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
}

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: white;
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-about {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-accent);
}

.footer-links {
  line-height: 2;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  padding-left: 0;
}

.footer-link:hover {
  color: white;
  padding-left: 10px;
}

.footer-link::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all var(--transition-fast);
}

.footer-link:hover::before {
  left: 0;
  opacity: 1;
}

.footer-address p {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.footer-address i {
  margin-top: 0.25rem;
  margin-right: 0.75rem;
  color: var(--accent-color);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0;
}

/* Success Popup */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.success-popup.active {
  opacity: 1;
  visibility: visible;
}

.success-content {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: translateY(30px);
  transition: transform var(--transition-medium);
  box-shadow: var(--shadow-heavy);
}

.success-popup.active .success-content {
  transform: translateY(0);
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.success-title {
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.success-message {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: var(--gradient-dark);
  color: white;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal-title {
  color: white;
}

.modal-body {
  padding: 2rem;
}

.btn-close {
  filter: invert(1);
}

.modal-testimonial {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  height: 100%;
  transition: all var(--transition-fast);
}

.modal-testimonial:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-light);
}

.testimonial-header {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 1rem;
}

.testimonial-text {
  color: var(--gray-color);
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .badges-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
  }
  
  .badge-item {
    width: calc(50% - 1rem);
  }
  
  .floating-card {
    animation: none;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .badge-item {
    width: 100%;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .contact-form-container,
  .newsletter-container {
    padding: 1.5rem;
  }
  
  .footer-about {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .badge-item {
    padding: 1rem;
  }
  
  .badge-content span {
    font-size: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-card,
  .floating-badge,
  .floating-image {
    animation: none;
  }
}