/* Global Vars */
:root {
    --forest-green: #1e8449;
    /* Deep Green */
    --gold: #f1c40f;
    /* Premium Gold */
    --dark-grey: #2c3e50;
    --light-bg: #fdfefe;
    --border-color: #ecf0f1;
    --font-main: 'Almarai', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html[dir="ltr"] {
    direction: ltr;
}

html[dir="rtl"] {
    direction: rtl;
}

body {
    font-family: var(--font-main);
    color: var(--dark-grey);
    background-color: var(--light-bg);
    display: flex;
    /* Sidebar layout */
}

/* Sidebar */
.sidebar {
    width: 80px;
    height: 100vh;
    background-color: #fff;
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
}

html[dir="rtl"] .sidebar {
    border-left: 1px solid var(--border-color);
    right: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
}

html[dir="ltr"] .sidebar {
    border-right: 1px solid var(--border-color);
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.brand .logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--forest-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 8px;
}

.nav-links {
    list-style: none;
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-btn {
    color: var(--dark-grey);
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.nav-btn:hover {
    background-color: var(--forest-green);
    color: #fff;
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-grey);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

html[dir="rtl"] .tooltip::after {
    right: 120%;
}

html[dir="ltr"] .tooltip::after {
    left: 120%;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Content Area */
.content-wrapper {
    width: calc(100% - 80px);
}

html[dir="rtl"] .content-wrapper {
    margin-right: 80px;
}

html[dir="ltr"] .content-wrapper {
    margin-left: 80px;
}

/* Hero Parallax */
.hero-parallax {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Simple Parallax */
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 132, 73, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-text {
    position: relative;
    color: #fff;
    z-index: 2;
    padding: 20px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.scroll-down {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Split Section */
.split-section {
    display: flex;
    min-height: 80vh;
}

.split-text,
.split-image {
    flex: 1;
}

.split-text {
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 80px;
}

.split-image {
    background-size: cover;
    background-position: center;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--forest-green);
}

.lead {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.stats-row {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat h3 {
    font-size: 2rem;
    color: var(--gold);
}

/* Projects */
.projects-section {
    padding: 120px 0;
    background-color: var(--light-bg);
}

.container {
    width: 85%;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 80px;
}

.section-head h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-head p {
    color: #7f8c8d;
}

.project-card {
    display: flex;
    margin-bottom: 100px;
    align-items: center;
}

.project-card.inverted {
    flex-direction: row-reverse;
}

.p-image {
    flex: 1.2;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.p-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-card:hover .p-image img {
    transform: scale(1.05);
}

.p-details {
    flex: 0.8;
    background: #fff;
    padding: 50px;
    position: relative;
    z-index: 2;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.05);
}

html[dir="rtl"] .p-details {
    margin-right: -50px;
    border-left: 5px solid var(--gold);
}

html[dir="ltr"] .p-details {
    margin-left: -50px;
    border-right: 5px solid var(--gold);
}

html[dir="rtl"] .project-card.inverted .p-details {
    margin-right: 0;
    margin-left: -50px;
    border-left: none;
    border-right: 5px solid var(--gold);
}

html[dir="ltr"] .project-card.inverted .p-details {
    margin-left: 0;
    margin-right: -50px;
    border-right: none;
    border-left: 5px solid var(--gold);
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--border-color);
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.p-details h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.btn-text {
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    color: var(--forest-green);
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background-color: var(--forest-green);
}

html[dir="rtl"] .btn-text::after {
    left: 0;
}

html[dir="ltr"] .btn-text::after {
    right: 0;
}

.tag-investment {
    background-color: var(--forest-green);
    color: #fff;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--forest-green) 0%, #27ae60 100%);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-counter {
    padding: 40px 20px;
    transition: transform 0.3s ease;
}

.stat-counter:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.stat-counter h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1;
}

.stat-counter p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Footer Minimal */
.footer-minimal {
    background-color: #2c3e50;
    color: #fff;
    padding: 100px 0 30px;
    text-align: center;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--gold);
    width: 30px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-link,
.email-link,
.map-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.phone-link:hover,
.email-link:hover,
.map-link:hover {
    color: var(--gold);
}

.map-container {
    margin: 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.btn-gold {
    display: inline-block;
    background-color: var(--gold);
    color: var(--dark-grey);
    padding: 15px 40px;
    margin-top: 30px;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-gold:hover {
    background-color: #f39c12;
}

.footer-bottom {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    opacity: 0.5;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.socials a {
    color: #fff;
    margin-left: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        bottom: 0;
        top: auto;
        right: 0;
        flex-direction: row;
        justify-content: space-around;
        padding: 15px;
        order: 2;
        /* Move to bottom on mobile */
    }

    .content-wrapper {
        margin-right: 0;
        width: 100%;
        margin-bottom: 60px;
        /* Space for bottom nav */
    }

    .nav-links {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }

    .brand {
        display: none;
    }

    .split-section {
        flex-direction: column;
    }

    .split-image {
        min-height: 300px;
    }

    .split-text {
        padding: 40px;
    }

    .project-card,
    .project-card.inverted {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .p-details {
        margin: -50px 20px 0;
        width: calc(100% - 40px);
        box-sizing: border-box;
    }
    
    html[dir="rtl"] .p-details {
        border-left: 5px solid var(--gold);
        border-right: none;
    }
    
    html[dir="ltr"] .p-details {
        border-right: 5px solid var(--gold);
        border-left: none;
    }
    
    html[dir="rtl"] .project-card.inverted .p-details {
        border-right: 5px solid var(--gold);
        border-left: none;
    }
    
    html[dir="ltr"] .project-card.inverted .p-details {
        border-left: 5px solid var(--gold);
        border-right: none;
    }

    .p-image {
        width: 100%;
        height: 250px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .map-container {
        margin: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stat-counter h3 {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
}