/* Color Palette Variables */
:root {
    --lime-green: #7FFF00;
    --medium-blue: #4169E1;
    --sky-blue: #87CEEB;
    --light-olive: #9ACD32;
    --medium-green: #32CD32;
    --teal: #40E0D0;
    --dark-green: #228B22;
    --dark-blue: #1E90FF;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Poppins', sans-serif;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.language-switcher:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* RTL (Arabic) - Right side */
body[dir="rtl"] .language-switcher {
    left: auto;
    right: 20px;
}

/* LTR (English) - Left side */
body[dir="ltr"] .language-switcher {
    left: 20px;
    right: auto;
}

.lang-icon {
    color: var(--medium-green);
    font-size: 1.2rem;
}

.lang-select {
    border: none;
    background: transparent;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 25px;
    min-width: 100px;
}

body[dir="rtl"] .lang-select {
    background-position: right center;
    padding-right: 25px;
    padding-left: 10px;
}

body[dir="ltr"] .lang-select {
    background-position: right center;
    padding-right: 25px;
    padding-left: 10px;
}

.lang-select:hover {
    color: var(--medium-green);
}

.lang-select:focus {
    color: var(--dark-green);
}

.lang-select option {
    background: var(--white);
    color: var(--dark-gray);
    padding: 10px;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-green);
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-text {
    background: linear-gradient(135deg, var(--medium-green), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--dark-gray);
    font-weight: 600;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--medium-green), var(--teal));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--medium-green);
}

/* Language Link in Navbar */
.lang-nav-link {
    background: linear-gradient(135deg, var(--medium-green), var(--teal));
    color: var(--white) !important;
    border-radius: 25px;
    padding: 8px 15px !important;
    margin: 0 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-nav-link:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--medium-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: var(--white) !important;
}

.lang-nav-link i {
    font-size: 0.9rem;
}

.lang-nav-link span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    overflow: hidden;
}

.hero-section .carousel {
    height: 100vh;
    min-height: 600px;
}

.hero-section .carousel-inner {
    height: 100%;
}

.hero-section .carousel-item {
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--medium-green), var(--teal));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--dark-green), var(--medium-green));
}

.btn-outline-light {
    border: 2px solid var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--medium-blue);
    transform: translateY(-2px);
}

/* Carousel Controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
}

.hero-section .carousel-control-prev {
    left: 30px;
}

.hero-section .carousel-control-next {
    right: 30px;
}

body[dir="rtl"] .hero-section .carousel-control-prev {
    left: auto;
    right: 30px;
}

body[dir="rtl"] .hero-section .carousel-control-next {
    right: auto;
    left: 30px;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.hero-section .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-section .carousel-indicators button.active {
    background: var(--white);
    width: 30px;
    border-radius: 15px;
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--medium-green), var(--teal));
    margin: 0 auto 30px;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* About Cards */
.about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--medium-green), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 2rem;
}

.about-card h3 {
    color: var(--dark-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.about-card p {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* Vision & Mission Cards */
.vision-card, .mission-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.vision-icon, .mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.vision-icon {
    background: linear-gradient(135deg, var(--medium-blue), var(--sky-blue));
}

.mission-icon {
    background: linear-gradient(135deg, var(--medium-green), var(--light-olive));
}

.vision-card h3, .mission-card h3 {
    color: var(--dark-green);
    margin-bottom: 20px;
    font-weight: 700;
}

.vision-card p, .mission-card p {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* Product Cards */
.product-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--lime-green), var(--medium-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

.product-card h4 {
    color: var(--dark-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.product-card p {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* Contact Section */
.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--medium-green), var(--teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--dark-green);
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-details p {
    color: var(--dark-gray);
    margin: 0;
}

.contact-details a {
    color: var(--medium-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--dark-green);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--medium-green);
    box-shadow: 0 0 0 0.2rem rgba(50, 205, 50, 0.25);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-green), var(--dark-blue));
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--white);
    color: var(--dark-green);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .carousel {
        min-height: 500px;
    }
    
    .hero-slide {
        min-height: 500px;
        height: 100vh;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-section .carousel-control-prev {
        left: 15px;
    }
    
    .hero-section .carousel-control-next {
        right: 15px;
    }
    
    body[dir="rtl"] .hero-section .carousel-control-prev {
        right: 15px;
    }
    
    body[dir="rtl"] .hero-section .carousel-control-next {
        left: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    body[dir="rtl"] .language-switcher {
        top: 10px;
        right: 10px;
        left: auto;
        padding: 6px 12px;
    }
    
    body[dir="ltr"] .language-switcher {
        top: 10px;
        left: 10px;
        right: auto;
        padding: 6px 12px;
    }
    
    .lang-select {
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    body[dir="rtl"] .lang-select {
        padding-right: 20px;
        padding-left: 8px;
    }
    
    body[dir="ltr"] .lang-select {
        padding-left: 20px;
        padding-right: 8px;
    }
    
    .lang-icon {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .lang-nav-link {
        padding: 6px 12px !important;
        font-size: 0.85rem;
    }
    
    .lang-nav-link span {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .about-card, .vision-card, .mission-card, .product-card {
        padding: 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* RTL Support */
[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="ltr"] .navbar-nav {
    margin-left: auto;
    margin-right: 0;
}

