/* CSS Design System and Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root {
    --primary-green: #2e7d32;
    --primary-blue: #1565c0;
    --secondary-green: #4caf50;
    --secondary-blue: #1e88e5;
    --accent-color: #ffd700;
    --bg-light: #f4f7f6;
    --text-dark: #333333;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo img {
    height: 50px;
    border-radius: 5px;
}

.navbar .logo span {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(21, 101, 192, 0.9)), url('img/598883579_1307692074736580_3301327975428984114_n.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 10%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--primary-blue);
    bottom: -10px;
    left: 20%;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary-green);
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-blue);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Products Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 50, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--text-light);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* About Section */
.about {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: #fff;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-content {
    flex: 1;
}

/* Footer */
footer {
    background: #222;
    color: var(--text-light);
    padding: 4rem 10% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-green);
    cursor: pointer;
}

@media (max-width: 992px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--text-light);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .contact-btn {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 4rem 5%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-content .section-title {
        text-align: center !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .gallery-item {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .navbar .logo span {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}