/* ==================== CONTACT SECTION MODERN BOX ==================== */
#contact {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.contact-box {
  border-radius: 22px;
}

#contact > div > h2 {
  color: var(--color-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-dark);
  outline: none;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* ==================== VARIABLES ==================== */
:root {
  --color-bg: #f9fafb;
  --color-text: #1f2937;
  --color-primary: #6fcf97;
  --color-primary-dark: #57b27c;
  --color-secondary: #ffb74d;
  --color-secondary-dark: #ffa726;
  --color-accent: #ffe082;
  --color-accent-dark: #ffd54f;
  --color-card-bg: #ffffff19;
  --color-card-shadow: rgba(0, 0, 0, 0.1);
  --color-footer-bg: #0f172a;
  --color-footer-card: #1f2937;
  --color-footer-text: #e5e7eb;
  --color-footer-accent: #57b27c;
}

/* ==================== BASE ==================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Heebo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  direction: rtl;
  text-align: right;
  background-image: url("assets/images/bg2.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center 40vh; /* start higher */
}

/* Overlay for readability */
main,
section,
header,
footer,
.contact-box,
.card,
.gallery,
.nav,
.hero,
.grid,
.footer-container {
  /* backdrop-filter: blur( 3px); */
}

.card {
  backdrop-filter: blur(5px);
  padding: 11px;
  border-radius: 20px;
  box-shadow: 0 0px 17px rgba(0, 0, 0, 0.15);
}

.nav-links a.cta {
  position: relative;
  background: linear-gradient(90deg, #ffe082 0%, #ffb74d 100%);
  color: #1f2937 !important;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(255, 183, 77, 0.18);
  transition: background 0.4s, color 0.3s, box-shadow 0.4s, transform 0.2s;
  animation: navHighlightPop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1;
}

@keyframes navHighlightPop {
  0% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 0 rgba(255, 183, 77, 0);
  }
  60% {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 6px 24px 0 rgba(255, 183, 77, 0.25);
  }
  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 2px 12px 0 rgba(255, 183, 77, 0.18);
  }
}

/* ==================== NAVBAR ==================== */
.nav {
  background: var(--color-primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  height: 80px;
}

.nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--color-accent);
}

.nav .brand {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.nav .logo {
  font-size: 1.8rem;
  margin-left: 0.5rem;
}

.burger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1100;
  position: relative;
}

.burger.active {
  transform: rotate(90deg) scale(1.2);
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 6px auto;
  background: white;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-primary);
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  transition: background 0.4s;
}

.cta {
  background: var(--color-secondary);
  color: var(--color-text);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s;
}

.cta:hover {
  background: var(--color-secondary-dark);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  /* background: url("") center/cover no-repeat; */
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Modal overlay */
.email-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Modal content */
.email-modal-content {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px var(--color-card-shadow);
  animation: fadeIn 0.3s ease;
}

.email-modal-content h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.email-address {
  font-weight: bold;
  color: var(--color-primary-dark);
  margin: 1rem 0;
}

/* Close button */
.email-modal-close {
  padding: 0.5rem 1rem;
  border: none;
  background: var(--color-primary);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.email-modal-close:hover {
  background: var(--color-primary-dark);
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* fade overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(111, 207, 151, 0.3) 0%,
    rgba(111, 207, 151, 0.2) 70%,
    rgba(111, 207, 151, 0) 100%
  );
  pointer-events: none;
}

.hero .badge {
  background: var(--color-accent);
  color: var(--color-text);
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.8rem;
  background: var(--color-primary);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.btn.secondary {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn.secondary:hover {
  background: var(--color-accent-dark);
}

.hero-card {
  margin: 2rem auto 0;
  max-width: 420px;
  height: min-content;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==================== SECTIONS ==================== */
section {
  width: 80%;
  max-width: 800px;
  margin: 233px auto 3rem auto;
  padding: 3rem 2rem;
  background: var(--color-card-bg);
  border: 2.7px solid rgba(255, 255, 255, 0.27);
  border-radius: 18px;
  box-shadow: 0 8px 20px var(--color-card-shadow);
  scroll-margin-top: 100px;
  transition: transform 0.3s, box-shadow 0.3s;
}

#about {
  margin-top: 150px;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.13);
}

section h2.section-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary);
}

