/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Bahij Yekan';
    src: url('./fonts/BahijYekan.woff2') format('woff2'),
         url('./fonts/BahijYekan.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Bahij Yekan', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
}

/* RTL and Font Styles */
[lang="fa"],
[lang="ar"] {
    font-family: 'Bahij Yekan', sans-serif;
}

[lang="en"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.language-switcher {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    position: fixed;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.5rem;
    z-index: 1001;
    padding: 1rem;
    border-top-right-radius: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.language-switcher button {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-radius: 3px;
}

.language-switcher button:hover {
    background: var(--white);
    color: var(--primary-color);
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    /* padding-top: 2rem; */
}

.logo-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.logo-img {
    filter: invert(100%);
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.0)), url('./images/agricultural-background.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.3); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
}

.hero-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Order Panel Section */
.order-panel {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--white);
    scroll-margin-top: 100px; /* Add space for fixed header */
}

.order-content {
    max-width: 800px;
    margin: 0 auto;
}

.order-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.order-button:hover {
    background-color: #c0392b;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
    /* text-align: left; */
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

.contact-info p:hover {
    transform: translateY(-3px);
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    min-width: 30px;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

/* RTL Support */
[dir="rtl"] .contact-info p {
    /* flex-direction: row-reverse; */
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }

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

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

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .language-switcher {
        margin-top: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
} 