/* --- CSS Variables --- */
:root {
    --primary-black: #1c1c1c;
    --primary-red: #c0392b;
    --primary-orange: #ff8c00;
    --accent-orange: #e67e00;
    --accent-red: #a93226;
    --bg-light: #f7f7f7;
    --text-light: #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(--bg-light);
    color: var(--primary-black);
    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-black); } /* تم تصحيح اللون هنا */
h3 { font-size: 1.5rem; color: var(--primary-orange); }

a {
    text-decoration: none;
    color: var(--primary-black);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-orange);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-light { background-color: var(--bg-light); color: var(--primary-black); padding: 100px 0; }
.section-dark { background-color: var(--primary-black); color: var(--text-light); padding: 100px 0; }
.section-dark h2 { color: var(--white); } /* هذا القانون يضمن بقاء العنوان أبيض في الأقسام الداكنة */
.section-dark h3 { color: var(--primary-orange); }

.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: var(--accent-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

.btn-secondary {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
}
.btn-secondary:hover {
    background-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
}

.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: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background-color: var(--primary-black);
}

.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;
    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(--primary-black);
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.main-nav.scrolled ul li a {
    color: var(--text-light);
}

.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(--primary-black);
    margin: 3px 0;
    transition: 0.3s;
}

.main-nav.scrolled .hamburger .bar {
    background-color: var(--text-light);
}

.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 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    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;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(28, 28, 28, 0.9) 0%, rgba(28, 28, 28, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 0 5px var(--primary-orange), 0 20px 40px rgba(0,0,0,0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* 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; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 0 5px var(--primary-red), 0 10px 30px rgba(0,0,0,0.3);
}

.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;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--primary-orange);
}

.card-header {
    position: relative;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.card-body {
    padding: 35px 25px 25px;
    text-align: center;
}

.card-body h3 {
    margin-bottom: 1rem;
    color: var(--primary-black);
}

/* --- Guidelines Section --- */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.guideline-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 2px solid var(--primary-red);
    transition: all 0.3s ease;
}

.guideline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.guideline-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.guideline-card .card-header i {
    font-size: 2rem;
    color: var(--primary-red);
}

.guideline-card .card-header h3 {
    margin: 0;
    color: var(--primary-black);
}

.guideline-card ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--primary-black);
}

.guideline-card ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* --- Coverage Section --- */
.coverage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 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(--primary-black);
}

.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);
    color: var(--primary-black);
    
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.why-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-orange);
}
.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;
    color: var(--primary-black);
}
.why-card p { /* هذا هو السطر الجديد */
    color: var(--primary-black);
}

/* --- Contact Section --- */
.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(--text-light);
    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(--primary-red);
}

.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(--primary-orange);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-black);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    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) {
    .hero-content, .about-content, .contact-content {
        grid-template-columns: 1fr;
    }
    .hero-image { order: -1; }
    .about-image { order: -1; }
}
@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-black);
        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 { grid-template-columns: 1fr; }
    .services-grid, .why-us-grid, .guidelines-grid { grid-template-columns: 1fr; }
}