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

:root {
    --primary-color: #339900;
    --secondary-color: #ff6600;
    --dark-color: #003d3d;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl;
    overflow-x: hidden;
}

/* LTR direction for English pages */
html[dir="ltr"] body,
body[dir="ltr"] {
    direction: ltr;
}

html[dir="ltr"] .navbar-nav,
html[dir="ltr"] .footer-links {
    flex-direction: row-reverse;
}

html[dir="ltr"] .slide-nav.prev {
    left: 30px;
    right: auto;
}

html[dir="ltr"] .slide-nav.next {
    right: 30px;
    left: auto;
}

html[dir="ltr"] .content-grid.reverse {
    direction: rtl;
}

html[dir="ltr"] .content-grid.reverse .content-text {
    direction: ltr;
}

html[dir="ltr"] .section-title::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .navbar-nav a::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .dropdown-menu {
    right: auto;
    left: 0;
}

html[dir="ltr"] .scroll-to-top {
    left: auto;
    right: 30px;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-right: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
}

.dropdown-menu a::after {
    display: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(51, 153, 0, 0.5);
    padding: 1rem 2rem;
    display: inline-block;
    border-radius: 4px;
}

.slide-subtitle {
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(44, 22, 8, 0.6);
    padding: 0.8rem 1.5rem;
    display: inline-block;
    border-radius: 4px;
    margin-top: 1rem;
}

.slide-logo {
    margin-top: 1.5rem;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* Slide Navigation */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slide-nav.prev {
    right: 30px;
}

.slide-nav.next {
    left: 30px;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.content-section {
    padding: 4rem 0;
}

.content-section-alt {
    background: var(--bg-light);
}

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

.content-grid.reverse {
    direction: ltr;
}

.content-grid.reverse .content-text {
    direction: rtl;
}

.content-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-overlay {
    position: relative;
    overflow: hidden;
}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-overlay:hover .responsive-image {
    transform: scale(1.1);
}

.overlay-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 153, 0, 0.1);
    opacity: 0;
    transition: var(--transition);
}

.image-overlay:hover .overlay-effect {
    opacity: 1;
}

.content-text {
    padding: 2rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2d8800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 153, 0, 0.3);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-map {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-map iframe {
    width: 100%;
    border: none;
}

.footer-info {
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-address,
.footer-contact,
.footer-email {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-email a,
.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-email a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #2d8800;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .navbar-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 2rem;
        transition: var(--transition);
        gap: 1rem;
        align-items: flex-start;
    }

    .navbar-nav.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(51, 153, 0, 0.1);
        margin-top: 0.5rem;
        margin-right: 1rem;
    }

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

    .content-grid.reverse {
        direction: rtl;
    }

    .slide-title {
        font-size: 1.8rem;
        padding: 0.8rem 1.5rem;
    }

    .slide-subtitle {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }

    .slide-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .slide-nav.prev {
        right: 15px;
    }

    .slide-nav.next {
        left: 15px;
    }
}

@media (max-width: 640px) {
    .slide-title {
        font-size: 1.5rem;
        padding: 0.6rem 1rem;
    }

    .slide-subtitle {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

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

.slide.active .slide-content {
    animation: fadeInUp 0.8s ease-out;
}

