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

:root {
    --primary-bg: #000000;
    --primary-text: #d4af37;
    --secondary-bg: #d4af37;
    --secondary-text: #ffffff;
    --accent-color: #386b62;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

body[dir="rtl"] {
    font-family: 'Segoe UI', 'Arial', 'Tahoma', sans-serif;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

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

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

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-bg);
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: var(--secondary-bg);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.lang-toggle {
    background-color: var(--secondary-bg);
    color: var(--secondary-text);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-left: 1rem;
}

body[dir="rtl"] .lang-toggle {
    margin-left: 0;
    margin-right: 1rem;
}

.lang-toggle:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.lang-toggle.desktop {
    display: block;
}

.lang-toggle.mobile {
    display: none;
    width: 100%;
    margin: 1rem auto 0 auto;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    max-width: 200px;
}

body[dir="rtl"] .lang-toggle.mobile {
    margin-right: 0;
}

.mobile-lang-toggle {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mobile-lang-toggle button {
    width: auto;
    margin: 0;
    min-width: 120px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 6px;
    background-color: rgba(212, 175, 55, 0.15);
    border-radius: 6px;
    border: 2px solid var(--secondary-bg);
    transition: var(--transition);
    z-index: 1001;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.hamburger:hover {
    background-color: rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.5);
}

.hamburger.active {
    background-color: var(--secondary-bg);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.6);
}

.hamburger.active span {
    background-color: var(--secondary-text);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--secondary-bg);
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: blur(4px); */
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0.85;
    pointer-events: none;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
    text-shadow: 2px 2px 10px rgba(212, 175, 55, 0.3);
    min-height: 1.2em;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-text);
    opacity: 0.9;
    line-height: 1.8;
}

/* Section Styles */
.section {
    padding: 80px 2rem;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-text);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-bg), transparent);
}

body[dir="rtl"] .section-title::after {
    transform: translateX(50%);
}

/* About Section */
.about {
    background-color: rgba(56, 107, 98, 0.05);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--primary-text);
}

/* Departments Section */
.departments {
    background-color: var(--primary-bg);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.department-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(56, 107, 98, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.department-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-bg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.department-name {
    font-size: 1.8rem;
    color: var(--secondary-bg);
    margin-bottom: 1rem;
    font-weight: 600;
}

.department-desc {
    font-size: 1.1rem;
    color: var(--primary-text);
    line-height: 1.7;
}

/* Vision Section */
.vision {
    background-color: rgba(212, 175, 55, 0.05);
}

.vision-text {
    font-size: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--primary-text);
    font-weight: 500;
    line-height: 1.8;
}

/* Mission Section */
.mission {
    background-color: rgba(56, 107, 98, 0.05);
}

.mission-text {
    font-size: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--primary-text);
    font-weight: 500;
    line-height: 1.8;
}

/* Values Section */
.values {
    background-color: var(--primary-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--secondary-bg);
    color: var(--secondary-text);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
}

.value-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* Slogan Section */
.slogan {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(56, 107, 98, 0.1) 100%);
    padding: 60px 2rem;
}

.slogan-text {
    font-size: 2rem;
    text-align: center;
    color: var(--primary-text);
    font-weight: 600;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    background-color: rgba(56, 107, 98, 0.05);
}

.contact-info {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-bg);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
}

body[dir="rtl"] .contact-item {
    border-left: none;
    border-right: 4px solid var(--secondary-bg);
}

.contact-item:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(5px);
}

body[dir="rtl"] .contact-item:hover {
    transform: translateX(-5px);
}

.contact-item strong {
    color: var(--secondary-bg);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item span {
    color: var(--primary-text);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.contact-item:hover span {
    color: var(--secondary-bg);
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-text {
    color: var(--primary-text);
    opacity: 0.7;
}

/* Location Section */
.location {
    background-color: rgba(212, 175, 55, 0.05);
}

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

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-color) 100%);
    color: var(--secondary-text);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.location-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.location-link svg {
    transition: var(--transition);
}

.location-link:hover svg {
    transform: translateX(5px);
}

body[dir="rtl"] .location-link:hover svg {
    transform: translateX(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-animation {
    position: relative;
}

.typing-animation::after {
    content: '|';
    color: var(--secondary-bg);
    animation: blink-caret 0.75s step-end infinite;
    margin-left: 2px;
    display: inline-block;
}

body[dir="rtl"] .typing-animation::after {
    margin-left: 0;
    margin-right: 2px;
}

@keyframes blink-caret {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Scroll Animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .lang-toggle.desktop {
        display: none;
    }

    .lang-toggle.mobile {
        display: block !important;
        visibility: visible;
    }

    .mobile-lang-toggle {
        display: flex !important;
        visibility: visible;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    body[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
    }

    .nav-menu.active {
        left: 0;
    }

    body[dir="rtl"] .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0 2rem;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slogan-text {
        font-size: 1.5rem;
    }

    .vision-text,
    .mission-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .section {
        padding: 60px 1rem;
    }
}

