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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Agricultural Color Palette */
:root {
    --agricultural-green: #2d5016;
    --agricultural-green-light: #3d6b1f;
    --agricultural-orange: #e67e22;
    --agricultural-orange-light: #f39c12;
    --earth-brown: #5d4037;
    --fresh-green: #27ae60;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
}


/* التعديلات الأساسية للـ Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; 
    padding: 0 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
    /* التثبيت المضمون */
    position: fixed; 
    top: 0;
    left: 0;
    right: 0; /* لضمان التمدد على كامل العرض */
    width: 100%;
    z-index: 9999; /* قيمة ضخمة لتظهر فوق أي شيء آخر */
}

.logo {
    color: #2d5a27;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo span {
    color: #4CAF50; /* تمييز الجزء الثاني من اللوجو بلون أفتح */
}

/* تعديل عرض الروابط في الكمبيوتر ليكون أوسع ومريح */
.nav-links {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    /*width: 40%; */
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s ease;
    padding: 10px 15px;
}

.nav-links a:hover {
    color: #4CAF50;
}

/* زر تسجيل الدخول المتميز */
.login-dot {
    background-color: #2d5a27;
    color: white !important;
    border-radius: 25px;
    padding: 8px 20px !important;
}

/* تنسيقات الهواتف (تحسينات جوهرية) */
/* 1. الخصائص العامة لزر البرجر (خارج الميديا كويري) */
.burger {
    cursor: pointer;
    display: none; /* مخفي في الكمبيوتر */
    z-index: 1001; /* للتأكد من بقائه فوق القائمة */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #2d5a27;
    margin: 5px;
    transition: all 0.3s ease;
    
}

/* 2. تنسيقات الهواتف */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden; /* منع السحب العرضي تماماً */
    }
    
    .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4CAF50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%; /* طول الخط السفلي عند الهافر */
}

    .nav-links {
        position: fixed; /* استخدام fixed بدل absolute لضمان الثبات */
        right: 0px;
        height: 100vh;
        top: 0; /* يبدأ من أعلى الشاشة */
        background-color: #3d6b1f;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* توسيط الروابط عمودياً */
        /*width: 70%;*/
        transform: translateX(100%); /* مخفي جهة اليمين */
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        padding: 50px 0;
        z-index: 1000;
         border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
    }

    .nav-links li {
        opacity: 0;
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: white; /* تغيير اللون ليناسب الخلفية الخضراء */
        font-size: 1.3rem;
        transition: all 0.3s ease-in-out;
    display: block;
    width: 100%;
    }

    .burger {
        display: block; /* إظهار الزر في الموبايل */
        position: relative;
    }

    .nav-active {
        transform: translateX(0%); /* إظهار القائمة عند التفعيل */
    }
}

/* 3. تأثيرات التحول لعلامة X والـ Animation */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}





