/* Base Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #ff6b00;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.underline {
    height: 4px;
    width: 70px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    order: 1;
}

.logo img {
    height: 65px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
    order: 2;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 6px;
    gap: 4px;
    transition: var(--transition);
}

.language-switcher:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid transparent;
    background-color: white;
    color: var(--dark-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 700;
    min-width: 85px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.lang-btn:hover::before {
    left: 100%;
}

.lang-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8533 100%);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.4);
    transform: translateY(-3px);
}

.lang-btn i {
    font-size: 14px;
    transition: var(--transition);
}

.lang-text {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.8px;
}

/* Contact Button Styles */
.contact-btn {
    margin-left: 0;
}

.contact-btn .btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8533 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.contact-btn .btn:hover::before {
    left: 100%;
}

.contact-btn .btn:hover {
    background: linear-gradient(135deg, #ff8533 0%, var(--accent-color) 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(255, 107, 0, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hamburger:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8533 100%);
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger:hover span {
    background-color: white;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] header .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .logo {
    order: 1;
}

html[dir="rtl"] nav {
    order: 2;
}

html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .lang-btn::before {
    left: 100%;
    right: -100%;
}

html[dir="rtl"] .lang-btn:hover::before {
    left: -100%;
    right: 100%;
}

html[dir="rtl"] .contact-btn .btn::before {
    left: 100%;
    right: -100%;
}

html[dir="rtl"] .contact-btn .btn:hover::before {
    left: -100%;
    right: 100%;
}

/* RTL Mobile Navigation Support */
html[dir="rtl"] .nav-links {
    left: auto;
    right: 0;
}

html[dir="rtl"] .hamburger {
    order: 1;
}

html[dir="rtl"] .logo {
    order: 4;
}

html[dir="rtl"] .language-switcher {
    order: 3;
}

html[dir="rtl"] .contact-btn {
    order: 2;
}

/* Arabic Font Support */
html[dir="rtl"] body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* RTL Layout Adjustments */
html[dir="rtl"] .slide-content {
    text-align: center;
}

html[dir="rtl"] .section-header {
    text-align: center;
}

html[dir="rtl"] .about-text {
    text-align: right;
}

html[dir="rtl"] .benefit-card,
html[dir="rtl"] .service-card {
    text-align: right;
}

/* Slideshow Styles */
.slideshow {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.slide-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 80%;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-controls {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 2;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slide-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: white;
}

.tagline {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    z-index: 2;
}

.tagline h2 {
    font-size: 1.8rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

/* Why Choose Us Section */
.why-us {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.benefit-card p {
    color: var(--gray-color);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--gray-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-contact h3, .footer-links h3, .footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after, .footer-links h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
}

/* Mobile Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        gap: 25px;
    }
    
    .nav-links a {
        font-size: 15px;
    }
    
    .language-switcher {
        gap: 3px;
    }
    
    .lang-btn {
        padding: 10px 16px;
        min-width: 75px;
        font-size: 14px;
    }
    
    .contact-btn .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    header .container {
        padding: 0 20px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .logo img {
        height: 55px;
        max-width: 140px;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 30px 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        gap: 20px;
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s ease;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        text-align: center;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 15px 30px;
        display: block;
        border-radius: 25px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: linear-gradient(135deg, var(--accent-color) 0%, #ff8533 100%);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .language-switcher {
        order: 2;
        margin: 0;
        padding: 5px;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        flex-shrink: 0;
        max-width: 40%;
    }
    
    .lang-btn {
        padding: 8px 14px;
        font-size: 14px;
        min-width: 70px;
        border-radius: 16px;
        font-weight: 700;
    }
    
    .lang-text {
        font-size: 14px;
        font-weight: 800;
    }
    
    .lang-btn i {
        font-size: 13px;
    }
    
    .contact-btn {
        order: 3;
        width: auto;
        margin: 0;
    }
    
    .contact-btn .btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 20px;
        white-space: nowrap;
    }
    
    .hamburger {
        display: flex;
        order: 4;
        width: 45px;
        height: 45px;
        border-radius: 12px;
        padding: 8px;
        position: relative;
        z-index: 1000;
    }
    
    .hamburger span {
        width: 20px;
        height: 2.5px;
        margin: 2.5px 0;
        background-color: var(--dark-color);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* RTL Mobile Layout */
    html[dir="rtl"] header .container {
        flex-direction: row-reverse;
    }
    
    html[dir="rtl"] .logo {
        order: 1;
    }
    
    html[dir="rtl"] .language-switcher {
        order: 2;
    }
    
    html[dir="rtl"] .contact-btn {
        order: 3;
    }
    
    html[dir="rtl"] .hamburger {
        order: 4;
    }
}

@media (max-width: 576px) {
    header {
        padding: 12px 0;
    }
    
    header .container {
        padding: 0 15px;
        gap: 12px;
    }
    
    .logo img {
        height: 100px;
        max-width: 200px;
        margin-left: 100px;
        margin-right: 100px;
    }
    
    .language-switcher {
        max-width: 45%;
        padding: 4px;
        border-radius: 18px;
    }
    
    .lang-btn {
        padding: 7px 12px;
        font-size: 13px;
        min-width: 65px;
        border-radius: 14px;
    }
    
    .lang-text {
        font-size: 13px;
    }
    
    .lang-btn i {
        font-size: 12px;
    }
    
    .contact-btn .btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 18px;
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .hamburger span {
        width: 18px;
        height: 2px;
        margin: 2px 0;
    }
    
    /* RTL Small Screen Layout */
    html[dir="rtl"] header .container {
        flex-direction: row-reverse;
    }
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    .lang-btn:active,
    .nav-links a:active,
    .hamburger:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Smooth mobile animations */
    .nav-links.active {
        animation: slideIn 0.3s ease-out;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Enhanced mobile shadows and depth */
    .language-switcher,
    .contact-btn .btn,
    .nav-links a {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.service-card {
  text-align: center;           /* يخلي كل المحتوى في النص */
  padding: 20px;
}

.service-icon {
  margin-bottom: 20px;
}

.truck-icon {
  width: 100px;                 /* كبر العرض */
  height: auto;                 /* يحافظ على التناسب */
  display: block;
  margin: 0 auto;               /* توسيط الأيقونة */
}

#whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;

  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;           /* WhatsApp green */
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  display: grid;
  place-items: center;

  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  animation: fab-pop .35s ease-out;
}

#whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: #fff;                    /* icon color */
}

/* Hover / Focus */
#whatsapp-fab:hover,
#whatsapp-fab:focus {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 28px rgba(0,0,0,.22);
  outline: none;
}

/* Subtle attention pulse */
@keyframes fab-pop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Mobile tweaks */
@media (max-width: 576px) {
  #whatsapp-fab {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
  #whatsapp-fab svg { width: 26px; height: 26px; }
}
