/* =====================================================
   PHYSICAL CSS PROPERTIES DEMO
   =====================================================
   This CSS file uses PHYSICAL/DIRECTIONAL properties:
   - left, right (instead of inline-start, inline-end)
   - margin-left, margin-right (instead of margin-inline-start/end)
   - padding-left, padding-right (instead of padding-inline-start/end)
   - border-left, border-right (instead of border-inline-start/end)
   - text-align: left/right (instead of start/end)
   
   ⚠️ PROBLEM: When switching to RTL, these properties DON'T flip!
   The layout stays the same, breaking the RTL experience.
   ===================================================== */

/* 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;
  /* ❌ PHYSICAL: padding-left/right */
  padding-left: 24px;
  padding-right: 24px;
}

/* Language Switcher */
.lang-switcher {
  position: fixed;
  top: 20px;
  /* ❌ PHYSICAL: right instead of inline-end */
  right: 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;
}

/* Problem Banner */
.problem-banner {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  padding: 16px 24px;
  /* ❌ PHYSICAL: text-align: left */
  text-align: left;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.problem-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;
  /* ❌ PHYSICAL: padding-left for hover effect spacing */
  padding-left: 0;
  padding-right: 0;
}

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

.cta-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  /* ❌ PHYSICAL: padding-left and padding-right */
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 12px;
  padding-bottom: 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: 80px 0;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

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

.hero-text {
  /* ❌ PHYSICAL: text-align: left - won't flip for RTL */
  text-align: left;
}

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

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 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;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  /* ❌ PHYSICAL: flex will work, but individual button alignment won't */
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  /* ❌ PHYSICAL: padding-left and padding-right */
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 16px;
  padding-bottom: 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;
  /* ❌ PHYSICAL: padding-left and padding-right */
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 14px;
  padding-bottom: 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;
  /* ❌ PHYSICAL: padding-left and padding-right */
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 16px;
  padding-bottom: 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;
}

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

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

.card-3 {
  bottom: 40px;
  left: 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: 100px 0;
  background: white;
}

.section-title {
  /* ❌ PHYSICAL: text-align: center is fine, but see feature cards */
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 60px;
  color: #1a1a2e;
}

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

.feature-card {
  background: #f8f9ff;
  /* ❌ PHYSICAL: padding values */
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
  border-radius: 20px;
  /* ❌ PHYSICAL: text-align: left */
  text-align: left;
  transition: all 0.3s;
  /* ❌ PHYSICAL: border-left for accent */
  border-left: 4px solid transparent;
}

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

.feature-icon {
  font-size: 48px;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 16px;
  color: #1a1a2e;
}

.feature-card p {
  color: #6a6a8a;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 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: 100px 0;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  /* ❌ PHYSICAL: text-align: left */
  text-align: left;
  background: white;
  /* ❌ PHYSICAL: padding values */
  padding-left: 48px;
  padding-right: 48px;
  padding-top: 48px;
  padding-bottom: 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;
  /* ❌ PHYSICAL: left instead of inset-inline-start */
  left: 30px;
  top: -20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 20px;
  line-height: 1.8;
  color: #4a4a6a;
  /* ❌ PHYSICAL: margin-bottom and padding-left */
  margin-bottom: 32px;
  padding-left: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  /* ❌ PHYSICAL: padding-left */
  padding-left: 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: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-content {
  /* ❌ PHYSICAL: text-align center is fine here */
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 40px;
  font-weight: 700;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  opacity: 0.9;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-light {
  background: white;
  color: #667eea;
  border: none;
  /* ❌ PHYSICAL: padding-left and padding-right */
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 16px;
  padding-bottom: 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;
  /* ❌ PHYSICAL: padding-left and padding-right */
  padding-left: 32px;
  padding-right: 32px;
  padding-top: 14px;
  padding-bottom: 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: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 48px;
}

.footer-brand .logo {
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 20px;
}

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

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 20px;
}

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

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

.footer-contact p {
  color: #8a8aaa;
  /* ❌ PHYSICAL: margin-bottom */
  margin-bottom: 12px;
}

.footer-bottom {
  /* ❌ PHYSICAL: text-align: left, border-top, padding-top */
  text-align: left;
  padding-top: 30px;
  border-top: 1px solid #2a2a4e;
}

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

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

  .hero-text {
    /* ❌ PHYSICAL: text-align: center */
    text-align: center;
  }

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

  .hero-image {
    display: none;
  }

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

  .feature-card {
    /* ❌ PHYSICAL: text-align: center */
    text-align: center;
    /* ❌ PHYSICAL: border-left removed, but still physical property */
    border-left: none;
    border-top: 4px solid transparent;
  }

  .feature-card:hover {
    border-left-color: transparent;
    border-top-color: #667eea;
  }

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

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

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    /* ❌ PHYSICAL: margin-top */
    margin-top: 16px;
    gap: 16px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    /* ❌ PHYSICAL: text-align: center */
    text-align: center;
  }

  .footer-bottom {
    /* ❌ PHYSICAL: text-align: center */
    text-align: center;
  }
}