section p,
section ul,
.section-lead {
  color: #ffffff;
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* ==================== LISTS ==================== */
ul {
  list-style: disc;
  padding-left: 1.2rem;
}

/* ==================== GALLERY ==================== */
/* ==================== GALLERY ==================== */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.gallery img {
  width: 100%;
  max-width: 250px; /* original size */
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .gallery img {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .gallery img {
    max-width: 45%; /* two images per row */
  }
}

@media (max-width: 480px) {
  .gallery img {
    max-width: 100%; /* one image per row on small screens */
  }
}

/* ==================== FOOTER ==================== */
footer {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

footer .footer-container {
  width: 80%;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

footer .card {
  background: var(--color-footer-card);
  color: var(--color-footer-text);
  padding: 2rem;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

footer h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-footer-accent);
}

footer form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer input,
footer textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #374151;
  border-radius: 12px;
  background: #111827;
  color: var(--color-footer-text);
  font-size: 1rem;
}

footer input:focus,
footer textarea:focus {
  outline: none;
  border-color: var(--color-footer-accent);
  box-shadow: 0 0 0 2px rgba(87, 178, 124, 0.3);
}

footer button.btn {
  align-self: flex-start;
  background: var(--color-footer-accent);
  color: #ffffff;
  border-radius: 25px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

footer button.btn:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

footer .footer-text {
  text-align: center;
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* ==================== FAQ ==================== */
details {
  margin-bottom: 1rem;
  padding: 1rem;
  backdrop-filter: blur(5px);
  border: 2.7px solid rgba(255, 255, 255, 0.27);
  border-radius: 6px !important;
}

summary {
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
}

/* ==================== CONTACT SECTION ==================== */
#contact {
  padding: 4rem 0 3rem 0;
  text-align: center;
}

#contact .container {
  max-width: 500px;
  margin: 0 auto;
}

#contact .card {
  padding: 2.5rem 2rem 2rem 2rem;
  margin: 0 auto;
}

#contact h3 {
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}

#contact label.small {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #f9fafb;
  transition: border 0.2s;
}

#contact input:focus,
#contact textarea:focus {
  border-color: var(--color-primary-dark);
  outline: none;
}

#contact button.btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    background: var(--color-primary);
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    opacity: 0;
    pointer-events: none;
    border-radius: 0;
    transform: translateY(-30px);
    transition: opacity 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55),
      transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }

  .nav-links.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .burger {
    display: block !important;
  }
  .hero {
    padding: 4rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  section {
    width: 90%;
    padding: 2rem 1rem;
    margin: 60px auto;
  }

  footer button.btn {
    width: 100%;
  }

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

/* Extra responsive for mobile phones */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .nav .container {
    padding: 0.5rem 0.5rem;
    height: 60px;
  }
  .hero {
    padding: 2rem 0.5rem;
  }
  .hero .container {
    width: 90%;
    display: block;
    margin: 0 auto;
  }
  #home > div > img {
    display: block;
    margin: 100px auto;
    width: 100%;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .gallery img {
    width: 100%;
    max-width: 180px;
  }
  .card {
    padding: 1rem;
  }
  section {
    width: 94%;
    padding: 2rem 2.2rem;
    margin: 110px auto;
  }
  .contact-box {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }

  .cta-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-container {
    width: 98%;
    padding: 0.5rem;
  }
}

/* Responsive for tablets and small laptops */
@media (min-width: 481px) and (max-width: 1024px) {
  html {
    font-size: 16px;
  }
  .nav .container {
    padding: 0.7rem 1rem;
    height: 70px;
  }
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .gallery img {
    width: 200px;
  }
  section {
    width: 95%;
    padding: 2rem 1rem;
    margin: 40px auto;
  }
  .contact-box {
    max-width: 95vw;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
  }
}

/* Make images and videos always fit their containers */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Make sure dialog modal is responsive */
#modal img {
  max-width: 95vw;
  max-height: 80vh;
}
