:root {
    --main-bg: #ffffff;
    --accent1: #f1c69e;
    --accent2: #f15223;
    --accent3: #ffbb55;
    --dark: #060010;
    --light: #f9f9f9;
    --sectionbg: #fffbf7;
  }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}
  
  @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

  .ibm-plex-sans-arabic-thin {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 100;
    font-style: normal;
  }
  
  .ibm-plex-sans-arabic-extralight {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .ibm-plex-sans-arabic-light {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .ibm-plex-sans-arabic-regular {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .ibm-plex-sans-arabic-medium {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .ibm-plex-sans-arabic-semibold {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .ibm-plex-sans-arabic-bold {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "IBM Plex Sans Arabic", sans-serif;
  }

  body {
    background-color: var(--sectionbg);
    color: var(--dark);
    line-height: 1.8;
    position: relative;
    font-family: "IBM Plex Sans Arabic", sans-serif;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/white-wall-3.png');
    opacity: 0.07;
    z-index: -1;
  }


  
  .custom-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--sectionbg);
    padding: 1.5rem 4rem;
    direction: rtl;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; /* أو خليها transparent إذا تبغى شفاف */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* تأثير ظل بسيط */
  
  }

  .navbar-logo img {
    height: 40px;
    width: auto;
  }

  .nav-underline {
    position: absolute;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: #F28705;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .navbar-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    font-size: 1.2rem;
  }

  .navbar-links a {
    color: var(--accent2);
    text-decoration: none;
  }


  .nav-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #0077ff;
    border-radius: 2px;
    transition: width 0.3s ease, left 0.3s ease;
  }
  
  .navbar-links a.active::after,
  .navbar-links a:hover::after {
    background-color: var(--accent1);
  }

  .navbar-btn .call-btn {
    background: linear-gradient(34deg, #cc5532, #f15223);
    color: white;
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
  }

  header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f1c69e, #f15223);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
  }

  header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  header p {
    max-width: 800px;
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: justify;
    text-align-last: justify; /* هذا يخلي السطر الأخير يكون ممدود بالكامل */
    direction: rtl; /* لأن النص عربي */
    line-height: 2; /* تحسين قراءة */
  }

  .social {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .social2 {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
  }

  .social a {
    text-decoration: none;
    color: white;
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
  }
  .social2 a {
    text-decoration: none;
    color: white;
    background-color: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
  }

  .social a:hover {
    background-color: rgba(255,255,255,0.2);
  }

  section {
    max-width: 1100px;
    margin: auto;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 100vh;
  }

  h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--accent2);
    padding: 0 1rem;
  }

  .services, .experiences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
  }

  .service {
    background-color: var(--light);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 350px;
  }

  .service:hover {
    border: 2px solid var(--accent2);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  }

  .service i{
    font-size: 2.2rem;
    color: var(--accent1);
    margin-bottom: 1rem;
  }

  .service h3, .experience h3 {
    margin-bottom: 1rem;
    color: var(--accent2);
    font-size: 1.7rem;
  }

.imagee-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* لازم 7 أعمدة */
  gap: 1.5rem;
  justify-content: center;
}


.image-box {
  width: 150px;
  height: 150px;
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
}

.image-box.placeholder {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  }


.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  }


  .service p {
    max-width: 250px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
  }
  .projects-section {
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

.projects-section h2 {
    font-size: 2.5rem;
    color: var(--accent2);
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: center;
    text-decoration: none;
  }

.projects-section .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
  }

.projects-section .grid div {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
  }

.projects-section .grid div:nth-child(3) {
    grid-column: span 2;
    margin: 0 auto;
    width: 50%;
}

.projects-section .grid div a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.projects-section .grid div a:hover .content {
    opacity: 0;
}

