/* CSS Variables */
:root {
    --primary-color: #1a3c6e;
    /* Deep Blue - Trust */
    --secondary-color: #c5a046;
    /* Gold - Premium/Official */
    --accent-color: #2b5c9e;
    /* Lighter Blue */
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --font-main: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn i {
    margin-left: 8px;
    /* RTL - icon on right needs left margin */
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(197, 160, 70, 0.3);
}

.btn-primary:hover {
    background-color: #b08d38;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Section Header Utility */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-color);
}

/* Header & Nav */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    color: var(--secondary-color);
    margin-left: 10px;
    font-size: 2.2rem;
    -webkit-text-fill-color: initial;
    /* Keep icon solid color if preferred, or gradient too */
    background: none;
}


.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    /* RTL specific if needed, usually width 0 to 100 works */
    right: 0;
    /* RTL */
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    margin: 0 auto;
    /* Center it */
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    display: none;
    /* Hide on larger screens if nav is enough, but user might want it visible. Let's show it on large too */
    margin-right: 20px;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, #1a3c6e 0%, #2b5c9e 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(197, 160, 70, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(43, 92, 158, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    /* Overlay effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    /* Center align hack for text-align center */
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features/About Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(26, 60, 110, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.service-item h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.service-item h3 i {
    color: var(--secondary-color);
    margin-left: 10px;
    font-size: 1.4rem;
}

.service-item p {
    color: var(--light-text);
}

/* Documents / Two Col */
.row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-text {
    flex: 1;
}

.col-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-box {
    width: 100%;
    max-width: 400px;
    height: 350px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--white);
}

.image-box::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    top: -50%;
    left: -50%;
    animation: rotate 20s linear infinite;
}

.image-box i {
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.image-box span {
    z-index: 2;
    font-size: 1.2rem;
    margin-top: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.check-list li i {
    color: var(--secondary-color);
    margin-left: 10px;
}

/* Languages */
.lang-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.lang-card {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.lang-card:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: var(--white);
}

/* Process */
.process {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.process .section-header h2 {
    color: var(--white);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.step h3 {
    margin-bottom: 10px;
    font-weight: 700;
}

.step p {
    opacity: 0.8;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 15px;
}

.blog-content h3 a {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.blog-content h3 a:hover {
    color: var(--secondary-color);
}

.blog-content p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info>h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(197, 160, 70, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    margin-top: 5px;
    font-size: 1.1rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--light-text);
}

.contact-map {
    flex: 1;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Footer */
.footer {
    background-color: #111;
    color: #aaa;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 15px;
    color: #ccc;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social a {
    color: var(--white);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Floating Whatsapp */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    /* Left side for RTL feels better often, or right. Usually WA is bottom right. RTL -> Bottom Left might be standard? Let's check. Default usually bottom-right everywhere. But in user request, let's stick to left to not cover content if right scrollbar exists. */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-wa:hover {
    transform: scale(1.1);
    background-color: #1eac52;
}


/* Responsive */
@media (max-width: 900px) {

    .header .nav-links,
    .nav-btn {
        display: none;
        /* Mobile menu logic needed in JS */
    }

    .hamburger {
        display: block;
    }

    .header .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 0;
    }

    .header .nav-links.active li {
        width: 100%;
        text-align: center;
    }

    .header .nav-links.active li a {
        display: block;
        padding: 15px;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .row {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
    }

    .container {
        padding: 0 15px;
    }
}