/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pepper_cultivation_2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.9), rgba(39, 174, 96, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--agricultural-orange-light);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-button {
    background-color: var(--agricultural-orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.hero-button:hover {
    background-color: var(--agricultural-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Expertise Section */
.expertise {
    padding: 5rem 0;
    background-color: var(--white);
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.expertise-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.expertise-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    background-color: rgba(45, 80, 22, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    color: var(--agricultural-green);
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Techniques Section */
.techniques {
    padding: 5rem 0;
    background-color: rgba(45, 80, 22, 0.03);
}

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

.technique-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.technique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.card-icon {
    background-color: rgba(45, 80, 22, 0.1);
    padding: 1rem;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--agricultural-green);
}

.card-icon.rotate {
    color: var(--agricultural-orange);
    background-color: rgba(230, 126, 34, 0.1);
}

.card-icon.leaf {
    color: var(--fresh-green);
    background-color: rgba(39, 174, 96, 0.1);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.card-content {
    padding: 0 1.5rem 2rem;
}

.card-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--medium-gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose {
    padding: 5rem 0;
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit {
    text-align: center;
    padding: 2rem 1rem;
}

.benefit-icon {
    background-color: rgba(45, 80, 22, 0.1);
    padding: 1rem;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--agricultural-green);
}

.benefit-icon.sprout {
    color: var(--agricultural-orange);
    background-color: rgba(230, 126, 34, 0.1);
}

.benefit-icon.leaf {
    color: var(--fresh-green);
    background-color: rgba(39, 174, 96, 0.1);
}

.benefit-icon.users {
    color: var(--agricultural-orange-light);
    background-color: rgba(243, 156, 18, 0.1);
}

.benefit h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.benefit p {
    color: var(--medium-gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Call to Action Section */
.cta {
    padding: 5rem 0;
    background-color: var(--agricultural-green);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    background-color: white;
    color: var(--agricultural-green);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: rgba(45, 80, 22, 0.03);
    text-align: center;
}

.footer p {
    color: var(--medium-gray);
}

.footer-brand {
    font-weight: 600;
    color: var(--dark-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .techniques-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
}

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

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* start call  */
.float1 {
  position: fixed;
  z-index: 10;
  border-radius: 50%;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex;
  bottom: 20px;
  text-align: center;
  right: 30px;
}
  .float1.phone {
      left: 30px;
      right: unset;
  }
  .float1 img {
      width: 20px;
  }


/* end call  */

/* تنسيق قسم الاتصال */
.contact-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
}

.contact-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.contact-container h2 {
    color: #2d5a27; /* نفس لون اللوجو */
    margin-bottom: 10px;
    font-size: 2rem;
}

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

/* تنسيق الحقول */
.input-group {
    margin-bottom: 20px;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    transition: 0.3s;
    background-color: #fcfcfc;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
}

/* زر الإرسال */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #2d5a27;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #4CAF50;
    transform: translateY(-2px);
}

/* التجاوب مع الهواتف */
@media screen and (max-width: 480px) {
    .contact-container {
        padding: 20px;
    }
    
    .contact-container h2 {
        font-size: 1.5rem;
    }
}


/* تنسيق الحاوية الخاصة بحقل الرفع */
.file-upload-group {
    margin: 20px 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* تنسيق النص التوضيحي (Label) */
.file-upload-group label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

/* تنسيق زر اختيار الملف */
.file-upload-group input[type="file"] {
    padding: 10px;
    background-color: #f9f9f9;
    border: 2px dashed #ccc; /* إطار منقط يعطي شكل منطقة رفع */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* تأثير عند تمرير الماوس */
.file-upload-group input[type="file"]:hover {
    border-color: #007bff; /* يتغير اللون للأزرق عند التمرير */
    background-color: #f0f7ff;
}

/* تنسيق خاص لملفات PDF فقط (اختياري) */
.file-upload-group input[type="file"]::file-selector-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin-right: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.file-upload-group input[type="file"]::file-selector-button:hover {
    background-color: #0056b3;
}

/*book*/
/* إعادة ضبط نظام الحجز ليكون متوافقاً 2026 */
.booking-section {
    max-width: 500px;
    margin: 40px auto; /* لتوسيط القسم بالكامل */
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    text-align: center; /* لتوسيط العناوين */
}

.booking-section h2 {
    color: #2d5a27;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* مسافة بين الحقول */
    text-align: left; /* لجعل النصوص داخل الحقول تبدأ من اليسار */
}

.booking-form input, 
.booking-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s ease;
}

.booking-form input:focus, 
.booking-form select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 8px rgba(74, 175, 80, 0.2);
}

.booking-form button {
    background: #2d5a27;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.booking-form button:hover {
    background: #4CAF50;
    transform: translateY(-2px);
}

/* رسالة الاستجابة بعد الحجز */
#responseMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none; /* مخفي افتراضياً */
}

.status-pending { color: #2d5a27; font-weight: bold; }
.status-cancelled { color: #e74c3c; text-decoration: line-through; }
.near-appointment { border-left: 5px solid orange; background: #fff9f0; }





/* إعدادات الحاوية (الأيقونة) */
/* إعدادات الحاوية مع ميزة التوسيط */
.pepper-animation-box {
    width: 180px;            /* حجم أكبر قليلاً ليناسب التوسيط */
    height: 180px;
    display: block;         /* تجعل العنصر يأخذ سطراً كاملاً للسماح بالتوسيط */
    margin: 30px auto;      /* التوسيط التلقائي: 30px مسافة من الأعلى والأسفل، وauto للجوانب */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    text-align: center;
}

.pepper-svg {
    width: 100%;
    height: 100%;
}

/* --- أكواد الحركة (تبقى كما هي لضمان التكرار) --- */
.animate-stem {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: stemLoop 3.5s ease-in-out infinite;
}

.animate-leaf {
    opacity: 0;
    transform: scale(0.5);
    transform-origin: 50px 70px;
    animation: leafLoop 3.5s ease-in-out infinite;
}

.leaf-1 { animation-delay: 0.4s; }
.leaf-2 { animation-delay: 0.6s; }

.animate-fruit {
    opacity: 0;
    transform: translateY(-3px);
    animation: fruitLoop 3.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* تعريفات الانيميشن */
@keyframes stemLoop {
    0%, 5% { stroke-dashoffset: 100; opacity: 0; }
    30%, 85% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes leafLoop {
    0%, 15% { opacity: 0; transform: scale(0.5); }
    40%, 85% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

@keyframes fruitLoop {
    0%, 45% { opacity: 0; transform: translateY(-3px); }
    75%, 85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; }
}

html {
    scroll-behavior: smooth;
}

/* تحسين شكل رابط الإيميل */
.email-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}
