/* Font Imports */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");
@import url('https://fonts.cdnfonts.com/css/helvetica-neue-55');
                

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Base Typography & Direction-specific Font Settings */
[dir="rtl"] {
  font-family: "GEDinarOne", sans-serif;
}

[dir="rtl"] body {
  font-family: "GEDinarOne", sans-serif;
}

[dir="ltr"] {
  font-family: "helvetica", sans-serif;
}

/* Body Styles */
body {
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

.ar-font {
  font-family: "GEDinarOne", sans-serif;
}
.en-font {
  font-family: "helvetica", sans-serif;
}

/* Layout Utilities */
.bg-radial-gradient {
  background: rgb(146, 183, 52);
  background: radial-gradient(
    circle,
    rgba(146, 183, 52, 1) 0%,
    rgba(51, 84, 5, 1) 100%
  );
}

.fixed-fullscreen {
  height: 100vh;
  overflow: hidden;
}

/* Typography Components */
[dir="ltr"] .main-title {
  font-family: "helvetica", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 36px); /* Smaller starting size for English */
  line-height: 1.2;
}

[dir="ltr"] .sub-title {
  font-family: "helvetica", sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 2vw, 20px);
  line-height: 1.25;
}

/* Default styles (RTL - Arabic) */
.main-title {
  font-family: "Cairo", sans-serif;
  font-size: clamp(40px, 5vw, 48px);
  line-height: 120%;
  padding: 0 12px;
}

.sub-title {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 125%;
}

/* Button Styles */
[dir="rtl"] .btn-white,
[dir="rtl"] .btn-submit {
  font-family: "GEDinarOne", sans-serif;
}

[dir="ltr"] .btn-white,
[dir="ltr"] .btn-submit {
  font-family: "helvetica", sans-serif;
  font-weight: 500;
}

