html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Droid Arabic Naskh', sans-serif;
    color: #342c2a;
    background-color: #BFC5C6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* -- Loading Screen -- */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 8px solid #E3D5C2;
    border-top: 8px solid #014D4E;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    /* Spinning animation */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .loader {
        width: 45px;
        height: 45px;
        border-width: 6px;
    }
}

/* -- Navbar -- */

nav {
    background-color: #014D4E;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.right .logo img {
    height: 90px;
    /* Adjust based on your logo size */
    transition: transform 0.3s ease;
}

.right .logo img:hover {
    transform: scale(1.1);
    /* Slight zoom effect on hover */
}

.nav-links {
    display: flex;
    gap: 20px;
    /* Space between links */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #121212;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #BFC5C6;
    /* Underline color */
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
    /* Underline effect on hover */
}

.nav-links li a:hover {
    color: #BFC5C6;
}

.nav-links li a.active {
    color: #121212;
    background-color: #C9A74F;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #000;
    margin: 4px 0;
}

/* Language Toggle Button */
.language-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: inherit;
    margin-left: 20px;
    /* Space between nav links and button */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-icon {
    width: 30px;
    height: 22px;
}

@media (max-width: 768px) {
    .navbar {
        align-items: flex-start;
        padding: 10px;
    }

    .right {
        display: flex;
        gap: 40%;
    }

    .nav-links {
        color: #fff;
        max-height: 0;
        overflow: hidden;
        background: linear-gradient(to right, rgb(0 78 81 / 95%), rgb(0 76 79));
        position: absolute;
        top: 133px;
        left: 0;
        width: 100%;
        flex-direction: column;
        transition: max-height 0.5s ease-in-out;
        z-index: 999;
        text-align: center;
        gap: 10px;
    }

    .nav-links li a {
        width: 100%;
        text-align: center;
    }

    .nav-links.active {
        max-height: 600px;
        /* Set to a height that accommodates all menu items */
        z-index: 999;
        text-align: center;
        gap: 10px;
    }

    .nav-links.active li,
    .nav-links li {
        padding: 15px;
    }

    .nav-links li a {
        font-size: 16px;
    }

    .nav-links li a::after {
        display: none;
    }

    .nav-links li a:hover::after {
        display: none;
    }

    .nav-links li a.active {
        color: #fff;
        background-color: transparent;
    }

    .menu-icon {
        display: block;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        /* Adjust based on your icon size */
        transition: transform 0.3s ease;
        /* Smooth transition for transform */
        margin-top: 34px;
        margin-right: 20px;
    }

    .bar {
        background-color: #000;
        height: 4px;
        width: 30px;
        border-radius: 5px;
        transition: transform 0.3s ease;
        /* Smooth transition for transform */
    }

    /* When menu is active, transform bars to an 'X' shape in arabic language */
    .menu-icon.active .bar:nth-child(1).ar {
        transform: rotate(-45deg) translateY(11px);
        /* Top bar rotates and moves down */
    }

    .menu-icon.active .bar:nth-child(2).ar {
        opacity: 0;
        /* Hide the middle bar */
    }

    .menu-icon.active .bar:nth-child(3).ar {
        transform: rotate(45deg) translateY(-11px);
        /* Bottom bar rotates and moves up */
    }

    /* When menu is active, transform bars to an 'X' shape */
    .menu-icon.active .bar:nth-child(1).en {
        transform: rotate(45deg) translateY(11px);
        /* Top bar rotates and moves down */
    }

    .menu-icon.active .bar:nth-child(2).en {
        opacity: 0;
        /* Hide the middle bar */
    }

    .menu-icon.active .bar:nth-child(3).en {
        transform: rotate(-45deg) translateY(-11px);
        /* Bottom bar rotates and moves up */
    }

    /* When menu is not active, bars revert to the hamburger shape */
    .menu-icon .bar {
        transform: rotate(0) translateY(0);
        /* Revert any transformations */
        opacity: 1;
        /* Make sure the middle bar is visible */
    }
}

/* -- Hero Section -- */

