/* Base Styles */
:root {
  --primary: #006eaa;
  --primary-dark: #005a8c;
  --primary-light: #e6f2f9;
  --secondary: #00b37e;
  --secondary-dark: #009669;
  --secondary-light: #e6f8f3;
  --text-dark: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --background: #ffffff;
  --background-light: #f5f5f5;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --success: #4caf50;
  --error: #f44336;
  --warning: #ffc107;
  --blue-light: #e6f2f9;
  --green-light: #e6f8f3;
  --purple-light: #f0e7f7;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

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

ul {
  list-style: none;
}

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

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

section {
  padding: 5rem 0;
}

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

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

.section-header.light h2,
.section-header.light p {
  color: var(--background);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn svg {
  margin-right: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

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

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

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo img {
  height: 40px;
  margin-right: 0.75rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  font-weight: 500;
  color: var(--text-dark);
}

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

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

.language-select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--background);
  cursor: pointer;
  transition: var(--transition);
  width: auto;
  min-width: 80px;
}

.language-select:hover {
  border-color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background-color: var(--background);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.mobile-nav .btn {
  margin: 1rem 1.5rem;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 110, 170, 0.8), rgba(0, 179, 126, 0.7)), url('../images/hero-bg.jpg') center / cover no-repeat;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 700px;
  padding: 2rem 0;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
}

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

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* About Section */
.about {
  background-color: var(--background-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Features Section */
.features {
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--background-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.feature-more {
  color: var(--primary);
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.feature-more:hover {
  text-decoration: underline;
}

/* How It Works Section */
.timeline {
  position: relative;
  padding: 3rem 0;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border);
  transform: translateY(-50%);
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.step-icon svg {
  color: white;
}

.timeline-step h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.timeline-step p {
  color: var(--text-light);
}

/* Benefits Section */
.benefits {
  background-color: var(--background-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.bg-blue-light {
  background-color: var(--blue-light);
}

.bg-green-light {
  background-color: var(--green-light);
}

.bg-purple-light {
  background-color: var(--purple-light);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: white;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.benefit-icon svg {
  color: var(--primary);
}

.benefit-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.benefit-card p {
  color: var(--text-dark);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
  }
}

.pricing-card {
  background-color: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.popular-tag {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.pricing-header h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.pricing-header p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin-top: 1rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.unit {
  color: var(--text-light);
}

.pricing-features {
  padding: 2rem;
}

.pricing-features ul {
  margin-bottom: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  color: var(--text-dark);
}

.pricing-features li:last-child {
  margin-bottom: 0;
}

.check-icon {
  color: var(--success);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.pricing-footer {
  padding: 0 2rem 2rem;
}

/* Team Section */
.team {
  background-color: var(--background);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.team-member {
  text-align: center;
}

.member-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-light);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.team-member p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--primary);
  color: white;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem;
}

.quote-icon {
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: white;
}

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

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

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

.author-info p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0;
  color: white;
}

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

.testimonial-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.testimonial-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background-color: white;
}

/* Contact Form */
.contact {
  background-color: var(--background-light);
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--background);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-form {
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.btn-loading {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loading {
  display: flex;
  align-items: center;
}

.spinner {
  animation: rotate 2s linear infinite;
  margin-right: 0.5rem;
  width: 20px;
  height: 20px;
}

.spinner .path {
  stroke: white;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.form-success {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--green-light);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  color: var(--success);
}

.form-success h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.form-success p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--background);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1;
  color: var(--text-dark);
}

.video-container {
  padding: 2rem;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border-radius: var(--radius);
}

.feature-detail {
  padding: 2rem;
}

.feature-demo {
  margin: 1.5rem 0;
}

.feature-demo-placeholder {
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border-radius: var(--radius);
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: #f5f5f5;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h3,
.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: #b3b3b3;
  margin-bottom: 1rem;
}

.footer-col ul {
  margin-bottom: 0;
}

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

.footer-col a {
  color: #b3b3b3;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
}

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

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

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: #b3b3b3;
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.4s;
}

[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .timeline-line {
    display: none;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* English language overrides */
html[data-lang="en"] [data-i18n="nav.features"] {
  display: block;
}

/* Fix for testimonial arrows */
.testimonial-arrow.prev, 
.testimonial-arrow.next {
  position: relative;
  z-index: 5;
}

.testimonial-arrow svg {
  pointer-events: none;
}