/* Root Variables */
:root {
  --primary-color: #0066cc;
  --secondary-color: #00a8cc;
  --accent-color: #00d4aa;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00a8cc 100%);
  --gradient-accent: linear-gradient(135deg, #00a8cc 0%, #00d4aa 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.15);

  /* Added dark mode variables */
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --border-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.9);
}

/* Dark mode variables */
[data-theme="dark"] {
  --primary-color: #4da6ff;
  --secondary-color: #33ccff;
  --accent-color: #33ffcc;
  --dark-color: #ffffff;
  --light-color: #1a1a2e;
  --bg-color: #0f0f23;
  --text-color: #ffffff;
  --text-muted: #cccccc;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--text-color);
}

/* Glassmorphism Effects */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

/* Made navbar transparent with glassmorphism */
.glassmorphism-nav {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

[data-theme="dark"] .glassmorphism-nav {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Added dark mode toggle button styles */
#darkModeToggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

#darkModeToggle:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Navigation Styles */
.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-pill {
  padding: 8px 16px !important;
  margin: 0 4px;
  border-radius: 20px;
  transition: all 0.3s ease;
  color: var(--text-muted) !important;
}

.nav-pill:hover,
.nav-pill.active {
  background: var(--gradient-primary);
  color: white !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Button Styles */
.btn {
  border-radius: 25px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-color);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-gradient {
  background: var(--gradient-accent);
  border: none;
  color: white;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-color) 0%, #e3f2fd 50%, #f0f8ff 100%);
  z-index: -1;
  transition: background 0.3s ease;
}

[data-theme="dark"] .hero-bg {
  background: linear-gradient(135deg, var(--bg-color) 0%, #1a237e 50%, #0d47a1 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e0e7ff" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
}

/* Animation Classes */
.fade-in-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.bg-light {
  background-color: var(--card-bg) !important;
  transition: background-color 0.3s ease;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Feature Cards */
.feature-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.feature-card h5 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Process Steps */
.process-step {
  padding: 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
}

.process-step h6 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.process-step p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Partner Logos */
.partner-logo {
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.1);
}

.partner-logo img {
  max-height: 60px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: var(--img-filter, none);
}

[data-theme="dark"] .partner-logo img {
  --img-filter: brightness(0) invert(1);
}

.partner-logo:hover img {
  opacity: 1;
}

/* Pricing Cards */
.pricing-card {
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.price {
  margin-bottom: 2rem;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* FAQ Accordion */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  background: var(--card-bg);
}

.accordion-button {
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--text-color);
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  background: var(--card-bg);
  color: var(--text-color);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
  background: var(--card-bg);
  color: var(--text-color);
}

.form-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer-section {
  background: linear-gradient(135deg, var(--dark-color) 0%, #16213e 100%);
  color: white;
  padding: 4rem 0 2rem;
}

[data-theme="dark"] .footer-section {
  background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%);
}

.footer-brand h5 {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: white;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-section h6 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section hr {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-card,
  .pricing-card {
    margin-bottom: 2rem;
  }

  .pricing-card.popular {
    transform: none;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  #darkModeToggle {
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Utility Classes */
.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}

.text-primary-custom {
  color: var(--primary-color);
}

.border-gradient {
  border: 2px solid;
  border-image: var(--gradient-primary) 1;
}
