/* ============================================
   FINDSMM - Enhanced Custom Styles
   ============================================ */

/* ============ Animations ============ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ Base Styles ============ */
* {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}

/* ============ Gradient Text ============ */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ============ Navigation ============ */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #3b82f6;
}

.dark .nav-link:hover {
  color: #60a5fa;
}

.nav-link:hover::after {
  width: 100%;
}

/* ============ Buttons ============ */
.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: 2px solid #e2e8f0;
  background: white;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dark .secondary-button {
  border-color: #475569;
  background: #1e293b;
  color: #e2e8f0;
}

.secondary-button:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.cta-button-white {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 1rem;
  background: white;
  color: #3b82f6;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cta-button-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ============ Theme Toggle ============ */
.theme-toggle {
  cursor: pointer;
  position: relative;
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.1);
}

/* ============ Language Switcher ============ */
.language-switcher {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.dark .lang-menu {
  background: #1e293b;
  border-color: #475569;
}

.lang-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  border: none;
  background: transparent;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.dark .lang-option {
  color: #e2e8f0;
}

.lang-option:hover {
  background: #f1f5f9;
  color: #3b82f6;
}

.dark .lang-option:hover {
  background: #334155;
  color: #60a5fa;
}

.lang-option.active {
  background: #dbeafe;
  color: #3b82f6;
  font-weight: 600;
}

.dark .lang-option.active {
  background: #1e3a8a;
  color: #93c5fd;
}

/* ============ Mobile Menu ============ */
.burger-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
}

.burger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background: #334155;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.dark .burger-line {
  background: #e2e8f0;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.dark .mobile-menu {
  background: rgba(15, 23, 42, 0.98);
  border-top-color: #475569;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 1rem;
  color: #334155;
  text-decoration: none;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.dark .mobile-menu a {
  color: #e2e8f0;
}

.mobile-menu a:hover {
  background: #f1f5f9;
  color: #3b82f6;
  padding-left: 1.5rem;
}

.dark .mobile-menu a:hover {
  background: #334155;
  color: #60a5fa;
}

/* ============ Cards ============ */
.card-premium {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.dark .card-premium {
  border-color: rgba(71, 85, 105, 0.5);
}

.card-premium:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: white;
  transition: all 0.4s ease;
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.dark .feature-card {
  border-color: #334155;
  background: #1e293b;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

.step-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 2px solid #e2e8f0;
  background: white;
  text-align: center;
  transition: all 0.4s ease;
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.dark .step-card {
  border-color: #334155;
  background: #1e293b;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: #3b82f6;
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

.step-card:hover::before {
  left: 100%;
}

/* ============ Icons & Badges ============ */
.icon-box {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.step-card:hover .step-number {
  transform: scale(1.15) rotate(360deg);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: white;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dark .feature-badge {
  background: #1e293b;
  border-color: #334155;
}

.feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 1rem;
  background: #f8fafc;
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease-out forwards;
  opacity: 0;
}

.dark .service-card {
  background: #0f172a;
}

.service-card:hover {
  background: #f1f5f9;
  transform: translateX(8px);
}

.dark .service-card:hover {
  background: #1e293b;
}

.service-card:hover .icon-circle {
  transform: scale(1.1) rotate(10deg);
}

.price-tag {
  font-weight: 700;
  color: #3b82f6;
  font-size: 0.875rem;
  background: #dbeafe;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.dark .price-tag {
  color: #93c5fd;
  background: #1e3a8a;
}

.service-card:hover .price-tag {
  transform: scale(1.05);
}

/* ============ Chat Demo ============ */
.chat-container {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: white;
  animation: fadeIn 0.8s ease-out;
}

.dark .chat-container {
  background: #1e293b;
}

.chat-header {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-messages {
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
  background: #f8fafc;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.dark .chat-messages {
  background: #0f172a;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.dark .chat-messages::-webkit-scrollbar-thumb {
  background: #475569;
}

.chat-message {
  margin-bottom: 1rem;
  animation: slideIn 0.4s ease-out;
}

.chat-message.bot .message-content {
  background: white;
  color: #1e293b;
  border-radius: 1rem 1rem 1rem 0.25rem;
  padding: 1rem;
  display: inline-block;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark .chat-message.bot .message-content {
  background: #334155;
  color: #e2e8f0;
}

.chat-message.user {
  text-align: right;
}

.chat-message.user .message-content {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: 1rem 1rem 0.25rem 1rem;
  padding: 0.875rem 1.125rem;
  display: inline-block;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.message-time {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.chat-message.user .message-time {
  text-align: right;
}

.demo-btn {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.dark .demo-btn {
  border-color: #475569;
  background: #1e293b;
  color: #e2e8f0;
}

.demo-btn:hover {
  background: #f1f5f9;
  border-color: #3b82f6;
  transform: translateX(4px);
}

.dark .demo-btn:hover {
  background: #334155;
}

.demo-btn-active {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.dark .demo-btn-active {
  background: #1e3a8a;
  color: #93c5fd;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============ Stats ============ */
.stat-card {
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-out;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ============ CTA Section ============ */
.cta-card {
  position: relative;
  padding: 4rem 2rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: white;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
}

/* ============ FAQ ============ */
.faq-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .faq-item {
  background: #1e293b;
  border-color: #334155;
}

.faq-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.faq-item[open] {
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.faq-question {
  font-weight: 600;
  font-size: 1.125rem;
  color: #1e293b;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.dark .faq-question {
  color: #e2e8f0;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #3b82f6;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  line-height: 1.7;
  animation: slideIn 0.3s ease-out;
}

.dark .faq-answer {
  border-top-color: #334155;
  color: #94a3b8;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .burger-menu {
    display: block;
  }
  
  .desktop-menu {
    display: none !important;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .gradient-text {
    font-size: 2.5rem;
  }
  
  .chat-messages {
    max-height: 500px;
  }
  
  .feature-card,
  .step-card {
    padding: 1.5rem;
  }
}