/* Start Global Rules */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
:root {
  --main-color: black;
  --main-color-alt: #1787e0;
  --main-transition: 0.3s;
  --main-padding-top: 100px;
  --main-padding-bottom: 100px;
  --section-background: #ececec;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Cairo", sans-serif;
}
a {
  text-decoration: none;
  color: black;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
/* Small */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
.main-title {
  text-transform: uppercase;
  margin: 100px auto 30px; /* Increased top margin to move it lower */
  border: 2px solid black;
  padding: 10px 20px;
  font-size: 30px;
  width: fit-content;
  position: relative;
  z-index: 1;
  transition: var(--main-transition);
}
.main-title::before,
.main-title::after {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--main-color);
  position: absolute;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.main-title::before {
  left: -30px;
}
.main-title::after {
  right: -30px;
}
.main-title:hover::before {
  z-index: -1;
  animation: left-move 0.5s linear forwards;
}
.main-title:hover::after {
  z-index: -1;
  animation: right-move 0.5s linear forwards;
}
.main-title:hover {
  color: white;
  border: 2px solid white;
  transition-delay: 0.5s;
}
.spikes {
  position: relative;
}
.spikes::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 30px;
  z-index: 1;
  background-image: linear-gradient(135deg, white 25%, transparent 25%),
    linear-gradient(225deg, white 25%, transparent 25%);
  background-size: 30px 30px;
}
.dots {
  background-image: url("../imgs/dots.png");
  height: 186px;
  width: 204px;
  background-repeat: no-repeat;
  position: absolute;
}
.dots-up {
  top: 200px;
  right: 0;
}
.dots-down {
  bottom: 200px;
  left: 0;
}
/* End Global Rules */



/* Start Header */
.header {
  background-color: white;
  position: relative;
  -webkit-box-shadow: 0 0 10px #ddd;
  -moz-box-shadow: 0 0 10px #ddd;
  box-shadow: 0 0 10px #ddd;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.header .logo {
  color: var(--main-color);
  font-size: 26px;
  font-weight: bold;
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 767px) {
  .header .logo {
    width: 100%;
    height: 50px;
  }
}
.header .main-nav {
  display: flex;
}
@media (max-width: 767px) {
  .header .main-nav {
    margin: auto;
  }
}
.header .main-nav > li:hover .mega-menu {
  opacity: 1;
  z-index: 100;
  top: calc(100% + 1px);
}
.header .main-nav > li > a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  position: relative;
  color: black;
  padding: 0 30px;
  overflow: hidden;
  font-size: 18px;
  transition: var(--main-transition);
}
@media (max-width: 767px) {
  .header .main-nav > li > a {
    padding: 10px;
    font-size: 14px;
    height: 40px;
  }
}
.header .main-nav > li > a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: var(--main-color);
  top: 0;
  left: -100%;
  transition: var(--main-transition);
}
.header .main-nav > li > a:hover {
  color: var(--main-color);
  background-color: #fafafa;
}
.header .main-nav > li > a:hover::before {
  left: 0;
}
.header .mega-menu {
  position: absolute;
  width: 100%;
  left: 0;
  padding: 30px;
  background-color: white;
  border-bottom: 3px solid var(--main-color);
  z-index: -1;
  display: flex;
  gap: 40px;
  top: calc(100% + 50px);
  opacity: 0;
  transition: top var(--main-transition), opacity var(--main-transition);
}
@media (max-width: 767px) {
  .header .mega-menu {
    flex-direction: column;
    gap: 0;
    padding: 5px;
  }
}
.header .mega-menu .image img {
  max-width: 100%;
}
@media (max-width: 991px) {
  .header .mega-menu .image {
    display: none;
  }
}
.header .mega-menu .links {
  min-width: 250px;
  flex: 1;
}
.header .mega-menu .links li {
  position: relative;
}
.header .mega-menu .links li:not(:last-child) {
  border-bottom: 1px solid #e9e6e6;
}
@media (max-width: 767px) {
  .header .mega-menu .links:first-of-type li:last-child {
    border-bottom: 1px solid #e9e6e6;
  }
}
.header .mega-menu .links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background-color: #fafafa;
  z-index: -1;
  transition: var(--main-transition);
}
.header .mega-menu .links li:hover::before {
  width: 100%;
}
.header .mega-menu .links li a {
  color: var(--main-color);
  padding: 15px;
  display: block;
  font-size: 18px;
  font-weight: bold;
}
.header .mega-menu .links li a i {
  margin-right: 10px;
}
/* End Header */



