:root {
  --primary: #8b5cf6;
  --secondary: #6d28d9;
  --accent: #a78bfa;
  --bg-dark: #000000;
  --card-bg: #1a1b23;
  --border-color: #2d2e38;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  overflow-x: hidden;
}

/* Navigation */
#navbar {
  background-color: transparent;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(12, 13, 17, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.logo-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
}

/* Buttons */
.btn-purple {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-purple:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  transform: scale(1.05);
  color: white;
}

.btn-outline-purple {
  border: 2px solid var(--primary);
  color: var(--text-primary);
  background-color: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-purple:hover {
  background-color: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.1), transparent);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero-section > .container-lg {
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--primary),
    var(--secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Floating Container */
.floating-container {
  position: relative;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  min-height: 350px;
}

/* Repositioned all images to be visible and aligned in a single line */
.floating-image {
  border-radius: 1rem;
  border: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.25);
  object-fit: cover;
  transition: all 0.3s ease;
  position: static;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  height: 250px;
}

.floating-image:hover {
  border-color: rgba(167, 139, 250, 0.8);
  box-shadow: 0 35px 70px rgba(139, 92, 246, 0.35);
}

.floating-img-1 {
  width: 100%;
  height: 250px;
}

.floating-img-2 {
  width: 100%;
  height: 250px;
}

.floating-img-3 {
  width: 100%;
  height: 250px;
  /* Removed display: none to make third image visible on desktop */
}

.floating-card {
  position: absolute;
  width: 320px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(10px);
}

.card-inner {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

/* Features Section */
#features {
  padding: 100px 20px;
  background-color: var(--bg-dark);
}

.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

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

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

/* Stats Section */
.stats-section {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(109, 40, 217, 0.1)
  );
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 100px 20px;
}

/* Pricing Section */
#pricing {
  padding: 100px 20px;
  background-color: var(--bg-dark);
}

.pricing-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.pricing-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.pricing-card.highlight {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15),
    rgba(109, 40, 217, 0.15)
  );
  border: 1px solid var(--primary);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
  transform: scale(1.05);
}

.pricing-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.pricing-features li {
  color: var(--text-secondary);
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-mark {
  color: var(--primary);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
  .floating-container {
    gap: 1rem;
  }

  .floating-image {
    max-width: 250px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 20px 60px;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  .pricing-card.highlight {
    transform: scale(1);
  }

  /* Updated to show 2 images per row on tablet, each gets 50% width minus gap */
  .floating-container {
    gap: 1rem;
    min-height: auto;
    flex-wrap: wrap;
  }

  .floating-image {
    max-width: calc(50% - 0.5rem);
    height: 180px;
    flex: 0 1 calc(50% - 0.5rem);
  }

  /* .floating-img-3 { // Removed this rule as it's now handled by .floating-image
    display: block;
  } */

  .floating-card {
    width: 280px;
    height: 180px;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .navbar-brand span {
    display: none !important;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  .display-5 {
    font-size: 1.75rem !important;
  }

  .display-6 {
    font-size: 1.5rem !important;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  /* Stack images vertically on mobile for optimal display */
  .floating-container {
    gap: 1rem;
    min-height: auto;
    flex-wrap: wrap;
  }

  .floating-image {
    max-width: 100%;
    width: 100%;
    height: 150px;
    flex: 1 1 100%;
  }
}