.hero {
    height: 100vh;
    /* Full viewport height */
    background: url('img/img1.jpg') center/cover no-repeat;
    /* Gradient overlay with background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    /* White text */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.5s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease-out;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    animation: slideInRight 1s ease-out;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    color: #ffffff;
    background-color: #C9A74F;
    border: 2px solid #C9A74F;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: fadeInUp 1.5s ease-out;
}

.cta-button:hover {
    background-color: transparent;
    color: #C9A74F;
    border-color: #C9A74F;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        /* Adjust height for mobile */
        padding: 80px 20px;
        /* Add padding for better spacing */
    }

    .hero h1 {
        font-size: 36px;
        /* Smaller font size for mobile */
        margin-bottom: 15px;
    }

    .hero h2 {
        font-size: 24px;
        /* Smaller font size for mobile */
        margin-bottom: 20px;
    }

    .cta-button {
        font-size: 16px;
        /* Smaller font size for mobile */
        padding: 8px 16px;
        /* Adjust padding for mobile */
    }
}

/* -- About Section -- */

.about {
    padding: 80px 20px;
    background: radial-gradient(circle, #014D4E 40%, #342c2a 100%);
    /* Light background */
    text-align: center;
}

.about::after {
    content: '';
    display: block;
    width: 50px;
    height: 5px;
    background-color: #C9A74F;
    margin: 0 auto 20px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1.5s ease-out;
}

.about h2 {
    font-size: 2.5rem;
    color: #C9A74F;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.2rem;
    color: #121212;
    line-height: 1.8;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .about {
        padding: 40px 20px;
        /* Reduced padding for mobile */
    }

    .about h2 {
        font-size: 28px;
        /* Smaller font size for mobile */
        margin-bottom: 15px;
    }

    .about p {
        font-size: 16px;
        /* Smaller font size for mobile */
        line-height: 1.6;
        /* Adjusted line height for better readability */
    }
}

/* -- Services Section -- */

.services {
    padding: 50px 20px;
    background: linear-gradient(135deg, #E3D5C2, #BFC5C6);
    /* Gradient background */
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
    /* Background animation */
    text-align: center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.services h2 {
    font-size: 2.5rem;
    color: #014D4E;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #ffffff;
    /* White background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #C9A74F;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background-color: #C9A74F;
    transition: left 0.3s ease;
}

.service-card:hover::before {
    left: 0;
    /* Border animation on hover */
}

.service-card:hover {
    transform: translateY(-10px);
    /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Stronger shadow on hover */
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #121212;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: #C9A74F;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #121212;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
    color: #4d4d4d;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .services {
        padding: 40px 20px;
        /* Reduced padding for mobile */
    }

    .services h2 {
        font-size: 28px;
        /* Smaller font size for mobile */
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Single column for mobile */
        gap: 15px;
        /* Reduced gap for mobile */
    }

    .service-card {
        padding: 15px;
        /* Reduced padding for mobile */
    }

    .service-icon {
        font-size: 32px;
        /* Smaller icon size for mobile */
    }

    .service-card h3 {
        font-size: 20px;
        /* Smaller heading size for mobile */
    }

    .service-card p {
        font-size: 14px;
        /* Smaller paragraph size for mobile */
        line-height: 1.4;
        /* Adjusted line height for better readability */
    }

    /* Disable hover effects on mobile */
    .service-card:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .service-card:hover::before {
        left: -100%;
        /* Disable border animation on mobile */
    }

    .service-card:hover .service-icon {
        color: #121212;
    }
}

/* Footer - Contact Us Section */
footer {
    background: linear-gradient(135deg, #014D4E, #342c2a);
    /* Gradient background */
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
    /* Background animation */
    color: #E3D5C2;
    padding: 50px 20px;
    text-align: center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer h2 {
    font-size: 2.5rem;
    color: #C9A74F;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

footer p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    animation: fadeInUp 1.5s ease-out;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    background-color: rgba(1, 77, 78, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-10px);
    /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Stronger shadow on hover */
}

.contact-item span {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #E3D5C2;
}

.contact-item p {
    font-size: 1rem;
    color: #BFC5C6;
    margin: 0;
}

.contact-item a {
    display: block;
    margin-bottom: 10px;
    color: #E3D5C2;
    text-decoration: none;
}

.cta {
    font-size: 1.5rem;
    color: #C9A74F;
    font-weight: 500;
    animation: fadeInUp 2s ease-out;
}

/* Social Media Links */
.social-media {
    margin-top: 20px;
}

.social-media a {
    color: #E3D5C2;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #C9A74F;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 20px;
        /* Reduced padding for mobile */
    }

    footer h2 {
        font-size: 28px;
        /* Smaller font size for mobile */
        margin-bottom: 15px;
    }

    footer p {
        font-size: 16px;
        /* Smaller font size for mobile */
        margin-bottom: 15px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        /* Single column for mobile */
        gap: 15px;
        /* Reduced gap for mobile */
    }

    .contact-item {
        padding: 15px;
        /* Reduced padding for mobile */
    }

    .contact-item span {
        font-size: 24px;
        /* Smaller icon size for mobile */
    }

    .contact-item p {
        font-size: 14px;
        /* Smaller font size for mobile */
    }

    .cta {
        font-size: 20px;
        /* Smaller font size for mobile */
    }

    .social-media a {
        font-size: 20px;
        /* Smaller icon size for mobile */
    }

    /* Disable hover effects on mobile */
    .contact-item:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .social-media a:hover {
        color: #c7c7c7;
        /* Disable hover effect on mobile */
    }
}

/* Privacy Policy Section */

.privacy-policy {
    padding: 60px 20px;
    background-color: #f9f9f9;
    /* Light background */
    color: #121212;
    font-family: 'Arial', sans-serif;
    line-height: 1.8;
}

.intro {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

.intro h1 {
    font-size: 36px;
    color: #014D4E;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.intro h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    /* Align to the right */
    transform: translateX(50%);
    /* Adjust for centering */
    width: 60px;
    height: 4px;
    background-color: #C9A74F;
    border-radius: 2px;
}

.intro p {
    font-size: 18px;
    color: #121212;
    max-width: 800px;
    margin: 0 auto;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-section {
    background-color: #ffffff;
    /* White background */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1.5s ease-out;
}

.policy-section:hover {
    transform: translateY(-5px);
    /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Stronger shadow on hover */
}

.policy-section h2 {
    font-size: 24px;
    color: #014D4E;
    margin-bottom: 15px;
    position: relative;
    text-align: right;
    /* Right-align heading */
}

.policy-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    /* Align to the right */
    width: 40px;
    height: 3px;
    background-color: #C9A74F;
    border-radius: 2px;
}

.ltr .policy-section h2::after {
    right: auto;
    /* Remove right */
    left: 0;
    /* Align to the left */
}

.policy-section ul {
    list-style-type: none;
    padding: 0;
    text-align: right;
    /* Right-align list */
}

.policy-section ul li {
    padding: 10px 0;
    font-size: 16px;
    color: #121212;
    position: relative;
    padding-right: 20px;
    /* Padding on the right */
}

.policy-section ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    /* Align to the right */
    color: #014D4E;
    font-size: 20px;
}

.ltr .policy-section ul li::before {
    right: auto;
    /* Remove right */
    left: 0;
    /* Align bullet to the left */
}

.policy-section p {
    font-size: 16px;
    color: #121212;
    margin: 10px 0;
    text-align: right;
    /* Right-align paragraphs */
}

.policy-section a {
    color: #014D4E;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.policy-section a:hover {
    color: #C9A74F;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .intro h1 {
        font-size: 28px;
    }

    .intro p {
        font-size: 16px;
    }

    .policy-section h2 {
        font-size: 20px;
    }

    .policy-section ul li {
        font-size: 14px;
    }

    .policy-section p {
        font-size: 14px;
    }
}

/* -- Copyright Section -- */

.copyright-section {
    text-align: center;
    background-color: #BFC5C6;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1px 0;
}

.copyright-section p {
    font-size: 14px;
    color: #121212;
}

@media (max-width: 768px) {
    .copyright-section {
        padding: 5px 10px;
        font-size: 12px;
    }

    .copyright-section p {
        font-size: 12px;
        text-align: center;
        word-wrap: break-word;
    }
}