/* Base Styles */
:root {
  /* Light Mode Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary: #64748b;
  --dark: #1e293b;
  --light: #f8fafc;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 24px;
  --transition: all 0.3s ease;
}

/* Dark mode colors */
[data-theme="dark"] {
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --primary-light: #312e81;
  --secondary: #94a3b8;
  --dark: #e2e8f0;
  --light: #1e293b;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --white: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  position: relative;
}

.section-header h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  line-height: 1.5;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-login {
  background-color: transparent;
  color: var(--gray-700);
}

.btn-login:hover {
  background-color: var(--gray-100);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: calc(var(--border-radius) + 2px);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

[data-theme="dark"] .header {
  background-color: rgba(15, 23, 42, 0.95);
}

.header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
}

.logo-text {
  color: var(--gray-900);
}

.logo-text1 {
  color: var(--gray-100);
}

.highlight {
  color: var(--primary);
  position: relative;
}

.highlight:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: 2px;
  left: 0;
  background-color: rgba(99, 102, 241, 0.3);
  z-index: -1;
}

.main-nav {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--gray-700);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--gray-200);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--gray-800);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 10rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-content {
  display: flex;
  gap: 2rem;
  position: relative;
}

.hero-text {
  flex: 1;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero .btn-outline {
  border-color: white;
  color: white;
}

.hero .btn-outline:hover {
  background-color: white;
  color: var(--primary);
}

.hero-image {
  flex: 1;
  text-align: right;
  transform: translateX(50px);
  opacity: 0;
  animation: slideInRight 1s 0.3s ease-out forwards;
}

.hero-image img {
  max-width: 600px;
  animation: float 6s ease-in-out infinite;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

/* Tools Section */
.tools-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.tool-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  opacity: 0;
}

[data-theme="dark"] .tool-card {
  background-color: var(--gray-100);
  border: 1px solid var(--gray-300);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tool-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.1), transparent);
  transition: var(--transition);
  z-index: 0;
}

[data-theme="dark"] .tool-card::before {
  background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.1), transparent);
}

.tool-card:hover::before {
  top: 0;
}

.tool-icon {
  position: relative;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.tool-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
  position: relative;
}

.tool-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  position: relative;
}

.tool-link {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.tool-link i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.tool-link:hover i {
  transform: translateX(5px);
}

.view-all-tools {
  margin-top: 3rem;
  text-align: center;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--gray-100);
  padding: 5rem 0;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.step {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  flex: 1;
  position: relative;
  max-width: 300px;
  opacity: 0;
  transition: var(--transition);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-connector {
  flex: 0.5;
  height: 3px;
  background-color: var(--gray-300);
  position: relative;
  max-width: 100px;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--white);
}

.features-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.features-content {
  flex: 1;
  opacity: 0;
}

.features-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.features-list i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 1.5rem;
  margin-top: 0.25rem;
}

.features-list h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.features-image {
  flex: 1;
  opacity: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
  padding: 5rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.cta-content {
  position: relative;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-info {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background-color: var(--white);
}

.testimonials-slider {
  display: flex;
  overflow-x: hidden;
  gap: 2rem;
  padding: 1rem 0;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex: 0 0 calc(33.333% - 2rem);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  opacity: 0;
  transform: scale(0.95);
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  color: #ffc107;
  margin-bottom: 1rem;
}

.testimonial-text {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-nav {
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-nav:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
  margin: 0 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary);
  transform: scale(1.3);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: var(--gray-100);
}

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

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(20px);
  opacity: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.faq-toggle {
  transition: var(--transition);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--gray-600);
}

.faq-item.active .faq-question {
  border-bottom-color: var(--gray-200);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  padding: 5rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  flex: 2;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  flex: 3;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links-column {
  min-width: 160px;
}

.footer-links-column h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column li {
  margin-bottom: 0.75rem;
}

.footer-links-column a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-links-column a:hover {
  color: var(--white);
  transform: translateX(5px);
  display: inline-block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector select {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
}

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

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  .features-grid {
    flex-direction: column;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 2rem);
  }

  .steps-container {
    flex-direction: column;
  }
  
  .step {
    max-width: 100%;
  }
  
  .step-connector {
    width: 3px;
    height: 30px;
  }

  .footer-links {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .header-content {
    position: relative;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    display: none;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links li {
    margin: 0.75rem 0;
  }
  
  .header-buttons {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: center;
  }
}

/* Custom cursor */
.custom-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.2s, height 0.2s, border 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 60px;
  height: 60px;
  border-color: var(--primary-light);
  background-color: rgba(99, 102, 241, 0.1);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
}