.projects-section .grid div .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent1), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.projects-section .grid div:hover .overlay {
    opacity: 1;
}
.footer {
    border-radius: 20px;
    margin: 20px;
    background: var(--accent2);
    color: var(--accent2);
    padding: 5rem 3rem;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row; /* مهم لترتيب الأعمدة */
    gap: 5rem;
    max-width: 1200px;
    margin: auto;
  }
  
  .footer-column {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-column h3 {
    color: var(--accent1);
    margin-bottom: 1rem;
  }
  
  .footer-column p,
  .footer-column li {
    margin-bottom: 0.5rem;
    color: #dcdcdc;
    font-size: 0.95rem;
    max-width: 300px;
  }
  
  .footer-column a {
    color: var(--accent1);
    text-decoration: none;
  }
  
  .footer-column a:hover {
    text-decoration: underline;
  }
  
  .footer-logo {
    border-radius: 2px;
    width: 58px;
    margin-bottom: 1rem;
  }

  .contact a {
    color: var(--accent2);
    font-weight: 600;
  }

  @media (max-width: 768px) {
    header h1 {
      font-size: 2.5rem;
    }

    header p {
      font-size: 1rem;
    }

    .social a {
      font-size: 0.9rem;
    }
  }

  .contact-section {
    direction: rtl;
    padding: 50px 20px;
  }
  
  .contact-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    overflow: hidden;
  }
  
  form#contactForm {
    flex: 1 1 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  form label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
  }
  
  form label span {
    color: red;
  }
  
  form input,
  form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    transition: 0.3s;
  }
  
  form input:focus,
  form textarea:focus {
    border-color: var(--accent2);
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
  }
  
  form textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  form button {
    padding: 14px;
    border: none;
    background-color: var(--accent2);
    color: #fff;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
  }
  
  form button:hover {
    background: linear-gradient(34deg, #cc5532, #f15223);
  }



  .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.image-grid a {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background-color: white;
}

.image-grid a:hover {
    transform: scale(1.03);
    border-color: var(--accent1);
}

.image-grid img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.body-container {
    display: flex;
    justify-content: center;
    margin: 100px 0px 0px 0px;
}


.reviews-container {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    background: white;
}

.reviews-container::before,
.reviews-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.reviews-container::before {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.reviews-container::after {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.reviews-slider {
    display: flex;
    gap: 20px;
    animation: slideRTL 30s linear infinite;
    padding: 0 20px;
}

.reviews-slider:hover {
    animation-play-state: paused;
}

@keyframes slideRTL {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

.review-card {
    flex-shrink: 0;
    width: 350px;
    background: #ef5223;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent1);
}

.review-header {
    position: absolute;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    top: -50px;
    left: 20px;
    right: 10px;
    overflow: hidden;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--light);
    z-index: 10;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.rating {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 5px;
    position: relative;
    top: 50px;
}

.star {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.star.empty {
    fill: #ddd;
}

.date {
    font-size: 0.85rem;
    color: #6c757d;
}

.review-text {
    color: #ffffff;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .review-card {
        width: 300px;
    }
    
    .reviews-slider {
        animation: slideRTL 25s linear infinite;
    }
    
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .header {
        padding: 30px 15px;
    }
    
    .reviews-container {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .review-card {
        width: 280px;
        padding: 20px;
    }
    
    .avatar {
        width: 75px;
        height: 75px;
    }
    
    .header h2 {
        font-size: 1.8rem;
    }
    .projects-section .grid {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}
}




@media (max-width: 1000px) {
  .navbar-links {
    display: none;
}
.services, .experiences {
    display: flex;
    gap: 2rem;
    justify-items: center;
    justify-content: center;
    flex-direction: column;

}
  .social{
    display: none;
  }

}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1001px) {
  .social2{
    display: none;
  }
}
  

.imagee-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* لازم 7 أعمدة */
  gap: 1.5rem;
  justify-content: center;
}


.image-box {
  width: 150px;
  height: 150px;
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
}

.image-box.placeholder {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  }


.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  }

  @media (max-width: 1024px) {
  .imagee-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 🔵 تابلت صغير أو جوال كبير */
@media (max-width: 768px) {
  .imagee-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 🔴 جوال صغير */
@media (max-width: 480px) {
  .imagee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}