/* Start Landing */
.landing {
  position: relative;
}
.landing::before {
  content: "";
  position: absolute;
  left: 0;
  top: -40px;
  width: 100%;
  height: 100%;
  background-color: #ececec;
  z-index: -1;
  transform: skewY(-6deg);
  transform-origin: top left;
}
.landing .container {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 0 20px;
  padding-bottom: 120px;
  gap: 40px; /* Adds spacing between text and image */
  flex-wrap: wrap; /* Ensures content wraps for smaller screens */
}
.landing .text {
  flex: 1;
  text-align: center; /* Centers text on all screen sizes */
}
.landing .text h1 {
  font-size: 2.5em;
  font-family: 'Poppins', sans-serif; /* Clean and modern font for headings */
  color: #2C3E50;
  margin-bottom: 20px;
}
.landing .text h3 {
  font-size: 1.2em;
  font-family: 'Roboto', sans-serif; /* A more readable font for paragraphs */
  color: #34495E;
  line-height: 1.8;
  text-align: justify; /* Ensures text is cleanly aligned for better readability */
  margin: 0 auto;
  max-width: 800px; /* Restricts width for optimal reading */
}
/* Responsive Adjustments */
@media (max-width: 991px) {
  .landing .container {
    flex-direction: column; /* Stack elements vertically */
    gap: 20px; /* Reduce gap between elements */
    padding: 20px; /* Add padding for better spacing */
  }

  .landing .image {
    order: -1; /* Move the image above the text */
    margin-bottom: 20px; /* Add space below the image */
  }

  .landing .image img {
    width: 100%; /* Make the image responsive */
    max-width: 300px; /* Limit maximum width */
    height: auto; /* Maintain aspect ratio */
  }

  .landing .text h1 {
    font-size: 1.8em; /* Adjust heading size for mobile */
  }

  .landing .text h3 {
    font-size: 1em; /* Adjust paragraph size for mobile */
    text-align: center; /* Center-align text for mobile */
    max-width: 90%; /* Reduce max width for better readability */
  }
}
@media (max-width: 767px) {
  .landing .container {
    flex-direction: column; /* Stack elements vertically */
    gap: 20px; /* Reduce gap between elements */
    padding: 20px; /* Add padding for better spacing */
  }

  .landing .image {
    order: -1; /* Move the image above the text */
    margin-bottom: 20px; /* Add space below the image */
  }

  .landing .image img {
    width: 100%; /* Make the image responsive */
    max-width: 300px; /* Limit maximum width */
    height: auto; /* Maintain aspect ratio */
  }

  .landing .text h1 {
    font-size: 1.8em; /* Adjust heading size for mobile */
  }

  .landing .text h3 {
    font-size: 1em; /* Adjust paragraph size for mobile */
    text-align: center; /* Center-align text for mobile */
    max-width: 90%; /* Reduce max width for better readability */
  }
}
.landing .image img {
  position: relative;
  width: 500px;
  animation: up-and-down 5s linear infinite;
}
.landing .go-down {
  color: var(--main-color);
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--main-transition);
}
.landing .go-down:hover {
  color: var(--main-color-alt);
}
.landing .go-down i {
  animation: bouncing 1.5s infinite;
}
/* End Landing */



/* Start Service */
.wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  margin-top: 20px;
}
.discount {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* Ensures spacing between elements */
  gap: 20px; /* Adds gap between the two boxes */
}
.discount .image {
  background-size: cover;
  color: white;
  flex-basis: calc(50% - 10px); /* Ensures both elements fit evenly */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;

}
.discount .image::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color:#F5F5F5 ;
  z-index: -1;
}
@media (max-width: 991px) {
  .discount .image {
    flex-basis: 100%;
  }
}
.discount .content {
  text-align: center;
  padding: 0 20px;
  display: grid;
  place-items: center;
}
.discount .content h2 {
  font-size: 40px;
  letter-spacing: -2px;
  color: #268096;
}
.discount .content p {
  line-height: 1.6;
  font-size: 18px;
  max-width: 500px;
  color: black;
}

.discount .content img {
  margin-top: 10px;
  width: 300px;
  max-width: 100%;
}
/* 2th */
.discount .image1 {
  background-size: cover;
  color: white;
  flex-basis: calc(50% - 10px); /* Ensures both elements fit evenly */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.discount .image1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #F5F5F5 ;
  z-index: -1;
}
@media (max-width: 991px) {
  .discount .image,
  .discount .image1 {
    flex-basis: 100%;
  }
}
.discount .content1 {
  text-align: center;
  padding: 0 20px;
  display: grid;
  place-items: center;
}
.discount .content1 h2 {
  font-size: 40px;
  letter-spacing: -2px;
  color: #2c326e;
}
.discount .content1 p {
  line-height: 1.6;
  font-size: 18px;
  max-width: 500px;
  color: black;

}
.discount .content1 img {
  margin-top: 10px;
  width: 300px;
  max-width: 100%;
}
/* End Service */



/* Start Prise */
.wrapper1 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: 20px;
}

