:root {
  --yellow: #D4952F;
  --cream: #eddc97;
  --white: #FFFFFF;
  --bg: hsl(48, 32%, 91%);
  --text: #333;
}

body {
  margin: 0;
  font-family: 'Avenir Next Arabic', sans-serif;
  background-color: #EDDC97;
  color: #555555;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 70px 0 20px 0;
}

section {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
}

.section-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ======= NAVBAR SECTION ======= */
.navbar {
  background-color: #EFECE0;
  border-bottom: 1px solid #EDDC97;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row; 
}

.logo {
  height: 80px; 
  width: auto;
  object-fit: contain;
  
}

.logo-link {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: 50px;
  padding: 0;
}


.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  margin-right: 250px;
}

/* Language Switcher */
.language-switcher {
  background: none;
  border: 2px solid var(--yellow);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
}

.language-switcher:hover {
  background-color: var(--yellow);
  color: white;
  transform: translateY(-2px);
}

.language-switcher i {
  font-size: 16px;
}

.lang-text {
  font-family: 'Avenir Next Arabic', sans-serif;
}


.nav-links li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links li a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background-color: var(--yellow);
  transition: width 0.3s ease;
  position: absolute;
  bottom: -6px;
  right: 0;
}

.nav-links li a:hover {
  color: var(--yellow);
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links.show {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

/* Push hero down below navbar */
.landing-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 10% 80px;
  position: relative;
  background-color: var(--bg);
}

/* Background gradient blob */
.background-gradient {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle at center, var(--yellow), var(--yellow));
  filter: blur(150px);
  z-index: -1;
}

main {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.card {
  background: #EDDC97;
  padding: 25px;
  max-width: 700px;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
  margin-top: 30px;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease-in forwards;
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Floating bees with orbit animation */
@keyframes floatAround {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(100px, -50px) rotate(90deg); }
  50%  { transform: translate(200px, 0px) rotate(180deg); }
  75%  { transform: translate(100px, 50px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.bee {
  position: fixed;
  font-size: 30px;
  z-index: 0;
  animation: floatAround 20s linear infinite;
}

.bee1 {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.bee2 {
  top: 50%;
  left: 70%;
  animation-delay: 0s;
}

.bee3 {
  bottom: 20%;
  left: 40%;
  animation-delay: 0s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  body, html {
    overflow-x: hidden;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }

  /* Prevent zoom on input focus on iOS */
  input, textarea, select {
    font-size: 16px;
  }

  /* Improve touch targets */
  button, a, input, textarea, select {
    min-height: 44px;
    min-width: 44px;
  }

  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .language-switcher:hover {
      transform: none;
      background-color: transparent;
      color: var(--yellow);
    }
    
    .store:hover img {
      transform: none;
    }
  }

  .navbar {
    padding: 0;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    margin-right: 0;
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }


  body.terms-page .hamburger {
    font-size: 32px; /* or any size you want */
  }

  body.index-page .hamburger {
    font-size: 32px; /* or any size you want */
  }

  body.vision-page .hamburger {
    font-size: 32px; /* or any size you want */
  }

  body.privacy-page .hamburger {
    font-size: 32px; /* or any size you want */
  }


  
  .language-switcher {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    max-height: 60vh;
    overflow-y: auto;
    background-color: #EFECE0;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  body.terms-page .nav-links,
  body.privacy-page .nav-links {
    align-items: center;
    text-align: center;
  }

  body.terms-page .nav-links li,
  body.privacy-page .nav-links li {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  body.privacy-page .hamburger {
  margin-left: auto;
  margin-right: 195px;
  display: block;
  }


  body.terms-page .hamburger {
    margin-left: auto;
    margin-right: 195px;
    display: block;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    padding: 15px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    display: block;
    padding: 15px 20px;
    width: 100%;
    font-size: 1.1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    width: 100%;
    direction: rtl;
    position: relative;
  }

  .logo {
    height: 60px;
  }

  .text-content {
    max-width: 100%;
    text-align: center;
    padding: 0 20px;
  }

  .text-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.2;
  }

  .text-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.5;
  }

  .phone-mockup img {
    width: 85%;
    max-width: 280px;
  }

  .hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .store-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
  }

  .store img {
    height: 50px;
  }

  .background-gradient {
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    filter: blur(100px);
  }

  /* Disable bee animations on mobile for better performance */
  .bee {
    display: none;
  }

  /* Adjust section spacing */
  section {
    padding: 60px 15px;
    min-height: auto;
  }

  .section-inner {
    padding: 0 15px;
  }

  /* Footer adjustments */
  .footer {
    padding: 20px 15px;
  }

  .footer h2 {
    font-size: 1.3rem;
  }

  .social-icons {
    gap: 15px;
  }

  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 8px 10px;
  }

  .logo {
    height: 50px;
  }

  .hamburger {
    font-size: 20px;
    min-height: 40px;
    min-width: 40px;
  }

  .text-content h1 {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
  }

  .text-content p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }

  .phone-mockup img {
    width: 90%;
    max-width: 250px;
  }

  .store img {
    height: 45px;
  }

  section {
    padding: 40px 10px;
  }

  .section-inner {
    padding: 0 10px;
  }

  .footer {
    padding: 15px 10px;
  }

  .footer h2 {
    font-size: 1.2rem;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .hero-container {
    gap: 25px;
    padding: 0 10px;
  }

  .store-buttons {
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .navbar-container {
    padding: 5px 8px;
  }

  .logo {
    height: 45px;
  }

  .hamburger {
    font-size: 18px;
    min-height: 36px;
    min-width: 36px;
  }

  .text-content h1 {
    font-size: clamp(1.3rem, 7vw, 1.5rem);
  }

  .text-content p {
    font-size: 0.9rem;
  }

  .phone-mockup img {
    width: 95%;
    max-width: 220px;
  }

  .store img {
    height: 40px;
  }

  .landing-wrapper {
    padding: 70px 8px 30px;
  }

  .hero-container {
    gap: 20px;
    padding: 0 8px;
  }
}

/* Social Media Section */
.footer {
  background: linear-gradient(to left, #d4af37, #f0e68c);
  color: #333;
  text-align: center;
  padding: 30px 15px;
  border-top: 1px solid #ddd;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 30px 15px;
  box-sizing: border-box; 
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: 0;
  right: 0;
}

.footer h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #333333;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.social-icons a:hover {
  background-color: #333333;
  color: #ffffff;
  transform: translateY(-3px);
}



.social-media-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  z-index: 999;
  box-sizing: border-box;
}

.about-section {
  background: var(--cream) !important;
  min-height: 60vh;
  padding: 48px 0;
}

.features-section {
  background: #fff !important;
  margin: 0 !important;
}

.contact-section {
  background: #f5f3ef !important;
  margin: 0 !important;
}

.section-box, .about-box {
  display: contents;
}

.section-divider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  line-height: 0;
  height: 80px;
  overflow: hidden;
  padding: 0;
  z-index: 2;
  position: relative;
}
