/* ===== Base ===== */
:root {
  --primary: #6366f1;
  --gradient-start: #4f46e5;
  --gradient-end: #a855f7;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

.fw-800 { font-weight: 800 !important; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-purple { background-color: rgba(139, 92, 246, 0.1); }
.bg-purple + h5, .text-purple { color: #8b5cf6; }
.bg-opacity-10.bg-purple ~ .feature-icon i { color: #8b5cf6; }
.feature-icon.bg-purple i { color: #8b5cf6 !important; }

/* ===== Navbar ===== */
.navbar-blur {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(var(--bs-body-bg-rgb, 255,255,255), 0.8);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
  z-index: 1030;
}

[data-bs-theme="dark"] .navbar-blur {
  background: rgba(17, 17, 27, 0.85);
  border-bottom-color: rgba(255,255,255,0.06);
}

.navbar-brand img {
  transition: transform 0.3s;
}
.navbar-brand:hover img {
  transform: rotate(-8deg) scale(1.1);
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(135deg, rgba(79,70,229,0.03) 0%, rgba(168,85,247,0.06) 100%);
  display: flex;
  align-items: center;
}

[data-bs-theme="dark"] .hero-section {
  background: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(168,85,247,0.04) 100%);
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.shape-1 { width: 500px; height: 500px; background: #6366f1; top: -150px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: #a855f7; bottom: -100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: #06b6d4; top: 50%; left: 50%; transform: translate(-50%,-50%); }

[data-bs-theme="dark"] .hero-bg-shapes .shape { opacity: 0.08; }

.hero-title { line-height: 1.1; }

.hero-image-wrapper {
  position: relative;
  display: inline-block;
}

.hero-logo-img {
  width: 320px;
  height: 320px;
  filter: drop-shadow(0 20px 40px rgba(99,102,241,0.25));
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-stats > div {
  opacity: 0;
  animation: fadeInUp 0.6s forwards;
}
.hero-stats > div:nth-child(1) { animation-delay: 0.3s; }
.hero-stats > div:nth-child(2) { animation-delay: 0.5s; }
.hero-stats > div:nth-child(3) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Feature Cards ===== */
.feature-card {
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.12) !important;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ===== Steps ===== */
.step-card {
  position: relative;
  padding: 2rem 1rem;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-icon {
  transition: transform 0.3s;
}
.step-card:hover .step-icon {
  transform: scale(1.15);
}

/* ===== Screenshots ===== */
.screenshot-card {
  border-radius: 16px;
  transition: transform 0.3s;
}
.screenshot-card:hover {
  transform: translateY(-4px);
}

.screenshot-placeholder {
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(168,85,247,0.06));
}

[data-bs-theme="dark"] .screenshot-placeholder {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(168,85,247,0.04));
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

/* ===== Scroll Animations ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero-logo-img {
    width: 220px;
    height: 220px;
  }
  .hero-title {
    font-size: 2.5rem !important;
  }
  .py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .hero-section {
    padding-top: 90px;
    padding-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-logo-img {
    width: 180px;
    height: 180px;
  }
  .hero-title {
    font-size: 2rem !important;
  }
  .display-5 {
    font-size: 1.75rem !important;
  }
}

/* ===== Language Dropdown Mobile Fix ===== */
@media (max-width: 991.98px) {
  .dropdown-menu {
    max-height: 240px;
    overflow-y: auto;
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0.25rem;
    transform: none !important;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: none;
  }
  .d-flex.align-items-center.gap-2 {
    flex-wrap: wrap;
    width: 100%;
    padding: 0.5rem 0;
  }
  .d-flex.align-items-center.gap-2 .dropdown {
    width: 100%;
  }
  .d-flex.align-items-center.gap-2 .dropdown .btn {
    width: 100%;
    text-align: left;
  }
}

/* ===== Mobile Navbar Toggler Animation ===== */
.navbar-toggler {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s;
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler .navbar-toggler-icon::after {
  bottom: -7px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ===== Smooth Scroll ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
