/* Font Declarations */
@font-face {
  font-family: "English Font";
  src: url("fonts/Aeonik-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Arabic Font";
  src: url("fonts/ZagelArabicITF-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arabic Font", "English Font", sans-serif;
}

/* Add Arabic font styling */
[lang="ar"] {
  font-family: "Arabic Font", sans-serif;
  direction: rtl; /* For right-to-left text */
}

:root {
  --primary-black: #000000;
  --primary-orange: #ffbf44;
  --primary-gray: #686868;
  --primary-light-gray: #a3aab5;
  --secondary-blue: #304c89;
  --secondary-coral: #ff7d4a;
  --secondary-green: #2b646b;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}


/* Loading screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Animated loader text */
.haulerz-spinner span {
  font-family: 'Gilroy', sans-serif;
  font-size: 2.5rem;
  color: white;
  letter-spacing: 1px;
  font-weight: bold;
  position: relative;
  animation: fadeInOut 1.4s ease-in-out infinite;
}

.haulerz-spinner .z {
  color: #FFBF44;
}

/* Simple fade pulsing animation */
@keyframes fadeInOut {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* Hide on load */
.loader-hidden {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}




.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    font-size: 32px;
    text-decoration: none;
    border-radius: 50%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(255, 255, 255, 0.12) 0px -12px 30px, rgba(255, 255, 255, 0.12) 0px 4px 6px, rgba(255, 255, 255, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
@keyframes bounce {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
    100% {
      transform: translateY(0);
    }
}
.whatsapp-icon:hover {
    animation: bounce 0.5s infinite;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  padding: 0.8rem 15%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo {
  height: 45px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 25px;
  margin: 0 auto;
  text-decoration: none;
  color: var(--primary-black);
  font-weight: bold;
  transition: ease-in-out 0.3s;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.05);
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Active hamburger */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(11px, 11px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(1.5px, -1.5px);
}

/* Mobile Nav Overlay */
#nav-links {
  transition: right 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 6rem 2rem;
    align-items: flex-start;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }

  .login-btn {
    margin-top: 2rem;
  }
}



.login-btn {
  background-color: black;
  color: white !important;
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid black;
}

.login-btn:hover {
  background-color: rgba(0, 0, 0, 0.856) !important;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
}

.language-btn span {
  font-family: "English Font", "Arabic Font", sans-serif;
}

.language-btn:hover {
  background-color: inherit !important;
}

.language-btn svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}


@media (max-width: 768px) {
  nav {
    padding: 0.8rem 5%;
  }
}



/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 15%;
  margin-top: 60px;
}

.hero-content {
  flex: 1;
  z-index: 2;
  max-width: 600px;
  color: white;
  animation: slideIn 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: white;
  color: var(--primary-black);
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s;
}

.cta-button:hover {
  transform: scale(1.05);
}

.hero-route-svg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 340px;
  z-index: 1;
  pointer-events: none;
}


@media (max-width: 768px) {
  .hero {
    padding: 0 5%;
  }
  .hero-content h1 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-route-svg {
    display: none;
  }
  .cta-button {
    padding: 0.5rem 1rem;
  }

  .service-image {
    width: 250px !important;
  }
}








/* Services Section */
.services {
  padding: 5rem 5%;
  background: white;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* Layout of each service row */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  text-align: left;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}


.service-row.reverse {
  flex-direction: row-reverse;
}

/* Image and Text content */
.service-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.service-image {
  width: 300px;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-content .text {
  max-width: 500px;
}

.service-content .text h3 {
  font-size: 1.8rem;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

.service-content .text p {
  font-size: 1rem;
  color: var(--primary-gray);
  line-height: 1.6;
}

/* Service line (reusing hero line style with renamed class) */
.service-line {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  width: 50px;
  height: 300px;
  margin: 0 2rem;
}

.service-line .line-part {
  height: 60px;
  width: 4px;
  background: var(--primary-yellow, #000);
  border-radius: 2px;
  opacity: 0;
}

.service-line.animate .line-part {
  animation: growLine 1s ease-out forwards;
}
.service-line .line-part::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--primary-yellow, #ffbf44);
  border-radius: 50%;
  display: block;
  position: relative;
  left: -3px;
  top: 5px;
}

.service-line .delay-1 {
  animation-delay: 0.4s;
}

.service-line .delay-2 {
  animation-delay: 0.8s;
}

@keyframes growLine {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: 60px;
    opacity: 1;
  }
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .service-line {
    margin: 0 0.2rem;
  }
}


.about {
  position: relative;
  background: var(--primary-black);
  color: white;
  padding: 6rem 5% 8rem;
  text-align: center;
  overflow: hidden;
  z-index: 0;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.about .section-title {
  color: white;
  background: var(--primary-black);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  z-index: 2;
}

.about .section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.about .section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: var(--primary-yellow, #fff);
  margin: 10px 0;
  border-radius: 2px;
}

.about-content img {
  max-width: 350px;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 1rem;
  background: var(--primary-black);
  color: #ffffffcc;
}

/* Animated Dot Grid */
.dot-grid-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background-image: radial-gradient(white 2px, transparent 2px);
  background-size: 30px 30px;
  transform: translateX(-50%);
  animation: floatDots 10s linear infinite;
  z-index: 1;
}

@keyframes floatDots {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}




.brand-values {
  padding: 8rem 5%;
  text-align: center;
}


.brand-values .section-title {
  font-size: 2.5rem;
  margin-bottom: 6rem;
  color: var(--primary-black);
  position: relative;
  display: inline-block;
}

.brand-values .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-black);
  margin: 12px auto 0;
  border-radius: 2px;
}

