html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  overflow-x: hidden;
  width: 100%;
  color: #333;
  line-height: 1.6;
}

.navbar {
  position: fixed;
  height: 80px;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  opacity: 0;
  display: flex;
  align-items: center;
  transform: translateY(-30px);
  animation: navbarFadeIn 0.9s 0.2s ease-out forwards;
}

@keyframes navbarFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar.transparent {
    background: transparent;
    box-shadow: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Desktop Scrolled Navbar */
.navbar.scrolled {
    background: rgba(30, 30, 30, 0.85); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    align-items: center;
    margin: 0 auto;
    gap: 30px;
}

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

.logo {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.2)
}

.nav-links {
    align-items: center;
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #80CC55;
}

/* Base Hamburger Styles */
.hamburger {
  display: none;
  position: absolute;
  top: 17.5px; /* Mathematically centered in the 80px navbar */
  right: 20px; 
  z-index: 1200;
  font-size: 2.2em; /* Sized to visually match the logo */
  height: 45px; /* Matches logo height perfectly */
  line-height: 45px;
  cursor: pointer;
  color: #80CC55; /* The requested green */
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

/* ✅ Responsive Navbar Fix for Mobile */
@media (max-width: 768px) {
  
  /* Give the top header a slight glass effect so it blends with the menu */
  .navbar, .navbar.transparent, .navbar.scrolled {
    background: rgba(15, 15, 15, 0.8) !important; 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  }

  /* Hamburger perfectly aligned */
  .hamburger {
    display: block;
    top: 17.5px; 
    right: 20px;
  }

  /* Logo perfectly aligned */
  .logo-wrapper {
    position: absolute;
    top: 17.5px; /* (80px nav - 45px logo) / 2 = 17.5px */
    left: 20px; 
    z-index: 1200; 
  }

  .logo {
    width: 45px;
    height: 45px;
    display: block;
  }

  /* Full Screen Dark Glass Menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%; 
    height: 100vh;
    background: rgba(5, 5, 5, 0.65); /* Dark translucent base */
    backdrop-filter: blur(25px); /* Strong glass blur */
    -webkit-backdrop-filter: blur(25px); /* Safari support */
    flex-direction: column; 
    justify-content: center;
    align-items: center; /* Centers the text perfectly */
    display: flex;
    gap: 35px; 
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1100; 
  }

  .nav-links.open {
    right: 0;
  }

  /* Match the "X" button style perfectly */
  #hamburger.is-close {
    font-size: 2em;
    color: #80CC55; /* Green */
    border: 2px solid #80CC55; /* Green border */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px; /* Exact same dimensions as the logo */
    height: 45px;
    box-sizing: border-box;
  }

  /* Large, bold centered text for links */
  .nav-links li a {
    font-size: 30px; 
    font-weight: 600; 
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: capitalize;
  }
}

/* Sections */
section {
    padding: 60px 20px;
    max-width: 1920px;
    margin: auto;
}

/* Hero Full Background */
.hero-section {
  padding: 100px 20px 0 20px; /* Remove bottom padding */
  min-height: 93vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url("../imgs/background1.jpg");
  direction: rtl;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  direction: rtl;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text, .hero-image {
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .hero-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 70vh; /* Ensure enough height for alignment */
  position: relative;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  opacity: 0;
  transform: translateX(60px);
  animation: heroTextIn 1s 0.2s ease-out forwards;
}

.hero-text h1 {
  font-size: 41px;
  font-weight: 900;
  text-shadow: -2px 2px 12px #1e1e1e6b;
  color: #80CC55;
  margin-bottom: 1px;
}

.hero-text p {
  font-size: 19px;
  font-weight: 600;
  text-shadow: -1px 1px 10px #1e1e1e6b;
  color: #ffffff;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-button {
  display: inline-block;
  padding: 12px 24px;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 500;
  text-shadow: -1px 1px 10px #1e1e1e6b;
  background-color: #80CC55;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-button:hover {
  transform: scale(1.05);
  background-color: #24852c;
}

.hero-image {
  flex: 1;
  opacity: 0;
  min-width: 200px;
  text-align: center;
  transform: translateX(-60px);
  animation: heroImgIn 1s 0.5s ease-out forwards;
  align-self: flex-end; /* Make sure image is at the bottom */
  position: relative;
  z-index: 2;
}


.hero-image img {
  max-width: 650px;
  display: block;
}

@keyframes heroTextIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroImgIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Find us section */
.findus-text-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #80CC55, #009250);
  direction: rtl;
}

.findus-title-text {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 25px;
}

.findus-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.findus-links a {
  font-size: 20px;
  font-weight: bold;
  color: #444;
  text-decoration: none;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.findus-links img {
   height: 70px;
   width: 240px;
}


.findus-links a:hover {
  color: white;
  transform: scale(1.05);
}


/* About-us Section */
.about-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  direction: rtl;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-title {
  font-size: 32px;
  color: #80CC55;
  margin-bottom: 10px;
}

.about-subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 25px;
}

.about-paragraph-box {
  background-color: #f0f4f8;
  border-right: 4px solid #80CC55;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  color: #333;
  line-height: 1.7;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Offers Section */
.offer-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  direction: rtl;
  text-align: center;
}

.offer-title {
  font-size: 32px;
  color: #80CC55;
  margin-bottom: 10px;
}

