/* =====================================================
   LOGICAL CSS PROPERTIES DEMO
   =====================================================
   This CSS file uses LOGICAL properties that automatically
   adapt to the writing direction (LTR/RTL):
   
   ✅ inline-start, inline-end (instead of left, right)
   ✅ margin-inline-start/end (instead of margin-left/right)
   ✅ padding-inline-start/end (instead of padding-left/right)
   ✅ border-inline-start/end (instead of border-left/right)
   ✅ text-align: start/end (instead of left/right)
   ✅ inset-inline-start/end (instead of left/right positioning)
   
   🎉 BENEFIT: When switching to RTL, everything flips automatically!
   No extra CSS overrides needed for RTL languages.
   ===================================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #fafafa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  /* ✅ LOGICAL: padding-inline instead of padding-left/right */
  padding-inline: 24px;
}

/* Language Switcher */
.lang-switcher {
  position: fixed;
  top: 20px;
  /* ✅ LOGICAL: inset-inline-end instead of right */
  inset-inline-end: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  padding: 8px 16px;
  border: none;
  background: #f0f0f0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.lang-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Solution Banner */
.solution-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px 24px;
  /* ✅ LOGICAL: text-align: start instead of left */
  text-align: start;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.solution-icon {
  font-size: 24px;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
}

.logo-icon {
  font-size: 32px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: #4a4a6a;
  font-weight: 500;
  transition: color 0.3s;
  /* ✅ LOGICAL: padding-inline for hover effect spacing */
  padding-inline: 0;
}

.nav a:hover {
  color: #667eea;
}

.cta-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  /* ✅ LOGICAL: padding-inline and padding-block */
  padding-inline: 24px;
  padding-block: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
  padding-block: 80px;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  /* ✅ LOGICAL: text-align: start - will flip for RTL */
  text-align: start;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
  color: #667eea;
  /* ✅ LOGICAL: padding-inline and padding-block */
  padding-inline: 16px;
  padding-block: 8px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  /* ✅ LOGICAL: margin-block-end instead of margin-bottom */
  margin-block-end: 24px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #4a4a6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 18px;
  color: #6a6a8a;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  /* Flexbox respects dir attribute automatically */
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  /* ✅ LOGICAL: padding-inline and padding-block */
  padding-inline: 32px;
  padding-block: 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  /* ✅ LOGICAL: padding-inline and padding-block */
  padding-inline: 32px;
  padding-block: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #667eea10;
}

/* Hero Image / Graphics */
.hero-image {
  position: relative;
  height: 400px;
}

.hero-graphic {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea30 0%, #764ba230 100%);
  border-radius: 24px;
}

.floating-card {
  position: absolute;
  background: white;
  /* ✅ LOGICAL: padding-inline and padding-block */
  padding-inline: 20px;
  padding-block: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}

.card-icon {
  font-size: 24px;
}

/* ✅ LOGICAL: Using inset-inline-start/end instead of left/right */
.card-1 {
  top: 20px;
  inset-inline-start: -20px;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  inset-inline-end: -30px;
  transform: translateY(-50%);
  animation-delay: 0.5s;
}

.card-3 {
  bottom: 40px;
  inset-inline-start: 40px;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-2 {
  animation: float2 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

@keyframes float2 {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 10px));
  }
}

/* Features Section */
.features {
  padding-block: 100px;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 60px;
  color: #1a1a2e;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: #f8f9ff;
  /* ✅ LOGICAL: padding-inline and padding-block */
  padding-inline: 32px;
  padding-block: 40px;
  border-radius: 20px;
  /* ✅ LOGICAL: text-align: start */
  text-align: start;
  transition: all 0.3s;
  /* ✅ LOGICAL: border-inline-start for accent - flips in RTL! */
  border-inline-start: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
  /* ✅ LOGICAL: border-inline-start-color */
  border-inline-start-color: #667eea;
}

.feature-icon {
  font-size: 48px;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 24px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 16px;
  color: #1a1a2e;
}

.feature-card p {
  color: #6a6a8a;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 20px;
  line-height: 1.7;
}

.feature-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.feature-link:hover {
  color: #764ba2;
}

/* Testimonial Section */
.testimonial {
  padding-block: 100px;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  /* ✅ LOGICAL: text-align: start */
  text-align: start;
  background: white;
  /* ✅ LOGICAL: padding-inline and padding-block */
  padding-inline: 48px;
  padding-block: 48px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
}

.quote-icon {
  font-size: 120px;
  color: #667eea20;
  position: absolute;
  /* ✅ LOGICAL: inset-inline-start instead of left */
  inset-inline-start: 30px;
  top: -20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 20px;
  line-height: 1.8;
  color: #4a4a6a;
  /* ✅ LOGICAL: margin-block-end and padding-inline-start */
  margin-block-end: 32px;
  padding-inline-start: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  /* ✅ LOGICAL: padding-inline-start */
  padding-inline-start: 20px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  font-size: 18px;
  color: #1a1a2e;
}

.author-info span {
  color: #8a8aaa;
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  padding-block: 100px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-content {
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 40px;
  font-weight: 700;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 20px;
}

.cta-content p {
  font-size: 18px;
  opacity: 0.9;
  /* ✅ LOGICAL: margin-block-end and margin-inline */
  margin-block-end: 40px;
  max-width: 600px;
  margin-inline: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-light {
  background: white;
  color: #667eea;
  border: none;
  /* ✅ LOGICAL: padding-inline and padding-block */
  padding-inline: 32px;
  padding-block: 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  /* ✅ LOGICAL: padding-inline and padding-block */
  padding-inline: 32px;
  padding-block: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: white;
  padding-block: 80px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 48px;
}

.footer-brand .logo {
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 20px;
}

.footer-brand p {
  color: #8a8aaa;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 20px;
}

.footer-links a {
  display: block;
  color: #8a8aaa;
  text-decoration: none;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 12px;
  transition: color 0.3s;
}

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

.footer-contact p {
  color: #8a8aaa;
  /* ✅ LOGICAL: margin-block-end */
  margin-block-end: 12px;
}

.footer-bottom {
  /* ✅ LOGICAL: text-align: start, padding-block-start */
  text-align: start;
  padding-block-start: 30px;
  border-top: 1px solid #2a2a4e;
}

.footer-bottom p {
  color: #6a6a8a;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    text-align: center;
    /* ✅ LOGICAL: border-inline-start removed, border-block-start added */
    border-inline-start: none;
    border-block-start: 4px solid transparent;
  }

  .feature-card:hover {
    border-inline-start-color: transparent;
    border-block-start-color: #667eea;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    padding-block: 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    /* ✅ LOGICAL: margin-block-start */
    margin-block-start: 16px;
    gap: 16px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
  }
}
