/* الخط */
body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f9f9f9;
  color: #011143;
}


/* الألوان */
:root {
  --thm-primary: #edbc0c;
  --thm-dark: #011143;
  --thm-light: #f9f9f9;
  --thm-border: #dcdcdc;
    --font-family-base: 'Open Sans', sans-serif;
  --font-size-small: 14px;
  --font-size-normal: 16px;
  --font-size-medium: 20px;
  --font-size-large: 28px;
  --font-size-xlarge: 42px;
  --line-height-base: 1.6;

  /* === Color Presets === */
  --color-black: #000;
  --color-white: #fff;
  --color-text: #585b68;
  --color-secondary-text: #82868a;
  --color-heading: var(--thm-dark);
  --color-body-bg: var(--thm-light);

  /* === Aspect Ratios === */
  --ratio-square: 1;
  --ratio-4-3: 4 / 3;
  --ratio-3-4: 3 / 4;
  --ratio-3-2: 3 / 2;
  --ratio-2-3: 2 / 3;
  --ratio-16-9: 16 / 9;
  --ratio-9-16: 9 / 16;

  /* === Spacing === */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.25rem;
  --spacing-xl: 3.5rem;

  /* === Shadows === */
  --shadow-natural: 6px 6px 9px rgba(0, 0, 0, 0.2);
  --shadow-deep: 12px 12px 50px rgba(0, 0, 0, 0.4);
  --shadow-sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);
  --shadow-outline: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);

  /* === Utilities === */
  --border-radius: 12px;
  --transition-default: all 0.3s ease;


}

.hero {
  position: relative;
  min-height: 100vh;
  background: 
    linear-gradient(
      90deg, 
      rgba(1,17,67,0.85) 0%, 
      rgba(1,17,67,0.7) 40%, 
      rgba(1,17,67,0) 60%, 
      rgba(1,17,67,0) 100%
    ),
    url('./img/asphalt-truck-1100x500.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* اجعل المحتوى على اليسار */
  padding-left: 5%; /* مسافة من اليسار للنص */
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1400px; /* لضبط عرض النص */
}

.hero h1,
.hero p {
  color: #f7d76c; /* لون أصفر ذهبي واضح */
  text-align: left; /* محاذاة النص لليسار */
}


.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-top: 1rem;
  max-width: 450px; /* لضبط عرض النص */
}

.btn-primary {
  background-color: #edbc0c;
  border: none;
  color: #011143;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 50px;
  transition: 0.3s;
  margin-top: 2rem;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #d6a905;
  color: #fff;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero {
    min-height: 60vh;
  }
}


/* الأزرار */
.btn-gold {
  background-color: var(--thm-primary);
  color: #011143;
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 50px;
  transition: 0.3s ease;
  border: none;
}
.btn-gold:hover {
  background-color: #d6a905;
  color: white;
}

/* الكروت */
.service-box {
  border: 1px dashed var(--thm-border);
  background-color: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}
.service-box:hover {
  background-color: var(--thm-light);
  transform: translateY(-6px);
}

/* العناوين */
h1, h2, h3, h4 {
  color: var(--thm-dark);
}

/* الفوتر */
.footer {
  background-color: var(--thm-dark);
  color: #eee;
  text-align: center;
  padding: 30px 0;
}

/* الصور داخل المشاريع */
#projects img {

  transition: 0.3s ease-in-out;
}
#projects img:hover {
  transform: scale(1.05);
}

/* الفورم */
form .form-control, form .form-select {
  border-radius: 10px;
  border-color: #ddd;
}
form .form-control:focus, form .form-select:focus {
  border-color: var(--thm-primary);
  box-shadow: 0 0 5px rgba(237, 188, 12, 0.3);
}

/* روابط القائمة */
.navbar .nav-link {
  font-weight: 500;
  color: var(--thm-dark);
  transition: 0.2s;
}
.navbar .nav-link:hover {
  color: var(--thm-primary);
}

/* متجاوب */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }
  .hero h1 {
    font-size: 28px;
  }
}

/* services */
  .btn-primary {
      background-color: #edbc0c;
      border-color: #edbc0c;
      font-weight: 700;
      transition: box-shadow 0.4s ease;
      color: #255946;
    }
    .btn-primary:hover {
      box-shadow: 0 0 15px 3px rgba(237, 188, 12, 0.8);
      background-color: #f7e69c;
      border-color: #f7e69c;
      color: #255946;
      animation: pulseBtn 1.5s infinite;
    }
    @keyframes pulseBtn {
      0%, 100% {
        box-shadow: 0 0 15px 3px rgba(237, 188, 12, 0.8);
      }
      50% {
        box-shadow: 0 0 30px 6px rgba(237, 188, 12, 1);
      }
    }

  

    /* Services boxes */
