:root {
    --primary-color: #8B0000;
    /* Deep Red */
    --secondary-color: #228B22;
    /* Forest Green */
    --accent-color: #DAA520;
    /* Gold */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    background: linear-gradient(135deg, var(--primary-color), #A00000);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.2);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    background: linear-gradient(135deg, #A00000, var(--primary-color));
}

.lang-btn i {
    font-size: 1.1rem;
}

/* LTR support */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .nav-links {
    flex-direction: row;
}

html[dir="ltr"] .section-title h2::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

html[dir="ltr"] .step-number {
    right: auto;
    left: 20px;
}

html[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 30px;
}

html[dir="ltr"] .language-switcher {
    margin-left: 0;
    margin-right: 20px;
}

@media (max-width: 768px) {
    html[dir="ltr"] .whatsapp-float {
        right: 20px;
        left: auto;
    }
    
    html[dir="ltr"] .language-switcher {
        margin-right: 0;
    }
    
    /* Mobile menu - keep vertical layout for both RTL and LTR */
    html[dir="ltr"] .nav-links {
        right: auto;
        left: 0px;
        transform: translateX(-100%);
        flex-direction: column !important;
        display: flex !important;
        align-items: center !important;
        width: 50% !important;
    }
    
    html[dir="ltr"] .nav-active {
        transform: translateX(0%);
    }
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #A00000);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #A00000, var(--primary-color));
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(139, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 30px;
}

.navbar {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #660000;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 0, 0, 0.4);
}

.nav-links a i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.2) rotate(5deg);
}

.nav-links a span {
    position: relative;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.03), rgba(102, 0, 0, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    margin-top: 90px;
    position: relative;
    padding: 80px 0;
}

.hero .hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-center {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 3;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.hero-logo {
    width: 350px;
    height: 350px;
    object-fit: contain;
    border-radius: 20px;
    background: transparent;
    padding: 20px;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.hero-logo:hover {
    transform: scale(1.03);
}

.hero-center h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 700;
    animation: fadeInDown 1s ease-out 0.2s both;
}

.hero-center p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-color);
    line-height: 1.8;
    animation: fadeInDown 1s ease-out 0.4s both;
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Sections Common */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #660000, #8B0000);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.15rem;
    margin-top: 25px;
    line-height: 1.8;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.about-features li:hover {
    background: var(--light-color);
}

.about-features i {
    color: #660000;
    font-size: 1.2rem;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Services Section */
.services {
    background-color: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
}

.products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(139, 0, 0, 0.15);
    border-top-color: var(--primary-color);
}

.service-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card .product-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-card .product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .product-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 18px;
    font-size: 1.6rem;
    color: var(--dark-color);
    font-weight: 700;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* Showcase Section */
.showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(102, 0, 0, 0.95));
    color: var(--white);
    position: relative;
}

.showcase .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.showcase-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    opacity: 0.95;
}

.showcase-img img {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.showcase-img img:hover {
    transform: scale(1.05);
}

/* Quality Section */
.quality {
    background-color: var(--white);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.quality-item {
    text-align: center;
    padding: 40px 30px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    transition: var(--transition);
    background: var(--white);
}

.quality-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.1);
}

.quality-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.quality-item:hover i {
    transform: scale(1.15);
}

.quality-item h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.quality-item p {
    color: #666;
    line-height: 1.8;
}

/* Contact Section */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    width: 100%;
    max-width: none;
}

.info-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: var(--transition);
    border-bottom: none;
}

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

.info-item i {
    width: 60px;
    height: 60px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.info-item p {
    color: #666;
}

/* Phone number always LTR */
.phone-number {
    direction: ltr !important;
    text-align: left !important;
    display: inline-block;
    unicode-bidi: embed;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 40px;
    /* Match top padding */
}

/* Footer */
.footer {
    background-color: #111;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-logo-text {
    flex: 1;
}

.footer-logo-text p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-center h1 {
        font-size: 2.5rem;
    }

    .hero-center p {
        font-size: 1.2rem;
    }

    .header .container {
        height: 80px;
        padding: 0 20px;
    }

    .nav-links a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .nav-links a i {
        font-size: 0.9rem;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .logo-img {
        width: 55px;
        height: 55px;
    }

    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-logo-img {
        width: 100px;
        height: 100px;
    }

    .footer-logo-text p {
        font-size: 1rem;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
        z-index: 999;
        overflow-y: auto;
    }
    
    /* Ensure vertical layout for LTR on mobile */
    html[dir="ltr"] .nav-links {
        flex-direction: column !important;
        align-items: center !important;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }
    
    .nav-active li {
        opacity: 1;
    }

    .about-content,
    .showcase .container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        width: 250px;
        height: 250px;
        padding: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }



    .about-image,
    .showcase-img {
        order: -1;
        /* Image on top for mobile */
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* How We Work Section */
.how-we-work {
    background-color: var(--light-color);
}

.process-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #660000, #8B0000);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.step-content {
    margin-top: 20px;
}

.step-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.step-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
        font-size: 25px;
    }

    .process-container {
        grid-template-columns: 1fr;
    }
}