:root {
    --light-green: #91ef18;
    --dark-green: #144434;
    --lime-green: #eaff1d;
}

@font-face {
    font-family: "Allenoire";
    src: url("../assets/fonts/allenoire-allenoire-regular-400.woff2");
}

@font-face {
    font-family: "playfair";
    src: url("../assets/fonts/DMSans-VariableFont_opsz-wght.woff2");
}

@font-face {
    font-family: "Alexandria";
    src: url("../assets/fonts/Alexandria-VariableFont_wght.woff2");
}
@font-face {
    font-family: "Tajawal";
    src: url("../assets/fonts/Tajawal-Regular.woff2");
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "playfair", serif;
}

body,
html {
    width: 100%;
    height: 100%;
    /* overflow-x: hidden; */
}

#navbar {
    height: 7vh;
    width: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.75vw 3.5vw;
    position: fixed;
    z-index: 999;
    transition: background-color 0.4s ease-out;
}

#navbar.scrolled {
    background-color: rgba(20, 68, 52, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled #menu a,
#navbar.scrolled .desktop-menu a {
    color: white !important;
}

#navbar.scrolled #menu a:hover,
#navbar.scrolled .desktop-menu a:hover {
    color: var(--lime-green) !important;
}

#navbar.scrolled #actions .language-toggle button,
#navbar.scrolled #actions .desktop-lang button {
    color: white;
}

#navbar.scrolled #logo svg path {
    fill: var(--light-green) !important;
}

#navbar.scrolled #logo svg g path[fill="#144434"] {
    fill: var(--light-green) !important;
}

#navbar.scrolled #actions .contact-btn {
    background: var(--light-green);
    color: var(--dark-green);
}

#navbar #logo svg {
    cursor: pointer;
}

#navbar #menu {
    display: flex;
    gap: 2vw;
    align-items: center;
}

#navbar #menu a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all ease-in-out 0.3s;
}

#navbar #menu a:hover {
    color: var(--lime-green);
    transform: translateY(2px);
}

#navbar #menu a:active {
    color: var(--light-green);
}

/* Active navigation link styles */
#navbar #menu .nav-link.active {
    color: var(--light-green) !important;
    font-weight: 600;
    position: relative;
}

#navbar #menu .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-green);
    border-radius: 1px;
}

#navbar.scrolled #menu .nav-link.active {
    color: var(--light-green) !important;
}

#navbar #actions {
    display: flex;
    gap: 1vw;
    align-items: center;
}

#navbar #actions > button.contact-btn {
    border: none;
    /* padding: 0.75vw 2vw; */
    border-radius: 100px;
    background-color: var(--lime-green);
    color: var(--dark-green);
    transition: all ease-in-out 0.3s;
    cursor: pointer;
}
#navbar #actions > button.contact-btn:hover {
    background-color: var(--dark-green);
    color: var(--lime-green);
    /* color:white; */
}

#navbar #actions > button.contact-btn a {
    text-decoration: none;
    color: inherit;
    /* font-size: 1rem; */
}

#navbar #actions .language-toggle {
    display: flex;
    align-items: center;
    gap: 1vw;
    width: fit-content;
    border: 1px solid var(--lime-green);
    /* background-color: red; */
    border-radius: 100px;
    transition: all ease-in-out 0.3s;
}

#navbar #actions .language-toggle button {
    color: var(--lime-green);
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    /* padding: 0px 4px; */
    padding: 0.5vw 1.5vw;
}

#navbar #actions .language-toggle:hover {
    background-color: var(--lime-green);
}
#navbar #actions .language-toggle:hover button {
    color: var(--dark-green);
}

#navbar.scrolled #actions .language-toggle:hover button {
    color: black;
}

#navbar #actions .language-toggle button.active {
    display: none;
}

/* ===== MOBILE RESPONSIVE NAVBAR STYLES ===== */

/* Mobile responsive navbar */
@media (max-width: 1024px) {
    #navbar {
        padding: 15px 20px;
        height: auto;
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 12px 16px;
        min-height: 60px;
    }
}