.values-container {
  max-width: 1200px;
  margin: 0 auto;
}

.values-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.value-card {
  position: relative;
  background: var(--secondary-blue);
  padding: 2rem;
  border-radius: 15px;
  width: 300px;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  transition: transform 0.3s ease;
}

.value-card .dot-grid-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background-image: radial-gradient(white 2px, transparent 2px);
  background-size: 30px 30px;
  transform: translateX(-50%);
  z-index: 1;
}

.value-card:nth-child(2n) {
  transform: translateY(-20px);
}

.value-card:hover {
  transform: translateY(-10px);
}

.shape {
  width: 60px;
  height: 60px;
  margin: 0 auto 3rem;
  background-color: var(--primary-orange);
}

/* Circle for "Reliable" */
.shape-circle {
  border-radius: 50%;
}

/* Diamond (rotated square) for "Efficient" */
.shape-diamond {
  transform: rotate(45deg);
}

.value-icon {
  position: relative;
  z-index: 99;
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  background: var(--secondary-blue);
}

.value-card h3 { 
  position: relative;
  z-index: 99;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 0.5rem;
  background: var(--secondary-blue);
}

.value-card p { 
  position: relative;
  z-index: 99;
  font-size: 1rem;
  color: #eee;
  line-height: 1.6;
  background: var(--secondary-blue);
}


@media (max-width: 768px) {
  .value-card:nth-child(2n) {
    transform: translateY(0px);
  }
}




.contact {
  background: linear-gradient(to bottom, white 0px, #f8f8f8 40px, #f8f8f8 100%);
  padding: 6rem 5%;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info img {
  max-width: 300px;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--primary-gray);
  margin-bottom: 1.5rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  color: var(--primary-gray);
}

.contact-info li {
  margin-bottom: 1rem;
  font-size: 1rem;
}


.contact-info li strong {
  color: #304c89;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: black;
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--primary-black);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-orange);
  outline: none;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-submit {
  background-color: var(--primary-black);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-submit:hover {
  background-color: #e6a837;
}







.site-footer {
  background: var(--primary-black);
  color: white;
  padding: 4rem 5% 2rem;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: var(--primary-light-gray);
  max-width: 250px;
}

.footer-links h4,
.footer-contact h4 {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 0.6rem;
  font-size: 1.1rem;
  color: var(--primary-orange);
}

.footer-container h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #fff, #000);
    border-radius: 2px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  line-height: 1.8;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: var(--primary-light-gray);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-logo,
  .footer-links,
  .footer-contact {
    margin: 0 auto;
  }
}

/* Map Section Styles */
.map-section {
  margin-top: 2rem;
  width: 100%;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


@media (max-width: 768px) {
  .footer-links h4,
  .footer-contact h4 {
    font-size: 0.95rem;
  }

  .contact h2 {
    font-size: 2rem;
  }

  .hero {
    height: 80vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.8rem;
  }

  .cta-button {
    font-size: 1rem;
  }

  .service-content .text h3 {
    font-size: 1.2rem;
  }

  .service-content .text p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .value-card h3 {
    font-size: 1.1rem;
  }

  .value-card p {
    font-size: 1rem;
  }

  .nav-links a {
    font-size: 1rem;
  }
}
