/* Custom Properties based on new Orange & Navy Logo */
:root {
    --clr-primary: #1e293b; /* Navy */
    --clr-primary-dark: #0f172a; /* Dark Navy */
    --clr-primary-light: #334155; 
    
    --clr-accent: #f97316; /* Orange */
    --clr-accent-light: #fdba74;
    --clr-accent-dark: #ea580c;
    
    --clr-bg-light: #f8fafc;
    --clr-bg-white: #ffffff;
    
    --clr-text-main: #334155;
    --clr-text-light: #f8fafc;
    --clr-text-muted: #64748b;
    --clr-text-muted-light: #cbd5e1;
    
    --font-heading: 'Tajawal', sans-serif;
    --font-body: 'Cairo', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-light);
    color: var(--clr-text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.section-header {
    margin-bottom: 3rem;
}

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

.divider {
    height: 4px;
    width: 60px;
    background: var(--clr-accent);
    margin: 1rem 0 2rem 0;
    border-radius: 2px;
}

.divider.center {
    margin: 1rem auto 2rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-bg-white);
    border: 2px solid var(--clr-accent);
}

.btn-primary:hover {
    background-color: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
    color: var(--clr-bg-white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--clr-primary);
}

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

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

.nav-item {
    margin-right: 2.5rem; /* RTL equivalent of left */
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-primary);
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* RTL equivalent */
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--clr-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    border: 2px solid var(--clr-accent);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    color: var(--clr-accent);
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: var(--clr-accent);
    color: var(--clr-bg-white);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    /* Updated background gradient overlay */
    background: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.7) 60%, rgba(15,23,42,0.4) 100%);
}

[dir="rtl"] .hero-overlay {
    background: linear-gradient(270deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.7) 60%, rgba(15,23,42,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.2;
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
    max-width: 800px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted-light);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

/* About Section */
.about {
    background-color: var(--clr-bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--clr-primary);
    font-weight: 600;
}

.about-visual {
    position: relative;
}

.about-image {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px; /* RTL equivalent */
    width: 100%;
    height: 100%;
    border: 3px solid var(--clr-accent);
    z-index: 1;
    border-radius: 8px;
}

/* Services */
.services {
    background-color: var(--clr-bg-light);
}

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

.service-card {
    background: var(--clr-bg-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(30, 41, 59, 0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--clr-accent-light);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.1);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--clr-accent);
    color: var(--clr-bg-white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-desc {
    color: var(--clr-text-muted);
}

/* Commitment */
.commitment {
    background: linear-gradient(rgba(15,23,42,0.9), rgba(15,23,42,0.9)), url('https://images.unsplash.com/photo-1542838132-92c53300491e?q=80&w=1974&auto=format&fit=crop') center/cover fixed;
    text-align: center;
    color: var(--clr-text-light);
}

.commitment .section-title {
    color: var(--clr-bg-white);
}

.commitment-wrap {
    max-width: 900px;
}

.commitment-lead {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: var(--clr-text-muted-light);
}

.commitment-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    padding: 2.5rem 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--clr-accent);
    transform: translateY(-5px);
}

.feature-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: rgba(249, 115, 22, 0.2);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.feature-title {
    color: var(--clr-accent);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-item p {
    color: var(--clr-text-muted-light);
    font-size: 0.95rem;
}

/* Network Section */
.network {
    background-color: var(--clr-bg-white);
}

.container-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.network-info p {
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    border-right: 3px solid var(--clr-accent); /* RTL */
    padding-right: 1rem;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--clr-primary);
    font-weight: 800;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    font-weight: 600;
}

/* Abstract Network Visual */
.network-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(30, 41, 59, 0.2);
    border-radius: 50%;
}

.ring-1 { width: 100px; height: 100px; animation: spin 20s linear infinite; }
.ring-2 { width: 200px; height: 200px; animation: spin 30s linear infinite reverse; }
.ring-3 { width: 300px; height: 300px; animation: spin 40s linear infinite; border: 1px solid rgba(249, 115, 22, 0.2); }

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--clr-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(30, 41, 59, 0.5);
}

.node {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--clr-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

.node-1 { top: 10%; left: 30%; }
.node-2 { top: 70%; left: 80%; }
.node-3 { top: 85%; left: 20%; }

/* Footer */
.footer {
    background-color: var(--clr-primary-dark);
    color: var(--clr-text-light);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.logo-img-footer {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    /* Optional filter if logo needs to be white/orange on dark */
    /* filter: brightness(0) invert(1); */
}

.footer-desc {
    color: var(--clr-text-muted-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--clr-text-light);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--clr-accent);
    color: var(--clr-bg-white);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--clr-bg-white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--clr-text-muted-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-right: 8px; /* RTL */
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--clr-text-muted-light);
    font-size: 0.95rem;
}

.contact-details svg {
    color: var(--clr-accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.simplified-map {
    position: relative;
    width: 100%;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.map-bg {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(249, 115, 22, 0.2) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.5;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: var(--clr-accent);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.8);
}

.map-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.footer-bottom {
    background: #090e1a;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}

.legal-links a {
    margin-right: 1.5rem; /* RTL */
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--clr-accent);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .container-map {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .commitment-features {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: absolute;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--clr-bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

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

    .nav-item {
        margin: 1.5rem 0;
        margin-right: 0;
    }

    .section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

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

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

    .footer-bottom-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}
