/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --primary: #00a651;
    --secondary: #f7941d;
    --dark: #333333;
    --light: #ffffff;
    --gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e5e5e5;
    --bg-color: rgba(224, 252, 219, 0.918); /* Light yellow with 50% opacity */
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* Font families */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-cairo {
    font-family: 'Cairo', sans-serif;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .language-switcher {
    left: 1rem;
    right: auto;
}

[dir="rtl"] .language-dropdown {
    left: 0;
    right: auto;
}

[dir="rtl"] .nav-link {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .contact-info .flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-link {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */
#navbar {
    transition: all 0.3s ease;
    position: relative;
    z-index: 50;
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar > div {
    position: relative;
    z-index: 1;
}

#navbar.scrolled {
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--text-dark);
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher:hover {
    background-color: white;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 120px;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    transition: background-color 0.3s ease;
}

.lang-option:hover {
    background-color: var(--gray);
}

/* Logo Styles */
.border-primary {
    border-color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#home {
    position: relative;
    min-height: 80vh;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 0;
    padding-top: 0;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 0;
}

#home > div {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section-title {
    @apply text-3xl font-bold mb-4 text-center;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.section-subtitle {
    @apply mt-2 text-center text-text-light;
    font-size: 1.1rem;
}

/* ==========================================================================
   Card Styles
   ========================================================================== */
.service-card {
    background-color: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Button Styles
   ========================================================================== */
.primary-button {
    @apply bg-primary text-white font-semibold rounded-md px-6 py-3 transition-all duration-300;
    background-color: var(--primary);
}

.primary-button:hover {
    background-color: #008c45;
    transform: translateY(-2px);
}

.secondary-button {
    @apply bg-secondary text-white font-semibold rounded-md px-6 py-3 transition-all duration-300;
    background-color: var(--secondary);
}

.secondary-button:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
#contact-form {
    @apply space-y-6;
    background: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.input-field {
    @apply bg-gray-50 text-text-dark rounded-md px-4 py-3 border border-border-color;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.input-field:focus {
    @apply outline-none ring-2;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.textarea-field {
    @apply bg-gray-50 text-text-dark rounded-md px-4 py-3 border border-border-color;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    min-height: 150px;
    resize: none;
}

.textarea-field:focus {
    @apply outline-none ring-2;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.form-label {
    @apply block text-text-dark mb-2 font-medium;
    font-size: 0.95rem;
}

/* ==========================================================================
   Contact Info Styles
   ========================================================================== */
#contact-us .contact-info {
    @apply bg-white rounded-lg p-6 shadow-sm border border-border-color;
}

#contact-us .contact-info h4 {
    @apply text-xl font-semibold text-text-dark mb-4;
}

#contact-us .contact-info p {
    @apply text-text-light;
}

#contact-us .contact-info .social-link {
    @apply text-text-light hover:text-primary transition-colors;
}

/* ==========================================================================
   Message Styles
   ========================================================================== */
.form-message {
    @apply mt-4 p-4 rounded-md text-center font-medium transition-all duration-300;
}

.form-message.success {
    @apply bg-green-50 text-green-700 border border-green-200;
}

.form-message.error {
    @apply bg-red-50 text-red-700 border border-red-200;
}

/* ==========================================================================
   Product Card Styles
   ========================================================================== */
.product-card {
    background-color: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Service Card Styles
   ========================================================================== */
.service-card {
    background-color: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 3rem 0;
}

footer a {
    color: var(--light);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.border-primary {
    border-color: var(--primary);
}

.border-secondary {
    border-color: var(--secondary);
} 