.table-container {
  text-align: center;
  max-width: 650px;
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 20px;
}

.table-container h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

select {
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  margin-top: 10px;
}
#model-select {
  width: 250px; /* Consistent width for both dropdowns */
}

.price-table {
  width: 500px; /* Fixed table width */
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #ffffff;
}

.price-table th,
.price-table td {
  padding: 15px;
  text-align: left;
  font-size: 18px;
  color: #333;
}

.price-table th {
  background-color: #f7f7f7;
  font-weight: bold;
}

.price-table tbody tr:nth-child(even) {
  background-color: #f7f7f7;
}

.price-table tbody tr:hover {
  background-color: #cfe8f6;
}

.price-table tbody tr td:last-child {
  text-align: right;
}

@media (max-width: 768px) {
  .table-container {
    width: 90%;
    padding: 15px;
  }

  select {
    font-size: 14px;
  }

  table th,
  .price-table  {
    width: 95%;
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .table-container {
    width: 95%;
    padding: 10px;
  }

  select {
    max-width: 100px;
    font-size: 12px;
    padding: 8px;
  }

  table th,
  .price-table  {
    width: 95%;
    padding: 10px;
    font-size: 12px;
  }
}
/* End Prise */



/* Start Footer */
.footer {
  background-color: #F5F5F5;
  padding: 70px 0 0;
}

@media (max-width: 767px) {
  .footer {
    text-align: center;
  }
}
.img123 img {
           height: 150px;
           margin-left: -18px; /* Default margin for larger screens */
       }

       /* Media query for smaller screens (e.g., phones) */
       @media (max-width: 768px) {
           .img123 img {
               margin-left: 0; /* Reset margin to 0 for phones */
           }
       }
.responsive-map {
  width: 360px; /* Full width of column */
  height: 200px;
  max-width: 360px; /* Limit width for large screens */
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
    .responsive-map {
        width: 100%; /* Make the map take full width */
        height: auto; /* Adjust height proportionally */
    }
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Wider column size */
  gap: 60px; /* Increased gap for better spacing */
}

.footer .box {
  padding: 10px 20px;
}

.footer .box h4 {
  color: black;
  font-size: 28px;
  margin-bottom: 15px;
}

.footer .box .social {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .footer .box .social {
    justify-content: center;
  }
}

.footer .box .social li {
  margin-right: 10px;
    list-style: none;
}

.footer .box .social li a {
  background-color: #ADD8E6;
  color: black;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  font-size: 20px;
  transition: var(--main-transition);
  text-decoration: none;
}

.footer .box .social .facebook:hover {
  background-color: #1877f2;
}

.footer .box .social .instagram:hover {
  background-color: #FFA500;
}

.footer .box .social .whatsapp:hover {
  background-color: #00ff00;
}

.footer .box .social .tiktok:hover {
  background-color: #00f2ea;
}
.footer .box .text {
  line-height: 2;
  color: #b9b9b9;
}

.footer .box .links li {
  padding: 15px 0;
  transition: var(--main-transition);
}

.footer .box .links li:not(:last-child) {
  border-bottom: 1px solid #444;
}

.footer .box .links li:hover {
  padding-left: 10px;
}

.footer .box .links li:hover a {
  color: black;
}

.footer .box .links li a {
  color: black;
  transition: var(--main-transition);
}

.footer .box .links li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\F101";
  font-weight: 900;
  margin-right: 10px;
  color:black;
}

.footer .box .line {
  display: flex;
  align-items: center;
  color: black;
  margin-bottom: 5px;
}
.footer .box .line:hover a  {
  color: blue;

}

@media (max-width: 767px) {
  .footer .box .line {
    flex-direction: column;
  }
}

.footer .box .line i {
  font-size: 25px;
  color: var(--main-color);
  margin-right: 10px;
}

@media (max-width: 767px) {
  .footer .box .line i {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

.footer .box .line .info {
  line-height: 1.7;
  flex: 1;
}

.footer .box .line .info span {
  display: block;
}

.footer .copyright {
  padding: 25px 0;
  text-align: center;
  color: black;
  margin: 50px 0 0;
  border-top: 1px solid #444;
}
/* End Footer */



/* Start Animations */
@keyframes up-and-down {
  0%,
  100% {
    top: 0;
  }
  50% {
    top: -50px;
  }
}

@keyframes left-move {
  50% {
    left: 0;
    width: 12px;
    height: 12px;
  }
  100% {
    left: 0;
    border-radius: 0;
    width: 50%;
    height: 100%;
  }
}

@keyframes right-move {
  50% {
    right: 0;
    width: 12px;
    height: 12px;
  }
  100% {
    right: 0;
    border-radius: 0;
    width: 50%;
    height: 100%;
  }
}
/* End Animations */
