@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Turret+Road:wght@200;300;400;500;700;800&display=swap');

/* Reset & General Styles */
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-padding-top: 2rem;
  scroll-behavior: smooth;
  list-style: none;
  text-decoration: none;
}

/* Root Variables */
:root {
  --main-color: #003ada;
  --second-color: #0732de;
  --text-color: #444444;
  --gradient: linear-gradient(#0700c7, #0008ec);
}

/* Scrollbar */
html::-webkit-scrollbar {
  width: 0.5rem;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 5rem;
}

/* Sections */
section {
  padding: 50px 100px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #EEEFF1;
  padding: 15px 100px;
}

/* Logo */
.logo img {
  width: 40px;
}

/* Navbar */
.navbar {
  display: flex;
}

.navbar li {
  position: relative;
}

.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: 0.5s;
}

.navbar a:hover::after {
  width: 100%;
}

/* Header Icons */
header .ri-close-line {
  display: none;
}

#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 110;
  display: none;
}

/* Header Buttons */
.header-btn a {
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
}

.header-btn .sign-in {
  background: #474FA0;
  color: #FFFFFF;
  border-radius: 0.5rem;
  transition: 0.5s;
}

.header-btn .sign-in:hover {
  background: var(--main-color);
}

/* Home */
.home { 
    width: 100%; 
    min-height: 100vh;
    position: relative; 
    background-image: url("images/main/main.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
}
.text h1 { font-size: 3.5rem; letter-spacing: 2px; }
.text span { color: var(--main-color); }
.text p { margin: 0.5rem 0 1rem; font-size: 1rem; }
.social a {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--main-color);
  transition: 0.3s;
}
.social a:hover {
  transform: scale(1.2);
  color: #4b05fb;
}

/* Events */
.heading {
  text-align: center;
  margin-top: 3rem;
}
.heading span {
  font-weight: 500;
  text-transform: uppercase;
}
.heading h1 {
  font-size: 2rem;
}

.ride-container {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, auto));
  gap: 1rem;
  margin-top: 2rem;
}

.ride-container .box {
  text-align: center;
  padding: 20px;
}

.ride-container .box i {
  font-size: 34px;
  padding: 10px;
  background: #EEEFF1;
  border-radius: .5rem;
  color: var(--main-color);
}

.ride-container .box i:hover {
  background: var(--gradient);
  color: #FFFFFF;
}

.ride-container .box h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 1.4rem 0 0.5rem;
}

/* Services */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, auto));
  gap: 1rem;
  margin-top: 2rem;
}

.services-container .box {
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 1px 4px 41px rgba(0, 0, 0, .1);
}

.services-container .box .box-img {
  width: 100%;
  height: 200px;
}

.services-container .box .box-img img {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  object-position: center;
}

.services-container .box p {
  padding: 0 10px;
  border: 1px solid var(--text-color);
  width: 58px;
  border-radius: .5rem;
  margin: 1rem 0 1rem;
}

.services-container .box h3 {
  font-weight: 500;
}

.services-container .box h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--main-color);
  margin: 0.2rem 0 0.5rem;
}

.services-container .box h2 span {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-color);
}

.services-container .box .btn {
  display: flex;
  justify-content: center;
  background: #474FA0;
  color: #FFFFFF;
  padding: 10px;
  border-radius: .5rem;
  transition: .5s;
}

.services-container .box .btn:hover {
  background: var(--main-color);
}

/* About */
.about-container { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; align-items: center; gap: 1rem; margin-top: 1rem; }
.about-img img { width: 100%; }
.about-text span { font-weight: 500; color: var(--main-color); text-transform: uppercase; }
.about-text p { margin: 0.5rem 0 1.4rem; }
.about-text .btn { padding: 10px 20px; background: #474FA0; color: #FFFFFF; border-radius: .5rem; transition: .5s; }
.about-text .btn:hover { background: var(--main-color); }

/* Reviews */
.reviews-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, auto)); gap: 1rem; margin-top: 2rem; }
.reviews-container .box { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px; box-shadow: 1px 4px 4px rgba(0, 0, 0, .1); border-radius: .5rem; }
.reviews-container .box h2 { font-size: 1.1rem; font-weight: 600; margin: .5rem 0 .5rem; }
.reviews-container .box p { font-style: italic; }
.reviews-container .box i { color: var(--main-color); }
.rev-img { width: 70px; height: 70px; }
.rev-img img { width: 100%; height: 100%; border-radius: 100%; object-fit: cover; object-position: center; border: 2px solid var(--second-color); }