.creative-heading {
  font-size: 2.5rem;
  color: var(--thm-dark);
  font-weight: bold;
  position: relative;
}

.creative-heading .highlight {
  color: var(--thm-primary);
  position: relative;
  display: inline-block;
}

.divider {
  width: 60px;
  height: 4px;
  background-color: var(--thm-primary);
  border-radius: 5px;
}

.section-title p {
  font-size: 1rem;
  color: #666;
  margin-top: 10px;
}

.service-box {
  background-color: #fff;
  border: 1px solid var(--thm-border);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  height: 100%;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.5s ease;
}

.service-box:hover .service-img {
  transform: scale(1.05);
}

.service-box h4 {
  font-size: 1.2rem;
  color: var(--thm-dark);
  font-weight: bold;
  margin-bottom: 10px;
}

.service-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}
  
/* about  */
/* Full background image */
.rtl-hero-section {
  background: url('./img/section-bg.jpg') no-repeat center center / cover;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* <--- force overlay to left */
  direction: rtl;
  font-family: var(--font-main);
}

/* Overlay box appears on the left side */
.overlay-box {
  background: rgba(4, 14, 86, 0.8);
  padding: 60px 40px;
  max-width: 700px;
  width: 100%;
  margin-left: 0; /* Left-aligned */
  margin-right: auto; /* Push to the left in flexbox */
  color: var(--light-color);
}

/* Right-aligned text inside */
.hero-text {
  text-align: right;
}

.hero-text h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text h1 .highlight {
  color: var(--primary-color);
}

.hero-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #e8e8e8;
  margin-bottom: 30px;
}

.btn-cta {
  display: inline-block;
  padding: 12px 30px;
  background-color:  #ffce00;;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s ease;
  text-align: center;
}

.btn-cta:hover {
  background-color: #ffce00;
  color: var(--dark-color);
}
/* projects */
/* Reset ul */
.portfolio_grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.portfolio_grid--item {
  position: relative;
  width: 33.3333%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.item {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 66.66%; /* 3:2 aspect ratio */
  overflow: hidden;
}

.item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

/* Zoom effect */
.item:hover img {
  transform: scale(1.05);
}

/* Dark blue hover overlay using pseudo element */
.item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 17, 67, 0); /* transparent initially */
  transition: background 0.4s ease;
  z-index: 1;
}

.item:hover::before {
  background: rgba(1, 17, 67, 0.7); /* dark blue on hover */
}

/* Info box that slides from the left */
.item .info {
  position: absolute;
  bottom: 100px;
  left: 0;
  background: var(--thm-primary, #fdb900);
  color: var(--thm-black, #222);
  padding: 16px 40px;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(.86, 0, .07, 1) 0.2s;
  z-index: 2;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1rem;
  pointer-events: none;
}

/* Slide-in effect */
.item:hover .info {
  transform: translateX(0);
  pointer-events: auto;
}

/* Optional: Text styling inside .info */
.item .info a {
  color: var(--thm-black, #222);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.item .info .category {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .portfolio_grid--item {
    width: 50%;
  }
}

@media (max-width: 600px) {
  .portfolio_grid--item {
    width: 100%;
  }
}

:root {
  --thm-primary: #edbc0c;
  --thm-dark: #011143;
  --thm-light: #f9f9f9;
  --thm-border: #dcdcdc;
}

.contact-form {
  direction: rtl;
  background: var(--thm-light);
  border: 2px dashed var(--thm-primary);
  color: var(--thm-dark);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--thm-dark);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1.5px solid var(--thm-border);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--thm-dark);
  transition: 0.3s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--thm-primary);
  box-shadow: 0 0 0 0.25rem rgba(237, 188, 12, 0.2);
}

.btn-gold {
  background: var(--thm-primary);
  color: var(--thm-dark);
  font-weight: bold;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease;
}

.btn-gold:hover {
  background: #d6a900;
  color: #fff;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 10px; /* Adjusted to avoid overlap with floating buttons */
  right: 20px;
  background: var(--thm-primary);
  color: var(--thm-dark);
  border: none;
  width: 45px;
  height: 45px;
  z-index: 9999;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: 0.3s ease;
  cursor: pointer;
}
.scroll-top:hover {
  background: #d6a900;
  color: #fff;
}

/* Floating WhatsApp & Call Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--thm-dark);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: 0.3s;
}
.float-btn:hover {
  background: var(--thm-primary);
  color: var(--thm-dark);
}
