/* Base Styles & Variables */
:root {
    --primary: #FF801E; /* Nesma Orange */
    --primary-dark: #cc6618;
    --dark: #152D29; /* Nesma Dark Green */
    --light: #FFFFFF;
    --bg-light: #F9F9F9;
    --text-primary: #333333;
    --text-secondary: #666666;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Reusable Components */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--light);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: var(--light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.header.scrolled .logo a,
.header.scrolled .desktop-nav a,
.header.scrolled .lang-switch {
    color: var(--dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    transition: var(--transition);
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    white-space: nowrap;
}

.header-contact a {
    color: inherit;
    font-weight: 500;
}

.header-contact a:hover {
    color: var(--primary);
}

.header-contact-separator {
    opacity: 0.5;
}

.lang-switch {
    color: var(--light);
    font-weight: 600;
}

.header.scrolled .header-contact,
.header.scrolled .header-contact a {
    color: var(--dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(21, 45, 41, 0.4), rgba(21, 45, 41, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.08;
    text-transform: uppercase;
    color: #f8fbfb;
    margin-bottom: 1rem;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.hero-title-accent {
    color: var(--primary);
}

.hero-content .hero-tagline {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: rgba(248, 251, 251, 0.92);
    max-width: 680px;
    margin: 0 auto 2.2rem;
}

.scroll-down {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--light);
    font-size: 1.5rem;
    margin-top: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Statistics Section */
.statistics {
    background-color: var(--primary);
    padding: 4rem 0;
    color: var(--light);
}

.stat-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    text-align: center;
}

.stat-card h2 {
    color: var(--light);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Our Business Section */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.business-card {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(21, 45, 41, 0.9) 0%, rgba(21, 45, 41, 0.2) 100%);
    transition: var(--transition);
}

.business-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(255, 128, 30, 0.9) 0%, rgba(255, 128, 30, 0.2) 100%);
}

.card-content {
    position: relative;
    z-index: 10;
    padding: 2.5rem;
    color: var(--light);
    width: 100%;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.read-more {
    display: inline-block;
    color: var(--light);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.business-card:hover .card-content h3 {
    transform: translateY(0);
}

.business-card:hover .read-more {
    opacity: 1;
    transform: translateY(0);
}

/* Projects Map Section */
.map-section {
    background: linear-gradient(135deg, #021d1d 0%, #152D29 100%);
    padding: 0;
    color: var(--light);
}

.map-container {
    display: flex;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.map-sticky-wrapper {
    flex: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.map-graphics {
    width: 100%;
    max-width: 800px;
    position: relative;
    transform: scale(1.15) translateX(-40px); /* Enlarge and shift to the left */
    transform-origin: left center;
}

.country-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.map-region {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    transition: fill 0.4s ease, stroke 0.4s ease;
}

.map-region.active {
    fill: rgba(255, 128, 30, 0.3) !important; /* Teal/Orange tint highlight */
    stroke: var(--primary) !important;
}

.map-pin {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-cards-container {
    flex: 1;
    padding: 6rem 4rem 6rem 2rem;
}

.projects-info {
    margin-top: 2rem;
}

.projects-info h2 {
    color: var(--light);
    font-size: 3rem;
}

.projects-info p {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.project-card {
    background-color: var(--light);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem; /* Space between cards */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: var(--text-primary);
    transform: scale(0.95);
    opacity: 0.5;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.project-card.active {
    transform: scale(1);
    opacity: 1;
}

.project-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    height: 1px;
    background-color: #E0E0E0;
    margin: 1rem 0 1.5rem;
}

.project-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.slide-image {
    height: 350px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}
.news .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    max-width: 100%;
    text-align: left;
}

.news .section-header h2 {
    margin: 0;
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-item {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 4px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.news-item:hover {
    border-top-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.news-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.news-item h4 {
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--light);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-address {
    margin-top: 0.9rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links h4 {
    color: var(--light);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.legal a {
    margin-left: 1rem;
}

.legal a:hover {
    color: var(--primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .hero-title {
        font-size: clamp(2.1rem, 10vw, 3.1rem);
        letter-spacing: 0.02em;
    }
    .hero-content .hero-tagline {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 1.8rem;
    }
    .desktop-nav { display: none; }
    .header-actions {
        gap: 0.75rem;
        align-items: flex-start;
        flex-direction: column;
    }
    .header-contact {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.15rem;
        font-size: 0.8rem;
    }
    .header-contact-separator {
        display: none;
    }
    .business-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-container { flex-direction: column; }
}