.btn-white {
  background-color: #fff;
  color: #4f711d;
  border-radius: 20px;
  font-size: clamp(20px, 4vw, 30px);
  padding: 10px 20px;
  width: clamp(200px, 100%, 300px);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.btn-white:hover {
  background-color: #4f711d;
  color: #fff;
}

.btn-submit {
  background-color: #7dba31;
  color: #fff;
  border-radius: 20px;
  font-size: clamp(20px, 4vw, 30px);
  padding: 10px 20px;
  width: clamp(200px, 100%, 300px);
  cursor: pointer;
  border: none;
  margin: 20px auto;
  display: block;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  text-align: center;
}

.btn-submit:hover {
  background-color: #669422;
}

/* Section Layouts */
.home-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
  padding: 20px;
  margin-bottom: 50px;
  overflow-x: hidden;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

.home-spoon-box {
  width: 100%;
}

.onion-img-small {
  position: absolute;
  top: 4vh;
  left: 5vw;
  max-height: 200px;
  transform: rotateZ(300deg);
  z-index: -1;
  overflow: hidden;
  animation: swing 8s ease-in-out infinite;
}

/* Logo Styles */
.main-logo {
  max-height: 120px;
  width: auto;
}

.footer-logo {
  max-height: 40px;
}

/* Form Styles */
[dir="ltr"] .form-container {
  font-family: "helvetica", sans-serif;
}

[dir="ltr"] .form-group label {
  font-family: "helvetica", sans-serif;
  font-weight: 500;
}

[dir="ltr"] .form-input {
  font-family: "helvetica", sans-serif;
}

.form-container {
  background-color: #e0eac7;
  border-radius: 40px;
  padding: 30px 20px;
  margin: 20px auto;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.form-group-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.form-group label {
  font-size: 18px;
  color: #313233;
}

.form-input {
  height: 50px;
  border-radius: 5px;
  border: 1px solid #c5c7c0;
  padding: 10px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

input[type="checkbox"] {
  height: 20px;
  width: 20px;
  accent-color: #7dba31;
}

.error {
  color: #ff0000;
}

/* Footer Styles */
[dir="ltr"] .footer-content {
  font-family: "helvetica", sans-serif;
}

footer {
  padding: 30px 15px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding-bottom: 30px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  direction: ltr;
}

/* Decorative Images & Animations */
.decorative-img {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

.spoon-img {
  top: -6vh;
  right: -47vw;
  max-height: 100%;
  transform-origin: center right;
  transition: transform 0.3s ease-out;
}

.thankyou-body .single-leaf-img {
  top: -10vh;
  left: 0;
  max-height: 100%;
  display: none;
}
.home-body .single-leaf-img {
  top: 1vh;
  left: 2vw;
  max-height: 100%;
  display: block;
  overflow: hidden;
  max-width: 140px;
}

.home-body .double-leaf-img {
  position: absolute;
  top: -8vh;
  left: 5vw;
  transform: rotate(70deg);
  max-height: 150px;
}

.onion-img {
  position: absolute;
  bottom: 0;
  right: 0;
  max-height: 200px;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease-out;
  overflow: hidden;
}

.tomato-img {
  position: absolute;
  top: 0;
  right: 0;
  max-height: 150px;
  z-index: -1;
  animation: wobble 8s ease-in-out infinite;
  transition: transform 0.3s ease-out;
  overflow: hidden;
}

/* Thank You Section Styles */
.thankyou-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

.thankyou-body .double-leaf-img {
  position: absolute;
  top: 30vh;
  right: 10vw;
  max-height: 20vh;
  z-index: -1;
}

.thankyou-body .tomato-img {
  position: absolute;
  bottom: 0;
  left: 6vw;
  max-height: 40vh;
  z-index: -1;
}

.thankyou-body .tomato-img2 {
  position: absolute;
  top: 35vh;
  left: -3vw;
  max-height: 25vh;
  z-index: -1;
}

/* Animation Keyframes */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(5deg);
  }
  75% {
    transform: translateY(15px) rotate(-5deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(5deg) scale(1.1);
  }
  75% {
    transform: rotate(-5deg) scale(0.9);
  }
}

@keyframes swing {
  0%,
  100% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(15deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Media Queries */
/* Desktop */
@media (min-width: 1280px) {
  .main-logo {
    max-height: 180px;
  }

  .spoon-img {
    top: 0;
    display: block;
    animation: none;
    transition: none;
    right: -10vw;
    opacity: 1;
    transform: none;
  }

  .thankyou-body .single-leaf-img {
    display: block;
  }

  .onion-img,
  .tomato-img {
    max-height: 350px;
  }

  .tomato-img {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    z-index: -1;
  }

  .main-padding {
    padding: 0 90px;
  }

  .form-container {
    padding: 72px;
  }

  .form-group-row {
    flex-direction: row;
  }

  .footer-content {
    flex-direction: row;
    gap: 30px;
  }

  .home-body .double-leaf-img {
    bottom: -18vh;
    top: auto;
    left: -7vw;
    max-height: 100%;
    transform: rotate(0);
  }
  [dir="ltr"] .home-body .double-leaf-img {
    left: auto;
    right: -3vw;
  }

  .scroll-up {
    transform: translateY(-30vh) !important;
  }
}

@media (max-width: 1280px) {
  .thankyou-body .onion-img,
  .thankyou-body .tomato-img,
  .thankyou-body .tomato-img2,
  .thankyou-body .double-leaf-img,
  .thankyou-body .spoon-img {
    display: none;
  }

  [dir="ltr"] .home-body .double-leaf-img {
    left: auto;
    right: -3vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onion-img,
  .tomato-img {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1200px) {
  .hidden-small {
    display: none;
  }
  #form-section {
    margin-top: -10vh;
  }
  .home-spoon-box {
    margin: -20vh auto;
    position: relative;
  }
  .home-body .footer-content {
    margin-top: 24vh;
  }
  .form-container {
    margin: 0 12px;
  }
}

@media (min-width: 1200px) {
  .hidden-lg {
    display: none;
  }
}

.spoon-img-small {
  height: 440px;
  z-index: 3;
  position: relative;
}

.pinna-img {
  max-height: 150px;
  position: absolute;
  bottom: -8vh;
  right: 6px;
}

.language-switch {
  text-align: center;
  position: fixed;
  top: 24vh;
  transform: rotateZ(270deg);
  z-index: 999;
}

.language-switch a {
  text-decoration: none;
  margin: 0 16px;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-weight: bold;
  color: #333;
}

.language-switch a.active {
  background-color: #e0eac7;
  color: #000;
  border-color: #e0eac7;
}

.d-none {
  display: none;
}

.flex-end {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
[dir="ltr"] .flex-end {
  justify-content: flex-end;
}