/* Logo responsiveness */
@media (max-width: 768px) {
    #navbar #logo svg {
        width: 140px;
        height: auto;
    }
}

@media (max-width: 480px) {
    #navbar #logo svg {
        width: 120px;
    }
}

/* Hide desktop menu on mobile */
@media (max-width: 1024px) {
    #navbar #menu.desktop-menu {
        display: none;
    }
}

/* Actions container responsive */
@media (max-width: 1024px) {
    #navbar #actions {
        gap: 12px;
    }
}

/* Hide desktop language toggle on mobile */
@media (max-width: 1024px) {
    #navbar #actions .language-toggle.desktop-lang {
        /* display: none; */
    }
}

/* Contact Button Responsive */
#navbar #actions .contact-btn {
    background: var(--light-green);
    color: var(--dark-green);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

#navbar #actions .contact-btn:hover {
    background: var(--lime-green);
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 12px rgba(145, 239, 24, 0.3); */
}

@media (max-width: 768px) {
    #navbar #actions .contact-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #navbar #actions .contact-btn {
        padding: 0.3rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile navbar padding adjustments */
@media (max-width: 1024px) {
    #navbar {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    #navbar {
        padding: 10px 12px;
    }
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: 1px solid var(--lime-green);
    cursor: pointer;
    /* padding: 8px; */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--lime-green);
    transform: scale(1.05);
}

.mobile-menu-btn:hover .hamburger-line {
    background-color: var(--dark-green);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--lime-green);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

/* Hamburger animation when active */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Show hamburger on mobile */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Mobile Drawer Styles */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer.active {
    pointer-events: auto;
    opacity: 1;
}

.drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    /* background: var(--dark-green); */
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    border-left: 3px solid var(--dark-green);
}

.mobile-drawer.active .drawer-content {
    transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgb(20, 68, 52, 0.9);
    background: rgb(20, 68, 52, 0.1);
}

.drawer-logo svg {
    width: 120px;
    height: auto;
}

.drawer-logo svg path {
    fill: var(--light-green);
}

