/* General Styles */
:root {
  --primary-gradient: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  --dark-primary-gradient: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Styles */
[data-bs-theme="dark"] {
  --bs-body-bg: #1a1d20;
  --bs-body-color: #e9ecef;
}

[data-bs-theme="dark"] .navbar {
  background-color: #212529 !important;
}

[data-bs-theme="dark"] .card {
  background-color: #212529;
  border-color: #2c3034;
}

[data-bs-theme="dark"] .text-secondary {
  color: #adb5bd !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--bs-body-bg) 0%,
    var(--bs-body-bg) 100%
  );
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top right,
    rgba(0, 123, 255, 0.1),
    transparent 70%
  );
  z-index: 1;
}

[data-bs-theme="dark"] .hero-section::before {
  background: radial-gradient(
    circle at top right,
    rgba(0, 123, 255, 0.05),
    transparent 70%
  );
}

.hero-section h1 {
  font-weight: 700;
  color: var(--bs-body-color);
}

.slogan h2 {
  font-weight: 600;
  letter-spacing: 2px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .slogan h2 {
  background: var(--dark-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Features Section */
.features-section {
  background-color: var(--bs-body-bg);
  position: relative;
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bs-border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* CTA Section */
.cta-section {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

[data-bs-theme="dark"] .cta-section {
  background: var(--dark-primary-gradient);
}

/* Forms */
.form-control {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
}

.btn-primary:hover {
  background: var(--dark-primary-gradient);
  transform: translateY(-1px);
}

/* Alerts */
.alert {
  border-radius: 0.5rem;
  border: none;
}

/* Footer */
footer {
  background-color: #2c3e50;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-fadein {
  animation: fadeIn 1s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Theme Toggle Button */
#themeToggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#themeToggle:hover {
  transform: rotate(15deg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

  .card-body {
    padding: 1.5rem;
  }
}

/* Pricing Section */
.pricing-section {
  background-color: var(--bs-body-bg);
}

.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bs-border-color);
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-amount {
  color: var(--bs-primary);
}

.pricing-card .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.pricing-card ul li {
  font-size: 0.95rem;
}

[data-bs-theme="dark"] .pricing-card {
  background-color: #212529;
  border-color: #2c3034;
}

[data-bs-theme="dark"] .pricing-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Screenshots Section */
.screenshots-section {
  background-color: var(--bs-body-bg);
}

.carousel {
  max-width: 800px;
  margin: 0 auto;
}

.carousel-item img {
  object-fit: contain;
  height: 500px;
  background-color: #f8f9fa;
}

[data-bs-theme="dark"] .carousel-item img {
  background-color: #212529;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.5rem;
  padding: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.carousel-indicators {
  margin-bottom: 1rem;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

/* Hero carousel bigger and more visual */
#heroAppCarousel {
  max-width: 400px;
  min-width: 300px;
  width: 100%;
}

#heroAppCarousel .carousel-inner {
  height: 600px;
  background: #f8f9fa;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

#heroAppCarousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 1.5rem;
  background: #fff;
}

/* Dark mode for hero section */
[data-bs-theme="dark"] .hero-section {
  background: linear-gradient(120deg, #23272f 60%, #181c22 100%) !important;
}
[data-bs-theme="dark"] .hero-section h1,
[data-bs-theme="dark"] .hero-section h3,
[data-bs-theme="dark"] .hero-section p,
[data-bs-theme="dark"] .hero-section .lead {
  color: #fff !important;
}
[data-bs-theme="dark"] .hero-section .btn-primary {
  background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
}
[data-bs-theme="dark"] #heroAppCarousel .carousel-inner {
  background: #23272f;
}
[data-bs-theme="dark"] #heroAppCarousel .carousel-item img {
  background: #23272f;
}

.hero-section .btn {
  position: relative;
  z-index: 10;
}

/* How to Get Started Section */
.how-to-section {
  position: relative;
  padding: 80px 0;
}

.steps-container {
  position: relative;
  padding: 20px 0;
}

.steps-container::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--primary-color-light)
  );
  z-index: 1;
}

.step-card {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
  background: white;
}

.step-card:hover {
  transform: translateX(10px);
}

.step-number {
  font-weight: bold;
  font-size: 1.2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-color-light)
  );
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-card h4 {
  color: var(--primary-color);
  font-weight: 600;
}

.step-card p {
  color: #666;
  font-size: 1.1rem;
}

/* Dark mode styles for how-to section */
[data-bs-theme="dark"] .how-to-section {
  background-color: #1a1a1a !important;
}

[data-bs-theme="dark"] .step-card {
  background: #2d2d2d;
}

[data-bs-theme="dark"] .step-card p {
  color: #ccc;
}

[data-bs-theme="dark"] .steps-container::before {
  background: linear-gradient(
    to bottom,
    var(--primary-color-light),
    var(--primary-color)
  );
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .steps-container::before {
    left: 15px;
  }

  .step-card {
    margin-left: 10px;
  }

  .step-number {
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem;
  }

  .step-card h4 {
    font-size: 1.1rem;
  }

  .step-card p {
    font-size: 1rem;
  }
}

/* Statistics Section */
.stats-section {
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top right,
    rgba(0, 123, 255, 0.1),
    transparent 70%
  );
  z-index: 1;
}

.stat-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #343a40; /* Solid dark color for visibility */
  line-height: 1.2;
  /* Removed gradient text fill */
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Dark mode styles for stats section */
[data-bs-theme="dark"] .stats-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

[data-bs-theme="dark"] .stats-section::before {
  background: radial-gradient(
    circle at top right,
    rgba(0, 123, 255, 0.05),
    transparent 70%
  );
}

[data-bs-theme="dark"] .stat-card {
  background: #2d2d2d;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .stat-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .stat-number {
  color: #f8f9fa; /* Solid light color in dark mode */
}

[data-bs-theme="dark"] .stat-label {
  color: #ccc !important;
}

/* Responsive adjustments for stats section */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .stat-card {
    padding: 1rem !important;
  }
}
