/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
}

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

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #2d5a2d;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #4a8f4a;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a8f4a;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.lang-button {
    background: #4a8f4a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-button:hover {
    background: #2d5a2d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 143, 74, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    padding: 120px 0 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: #2d5a2d;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    color: #4a8f4a;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.button.primary {
    background: #4a8f4a;
    color: white;
}

.button.primary:hover {
    background: #2d5a2d;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 143, 74, 0.3);
}

.button.secondary {
    background: transparent;
    color: #4a8f4a;
    border: 2px solid #4a8f4a;
}

.button.secondary:hover {
    background: #4a8f4a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 143, 74, 0.3);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.7);
}

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

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: hue-rotate(90deg);
}

.feature-item h3 {
    color: #2d5a2d;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d5a2d;
    margin-bottom: 20px;
}

.products > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #4a8f4a;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    color: #2d5a2d;
    font-size: 1.3rem;
    margin: 20px 20px 10px;
}

.product-card p {
    color: #666;
    margin: 0 20px 15px;
    line-height: 1.6;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 20px 20px;
}

.badge {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    color: #2d5a2d;
    margin-bottom: 40px;
}

.about p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4a8f4a;
    margin-bottom: 10px;
}

.stat-label {
    color: #2d5a2d;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d5a2d;
    margin-bottom: 20px;
}

.contact > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #4a8f4a;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3,
.contact-form h3 {
    color: #2d5a2d;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form p {
    color: #666;
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e8f5e8;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4a8f4a;
}

/* Footer */
footer {
    background: #2d5a2d;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #a8d8a8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #a8d8a8;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a8f4a;
    color: #a8d8a8;
}

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

[dir="rtl"] .hero-buttons {
    justify-content: center;
}

[dir="rtl"] nav ul {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-content {
    direction: rtl;
}

[dir="rtl"] .badges {
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        display: none;
    }
    
    header .container {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.product-card,
.stat-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Hover Effects */
.product-card,
.feature-item {
    cursor: pointer;
}

/* Focus States */
.button:focus,
.lang-button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #4a8f4a;
    outline-offset: 2px;
}


/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-button:hover {
    color: #4CAF50;
    background: rgba(0, 0, 0, 0.8);
}

.modal-caption {
    color: #fff;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    max-width: 600px;
    line-height: 1.5;
}

/* Product card image cursor */
.product-card img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 10px;
        width: 95%;
    }
    
    .close-button {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-caption {
        font-size: 16px;
        margin-top: 15px;
    }
    
    .modal-content img {
        max-height: 70vh;
    }
}