.drawer-close-btn {
    background: none;
    border: 1px solid var(--light-green);
    color: var(--light-green);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.drawer-close-btn:hover {
    background: var(--light-green);
    color: var(--dark-green);
}

/* Drawer Navigation */
.drawer-nav {
    flex: 1;
    padding: 30px 0;
}

.drawer-nav-link {
    display: block;
    padding: 18px 25px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 5px 0;
    position: relative;
}

.drawer-nav-link:hover {
    background: rgba(145, 239, 24, 0.1);
    border-left-color: var(--dark-green);
    color: var(--lime-green);
    transform: translateX(8px);
}

.drawer-nav-link.active {
    background: rgb(20, 68, 52, 0.5);
    border-left-color: var(--dark-green);
    color: var(--lime-green);
    font-weight: 600;
}

.nav-text {
    display: block;
}

/* Drawer Footer */
.drawer-footer {
    padding: 25px;
    border-top: 1px solid rgb(20, 68, 52, 0.5);
}

.mobile-language-toggle .lang-label {
    color: var(--lime-green);
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-buttons {
    display: flex;
    gap: 10px;
}

.mobile-lang-btn {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border: 2px solid rgb(234, 255, 29, 0.7);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.mobile-lang-btn:hover {
    border-color: var(--light-green);
    color: var(--light-green);
    background: rgba(145, 239, 24, 0.1);
}

.mobile-lang-btn.active {
    background: var(--dark-green);
    color: var(--lime-green);
    border: none;
    font-weight: 600;
}

/* Hide mobile drawer on desktop */
@media (min-width: 1025px) {
    .mobile-drawer {
        display: none;
    }
}

/* ===== END MOBILE RESPONSIVE NAVBAR STYLES ===== */

/* Animation classes for revealing elements */
.animate-navbar {
    animation: fadeInFromTop 1s ease-out forwards;
}

.animate-hero-text {
    animation: fadeInUp 1.2s ease-out forwards;
}

.animate-hero-bg {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Footer Styles */

.footer {
    background-color: #1a4d3a;
    /* color: white; */
    padding: 0 6vw;
    position: relative;
    /* overflow: hidden; */
}

.footer::before {
    content: "";
    /* position: absolute; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 48%,
        rgba(255, 255, 255, 0.03) 49%,
        rgba(255, 255, 255, 0.03) 51%,
        transparent 52%
    );
    background-size: 20px 20px;
    pointer-events: none;
}

.footer-container {
    margin: 0 auto;
    padding: 2vw 0;
    /* position: relative; */
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* Logo and Description Section */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    height: 10vh;
    align-items: center;
    /* background-color: red; */

    /* margin-bottom: 24px; */
}

.logo-icon {
    /* width: 2vw; */
    /* height: 2vw; */
    margin-right: 12px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 15rem;
    height: 15rem;
}

.logo-text {
    font-size: 1.25rem;
    color: white;
    letter-spacing: -0.5px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    color: #b8d4c6;
    margin-bottom: 1vw;
    /* max-width: 380px; */
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1a4d3a;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.social-link:hover {
    background-color: var(--lime-green);
    transform: translateY(-2px);
}

/* Navigation Section */
.footer-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    align-items: start;
}

.nav-link {
    color: #b8d4c6;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--lime-green);
}

.nav-link.active {
    color: #7ed321;
    font-weight: 600;
}

/* Contact Section */
.footer-contact {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    gap: 24px;
    margin-top: 2.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item:nth-child(1) {
    margin-top: 1rem !important;
}

.contact-icon {
    flex-shrink: 0;
    /* margin-top: 2px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text {
    color: #b8d4c6;
    font-size: 16px;
    line-height: 1;
}

.contact-text strong {
    color: white;
    display: block;
    margin-bottom: 4px;
}

/* Copyright Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

.copyright {
    color: #b8d4c6;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .social-link {
        margin-top: 10px;
    }

    .footer-brand {
        align-items: center;
    }

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

    .logo-text {
        font-size: 28px;
    }

    .nav-links {
        grid-template-columns: 1fr 1fr;
        gap: 20px 30px;
        justify-items: center;
    }

    .contact-item {
        justify-content: center;
        text-align: left;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
    }

    .social-link {
        margin-top: 10px;
    }
    .footer-content {
        gap: 32px;
    }

    .logo-text {
        font-size: 24px;
    }

    .nav-link {
        font-size: 16px;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .social-links {
        justify-content: center;
    }

    .contact-text {
        align-items: center;
        width: 15rem;
        text-align: center;
        /* line-height: 1.2; */
    }

    .contact-icon:nth-child(1) {
        margin: auto 0;
    }
    #navbar #actions .language-toggle button {
        padding: 4px 12px;
    }
    .footer-contact {
        margin-top:0;
    }
}

#space {
    width: 100%;
    height: 100vh;
    background-color: var(--dark-green);
}

[dir="rtl"] #navbar #actions .language-toggle button {
    /* font-size: 0.9rem; */
    font-weight: 600;
}

[dir="rtl"] #navbar #actions > button.contact-btn a {
    font-weight: 600;
}

[dir="rtl"] .footer-contact .contact-item .contact-text {
    font-family: "Tajawal", sans-serif;
    line-height: 1.1;
}

[dir="rtl"] .footer-contact .contact-item .contact-text.phoneNumber {
    font-family: "Alexandria", sans-serif;
    font-size: 14px;
}

[dir="rtl"] .drawer-nav {
    text-align: right;
}
[dir="rtl"] .drawer-logo svg {
    margin-right: -5.5rem;
}
[dir="rtl"] .drawer-nav-link {
    border-left: none;
    border-right: 3px solid transparent;
}

[dir="rtl"] .drawer-nav-link:hover,
[dir="rtl"] .drawer-nav-link.active {
    border-right-color: var(--dark-green);
    transform: translateX(-8px);
}
