/* Global Styles */
:root {
    --primary-color: #583f33;
    /* Brown */
    --secondary-color: #9ac068;
    /* Green */
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --text-color: #333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Adjust based on actual logo aspect ratio */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(88, 63, 51, 0.8), rgba(88, 63, 51, 0.8)), url('images/hero2.png');
    /* Fallback image */
    background-size: cover;
    background-position: top left;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    object-fit: cover;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 10px;
}

.product-image img {
    max-height: 100%;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    margin: 15px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Partners Section */
.partners {
    padding: 60px 0;
    background-color: var(--white);
}

.partners-slider {
    width: 100%;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-slide {
    width: 200px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-slide img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact .section-title h2 {
    color: var(--white);
}

.contact .section-title h2::after {
    background-color: var(--secondary-color);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.info-item {
    text-align: center;
}

.info-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.info-item p:hover {
    color: var(--secondary-color);
    transform: translateY(4px);
    transition: var(--transition);
}

/* Footer */
.footer {
    background-color: #2c1e18;
    /* Darker shade of brown */
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.developer-info {
    margin-top: 15px;
    font-size: 0.85rem;
}

.developer-info a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.developer-info a:hover {
    color: #ff0000d8;
    font-size: 1.2rem;
}

.dev-logo {
    width: 20px;
    /* حجم الشعار */
    height: 20px;
    opacity: 0;
    /* مخفي افتراضياً */
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-5px);
}

.developer-info a:hover .dev-logo {
    opacity: 1;
    /* يظهر عند المرور */
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }
}