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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

body.rtl {
  direction: rtl;
}

.container {
  max-width: 800px;
  width: 90%;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
  margin-top: 4rem;
}

.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

body.rtl .language-switcher {
  right: auto;
  left: 20px;
}

.lang-btn {
  padding: 10px 18px;
  background: #ffffff;
  border: 2px solid #469840;
  color: #469840;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(70, 152, 64, 0.1);
  display: inline-block;
}

.lang-btn:hover {
  background: #469840;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(70, 152, 64, 0.3);
  text-decoration: none;
}

.lang-btn.active {
  background: linear-gradient(135deg, #469840, #0e6471);
  color: white;
  border-color: transparent;
}

.logo {
  width: 150px;
  height: auto;
  margin-bottom: 3rem;
  filter: drop-shadow(0 10px 30px rgba(14, 100, 113, 0.2));
  animation: fadeInDown 1s ease-out;
}

.main-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #469840, #0e6471);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out 0.2s both;
  line-height: 1.2;
}

.subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 3rem;
  color: #666;
  animation: fadeInUp 1s ease-out 0.4s both;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-weight: 400;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.feature-card {
  background: linear-gradient(
    135deg,
    rgba(70, 152, 64, 0.05),
    rgba(14, 100, 113, 0.05)
  );
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(70, 152, 64, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(14, 100, 113, 0.15);
  border-color: #469840;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0e6471;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 1s both;
}

.social-link {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #469840, #0e6471);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

/* Brand background colors */
.social-email {
  background: #ea4335;
}
.social-whatsapp {
  background: #25d366;
}
.social-instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.social-phone {
  background: #0e6471;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(14, 100, 113, 0.4);
}

.content-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.content-section.active {
  opacity: 1;
  transform: translateY(0);
}

.plane {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  filter: drop-shadow(2px 4px 6px rgba(14, 100, 113, 0.3));
}

.kaaba-container {
  position: absolute;
  width: 50px;
  aspect-ratio: 1/1;
  pointer-events: none;
  z-index: 9998;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 12px rgba(14, 100, 113, 0.25));
}

.kaaba-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(70, 152, 64, 0.2),
    rgba(14, 100, 113, 0.15),
    rgba(70, 152, 64, 0.1)
  );
  border: 2px solid rgba(70, 152, 64, 0.4);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(14, 100, 113, 0.25),
    0 2px 8px rgba(70, 152, 64, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 50% 50%;
  overflow: hidden;
}

.kaaba-card.expanded {
  width: 100px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(70, 152, 64, 0.25),
    rgba(14, 100, 113, 0.2),
    rgba(70, 152, 64, 0.15)
  );
  border-color: rgba(70, 152, 64, 0.6);
  box-shadow: 0 16px 64px rgba(14, 100, 113, 0.35),
    0 4px 16px rgba(70, 152, 64, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.kaaba {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

.kaaba-card.expanded .kaaba {
  transform: translateX(-20px);
  font-size: 32px;
}

.decorative-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.decorative-circle {
  position: absolute;
  border: 2px solid rgba(70, 152, 64, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.decorative-circle:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.decorative-circle:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 70%;
  right: 10%;
  animation-delay: -3s;
  border-color: rgba(14, 100, 113, 0.1);
}

.decorative-circle:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 80%;
  animation-delay: -6s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

@media (max-width: 768px) {
  .container {
    margin-top: 2rem;
  }

  .language-switcher {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 2rem;
    justify-content: center;
  }

  body.rtl .language-switcher {
    left: 0;
  }

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

  .social-links {
    gap: 1rem;
  }

  /* Hide Kaaba and plane on mobile/tablet */
  .plane,
  .kaaba-container {
    display: none !important;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .decorative-circle {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}
