/* --- CSS Variables --- */
:root {
    --primary-blue-dark: #0a2f5f;
    --primary-blue: #1a5490;
    --primary-blue-light: #e3f2fd;
    --primary-orange: #ff8c00;
    --sandy-beige: #f5e6d3;
    --grass-green: #4a7c59; /* أخضر حشيشي */
    --dark-gray: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --font-family: 'Tajawal', sans-serif;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; color: var(--white); }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: var(--primary-blue-dark); }
h3 { font-size: 1.5rem; color: var(--primary-blue); }

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-orange);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}
.btn-primary:hover {
    background-color: #e67e00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue-dark);
}

.section {
    padding: 100px 0;
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
}

.section-title.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

/* --- Navigation --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    padding: 10px 0;
    background-color: var(--primary-blue-dark);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav .logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 50px; /* Adjust height as needed */
    width: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 600;
    color: var(--dark-gray);
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.main-nav.scrolled ul li a {
    color: var(--white);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-orange);
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-orange);
    bottom: -5px;
    right: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
}

.main-nav.scrolled .hamburger .bar {
    background-color: var(--white);
}

.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);
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('wadihere.png') no-repeat center center/cover;
    animation: ken-burns 20s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.8), rgba(255, 140, 0, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--sandy-beige);
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* Animations for hero */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- About Section --- */
#about {
    background-color: var(--primary-blue); /* Solid blue background */
    color: var(--white); /* Default text color to white */
    padding: 100px 0;
}

#about .section-title {
    color: var(--white); /* Make title white */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.feature-item i {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.feature-item span {
    color: var(--white); /* Ensure feature text is white */
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    /* Elegant frame effect */
    box-shadow: 0 0 0 5px var(--grass-green), 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0 5px var(--grass-green), 0 15px 40px rgba(0,0,0,0.4);
}


/* --- Services Section --- */
#services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 2px solid var(--grass-green);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: -35px auto 20px;
    background-color: var(--primary-blue-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 3px solid var(--white);
}

.service-card:hover .card-icon {
    background-color: var(--primary-orange);
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.service-card:hover .card-icon i {
    color: var(--white);
}

/* --- Coverage Section --- */
#coverage {
    background-color: var(--sandy-beige);
}

.coverage-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.coverage-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid var(--grass-green);
}

.coverage-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.country-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--grass-green);
}

.country-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.flag-img {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Why Us Section --- */
#why-us {
    background-color: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    background: linear-gradient(135deg, var(--primary-blue-light), var(--white));
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--grass-green);
}

.why-card:hover {
    transform: translateY(-10px);
}

.why-card i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.why-card h3 {
    margin-bottom: 10px;
}

/* --- Contact Section --- */
#contact {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    color: var(--white);
}

#contact .section-title {
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h3 {
    color: var(--primary-orange);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--white);
    font-weight: 600;
}

.contact-form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 2px solid var(--grass-green);
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    direction: rtl;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--grass-green);
}

/* --- Footer --- */
footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    text-align: center;
    padding: 30px 0;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-logo-img {
    max-height: 40px;
    width: auto;
}

/* --- Scroll Animations --- */
.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.slide-in.show {
    opacity: 1;
    transform: translateX(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-content,
    .coverage-map,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .about-image { order: -1; }
    .coverage-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .main-nav .container {
        padding: 15px 20px;
    }
    .main-nav ul {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-blue-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    .main-nav ul.active {
        left: 0;
    }
    .main-nav ul li {
        margin: 15px 0;
    }
    .hamburger {
        display: flex;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .about-features,
    .coverage-list {
        grid-template-columns: 1fr;
    }
    .services-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}