@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;700;900&display=swap');

:root {
    --primary: #1a4a2e;
    --primary-dark: #0f2e1d;
    --secondary: #c9a96e;
    --secondary-light: #e8d5b5;
    --bg-cream: #faf3eb;
    --bg-light: #fdf8f2;
    --text-dark: #2d2d2d;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

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

.nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

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

.lang-switch a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 15px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    transition: var(--transition);
}

.lang-switch a:hover {
    background: var(--primary);
    color: var(--white);
}

.lang-switch img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 50%, #e8f0e4 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    max-height: 550px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 74, 46, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #b89555;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.3);
}

/* ===== ABOUT SLIDER ===== */
.about-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.about-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.about-slider .slide.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SECTION TITLES ===== */
.section {
    padding: 100px 0;
}

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

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--secondary);
    vertical-align: middle;
    margin: 0 10px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.decoration-img {
    text-align: center;
    margin-bottom: 10px;
}

.decoration-img img {
    height: 30px;
}

/* ===== FEATURES SECTION (ما يميزنا) ===== */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 15px;
    background: var(--bg-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.feature-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .icon {
    background: var(--primary);
    color: var(--white);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.feature-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===== BENEFITS (الفوائد) ===== */
.benefits {
    background: var(--bg-cream);
}

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

.benefit-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 15px;
    background: var(--white);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.benefit-card img {
    height: 120px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.benefit-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

.benefit-card .badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

/* ===== PRODUCT FEATURES (ما تتميز به منتجاتنا) ===== */
.product-features {
    background: var(--white);
}

.product-features-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.product-features-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.product-feature-item {
    padding: 30px 25px;
    border-radius: 12px;
    background: var(--bg-light);
    border-right: 4px solid var(--secondary);
    transition: var(--transition);
}

.product-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-feature-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

.product-features-image {
    flex: 1;
    text-align: center;
}

.product-features-image img {
    max-height: 500px;
}

/* ===== PRODUCTS (المنتجات) ===== */
.products {
    background: var(--bg-cream);
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-card .product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card .product-info {
    padding: 25px;
}

.product-card .product-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-card .product-info .price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.product-card .product-info .price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

/* ===== TESTIMONIALS (آراء العملاء) ===== */
.testimonials {
    background: var(--white);
}

.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 35px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.testimonial-card::before {
    content: '\201C';
    font-size: 80px;
    color: var(--secondary);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card .stars {
    color: #f5a623;
    font-size: 16px;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-card .user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .user .name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

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

.footer-social a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: var(--secondary);
    font-weight: 600;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(26, 74, 46, 0.3);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .about-slider .slide-content h2 {
        font-size: 38px;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 38px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-features-wrapper {
        flex-direction: column;
    }

    .product-features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 30px;
        gap: 20px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        transition: var(--transition);
        align-items: flex-start;
    }

    .nav.open {
        right: 0;
    }

    .nav a {
        font-size: 16px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 35px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-image img {
        max-height: 350px;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

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

    .product-features-list {
        grid-template-columns: 1fr;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-slider {
        height: 350px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }

    .logo img {
        height: 40px;
    }

    .lang-switch a {
        padding: 5px 10px;
        font-size: 12px;
    }
    .about-slider {
        height: 280px;
    }
}