/* Newsletter */
.social a { color: #444444; padding: 10px; font-size: 21px; }

/* Footer */
.main-footer {
  background: linear-gradient(135deg, #010178, #021f70);
  color: #fff;
  padding: 60px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section h2.logo {
  font-size: 28px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #ffffff;
}

.footer-section p {
  line-height: 1.6;
  font-size: 14px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ffffff;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #000000;
}

.footer-section form {
  display: flex;
  gap: 10px;
}

.footer-section input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  flex: 1;
}

.footer-section button {
  padding: 10px 20px;
  border: none;
  background: #1500ff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.footer-section.social {
  margin-top: 40px;
}

.footer-section button:hover {
  background: #ffffff;
}

.social-icons a {
  color: rgb(43, 0, 255);
  font-size: 18px;
  margin-right: 15px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #ced5d5;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 14px;
  color: #aaa;
}

.footer-section.links {
  margin-left: 80px;
}

.footer-section.newsletter {
  text-align: center;
  margin-bottom: 20px;
}

.image-section {
  text-align: center;
  margin: 20px 0;
}

.image-section img {
  float: right;
  width: 250px;
  height: auto;
  margin-right: 200px;
  margin-bottom: 15px;
  margin-top: -90px;
}

.footer-section h3 {
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* Responsive */
@media(max-width: 1375px) {
  .text { display: block; }
}

@media(max-width: 991px) {
  header { padding: 18px 40px; }
  section { padding: 50px 40px; }
}

@media(max-width: 881px) {
  .home { background-position: center; grid-template-columns: 1fr; }
  .text { display: block; }
  .form-container { padding-top: 2rem; }
}

@media(max-width: 795px){
  header { padding: 11px 40px; }
  #menu-icon { display: initial; }
  .sign-up { display: none; }
  .text h1 { font-size: 2.5rem; width: 320px; }
  .text p { font-size: .8rem; width: 320px; }
  .form-container form { position: unset; }

  header .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    transition: .2s ease;
    text-align: left;
  }

  .navbar.active { top: 100%; }
  .navbar a {
    padding: 1rem;
    border-left: 2px solid var(--main-color);
    margin: 1rem;
    display: block;
    transition: .3s ease;
  }
  .navbar a:hover {
    color: #FFFFFF;
    background: var(--main-color);
    border: none;
  }
  .navbar a::after { display: none; }

  .heading span { font-size: .9rem; font-weight: 600; }
  .heading h1 { font-size: 1.3rem; }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-img { padding: 1rem; order: 1; }
  .about-text { order: 2; }
}

@media(max-width: 568px){
  .home { background-position: left; }
  .text h1 { width: 280px; font-size: 2rem; }
  .text p { width: 280px; font-size: .8rem; }
  .form-container { padding-top: 2rem; }
  .about-text p { font-size: 14px; }
  .copyright { flex-direction: column; }
  .newsletter .box { width: 284px; }
}

@media(max-width: 460px){
  header { padding: 6px 14px; }
  .logo img { width: 30px; }
  section { padding: 50px 6px; }
  .header-btn .sign-in {
    padding: 7px 10px;
    font-size: 14px;
    font-weight: 400;
  }
  .text h1 { font-size: 1.7rem; }
  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(254px, auto));
  }
}
@media(max-width: 991px) {
  header {
    padding: 15px 20px;
  }
}

@media(max-width: 460px) {
  header {
    padding: 10px 10px;
  }
}
@media (max-width: 768px) {
  header .navbar {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  header .navbar.active {
    display: flex;
  }
}
@media (max-width: 768px) {
  .home {
    grid-template-columns: 1fr;
    text-align: center;
    background-position: center;
    padding: 2rem;
    background: url("images/main/bgm.png") no-repeat center center/cover;
  }

  .text h1 {
   display: none;
  }
  .text span{
    display: none;  }
  .text p {
    display: none;
    
  }
  .social {
    justify-content: center;
     margin-top: 13rem;          /* ازاحة للأيقونات لتحت */

  }
}

@media (max-width: 768px) {
  .image-section img {
    float: none;
    display: block;
    margin: 20px auto;
    width: 70%;
  }
}
@media (max-width: 768px) {
  .footer-section.links {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
    .footer-section.newsletter form {
        flex-direction: column; /* input فوق الزر */
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    .footer-section.newsletter button {
        width: 100%;       /* الزر ياخد كل العرض */
        max-width: 100%;   /* يمنع overflow */
        box-sizing: border-box;
    }

    .footer-section.newsletter input {
        width: 100%;       /* input ياخد كل العرض */
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .footer-section.newsletter form {
        flex-direction: column; /* input فوق الزر */
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    .footer-section.newsletter input,
    .footer-section.newsletter button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}