.offer-subtitle {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

.offer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.offer-card {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.offer-card i {
  font-size: 32px;
  color: #80CC55;
  margin-bottom: 15px;
}

.offer-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.offer-card p {
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.6;
}

.downline {
  padding: 40px;
    background-color: #f9f9f9;
}

/* Appointment Section */
.appointment-section {
  background: linear-gradient(135deg, #80CC55, #23561f);
  padding: 60px 20px;
  color: white;
  direction: rtl;
  text-align: center;
 }



.appointment-container {
  max-width: 800px;
  margin: 0 auto;
}

.appointment-text{
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}

.appointment-text h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.appointment-text p {
  font-size: 16px;
  margin-bottom: 30px;
}

.appointment-form {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "name phone"
    "email email"
    "submit submit";
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}

.appointment-section.visible .appointment-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.appointment-section.visible .appointment-form {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.appointment-form input {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  text-align: right;
  background: white;
  color: #333;
}

.appointment-form input::placeholder {
  color: #888;
}

.appointment-form button {
  grid-area: submit;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  background-color: #ffffff;
  color: #80CC55;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.appointment-form button:hover {
  background-color: #f0f0f0;
}

.appointment-form input:nth-child(1) { grid-area: name; }
.appointment-form input:nth-child(2) { grid-area: phone; }
.appointment-form input:nth-child(3) { grid-area: email; }

.status-message {
  font-size: 20px;
  margin-top: 10px;
  font-family: "Heebo", sans-serif;
}

/* 🔽 Responsive Styling for Small Screens */
@media (max-width: 600px) {
  .appointment-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "phone"
      "email"
      "submit";
  }
}



/* FeedBack */
.feedback-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
  direction: rtl;
}

.feedback-title {
  font-size: 32px;
  color: #80CC55;
  margin-bottom: 10px;
}

.feedback-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.feedback-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.feedback-gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}

.feedback-gallery img.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feedback-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


/* gallery */
.car-section {
  background-color: #f9f9f9;
}

.carousel {
  width: 100%;
  max-width: 1100px;
  height: 650px;
  position: relative;
  margin: 0 auto;
}

.carousel > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 200ms opacity ease-in-out;
  transition-delay: 200ms;
}

.slide > img {
  border-radius: 15px;
  border: none;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide[data-active] {
  opacity: 1;
  z-index: 1;
  transition-delay: 0ms;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(41, 41, 41, 0.44);
  border-radius: 100%;
  border: none;
  padding: 2px 12px;
  color: #80CC55;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s;
}

.carousel-button:hover,
.carousel-button:focus {
  color: #f3f3f3;
}

.carousel-button:focus {
  outline: 1px solid black;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.gallery-title {
  font-size: 28px;
  color: #80CC55;
  text-align: center;
  margin-bottom: 25px;
}


/* Responsive for tablets (width <= 900px) */
@media (max-width: 900px) {
  .carousel {
    height: 450px;
  }
  .carousel-button {
    font-size: 24px;
    padding: 2px 10px;
  }
}

/* Responsive for mobile phones (width <= 600px) */
@media (max-width: 600px) {
  .carousel {
    height: 300px;
  }
  .carousel-button {
    font-size: 20px;
    padding: 1px 8px;
  }
  .carousel-button.prev {
    left: 0.5rem;
  }
  .carousel-button.next {
    right: 0.5rem;
  }
  .slide > img {
    border-radius: 6px;
  }
}


/* Contact Section */
.landing-contact {
  background-color: #f9f9f9;
  padding: 60px 20px;
  direction: rtl;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.contact-info-area {
  flex: 1;
  min-width: 300px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.contact-form-area {
  flex: 1;
  min-width: 300px;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.contact-info-area.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-form-area.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-subtitle {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

.contact-info-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info-box i {
  font-size: 20px;
  background: #80CC55;
  color: white;
  border-radius: 50%;
  padding: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-box h3 {
  margin: 0;
  font-size: 18px;
}

.contact-info-box a {
  text-decoration: none;
  margin: 2px 0 0;
  font-size: 15px;
  color: #444;
}

.contact-info-box a:hover {
  color: #639d42; /* You can choose any color */
  text-decoration: underline; /* Optional */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  text-align: right;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #80CC55;
  outline: none;
}

.contact-form button {
  padding: 12px;
  font-size: 16px;
  background-color: #80CC55;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #00921d;
}

.full-width-map {
  width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.full-width-map iframe {
  width: 100%;
  height: 300px;
  display: block;
}

.map-container {
  width: 65%;
  height: 400px;
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive height for smaller devices */
@media (max-width: 768px) {
  .map-container {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .map-container {
    height: 250px;
  }
}


/* Footer */
.footer {
  background-color: #1e1e1e;
  color: #ffffff;
  direction: rtl;
  padding-top: 50px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 40px;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-brand h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #80CC55;
}

.footer-brand img {
  max-width: 100px;
  margin-top: 10px;
  transition: transform 0.3s ease;
}

.footer-brand img:hover {
  transform: scale(1.1); /* Makes it 10% bigger */
}

.footer-brand p {
  font-size: 14px;
  color: #ccc;
}

.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #80CC55;
}

.footer-links i {
  margin-left: 8px;
  color: #80CC55;
}

.footer-contact p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-contact i {
  margin-left: 8px;
  color: #80CC55;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 10px;
}

.footer-contact a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #80CC55;
}

.footer-bottom {
  background-color: #80CC55;
  text-align: center;
  padding: 15px 10px;
  font-size: 15px;
  color: #1e1e1e;
}

.ashrfcode {
  margin-top: 7px;
  font-weight: 500;
}


/* Scroll Fade Animation */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}



