:root {
    --primary: #0066A5;
    --secondary: #E5B300;
    --dark: #1E1E1E;
    --light: #FFFFFF;
    --gray: #F5F5F5;
    --footer-bg: #0a1929;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --font-ar: "Cairo", sans-serif;
    --font-en: "Inter", sans-serif;
}

[data-theme="dark"] {
    --gray: #121212;
    --light: #1E1E1E;
    --dark: #F5F5F5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --footer-bg: #050d15;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--gray);
    color: var(--dark);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
}

html[lang="ar"] body {
    font-family: var(--font-ar);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background-color: var(--primary);
    color: var(--light);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a:hover {
    color: var(--secondary);
}

.nav {
    background-color: var(--light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav__links {
    display: flex;
    gap: 30px;
}

.nav__links a {
    font-weight: 500;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.header-btn:hover {
    background: var(--primary);
    color: var(--light);
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #004e80 100%);
    color: var(--light);
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(229, 179, 0, 0.3);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-head .muted {
    color: #666;
}

.rates__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.rate-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.rate-card__pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.rate-card__pair h3 {
    color: var(--dark);
    font-size: 1.2rem;
}

.rate-card__pair span {
    font-size: 0.9rem;
    color: #777;
}

.rate-card__flag {
    font-size: 1.8rem;
}

.rate-card__values {
    display: flex;
    justify-content: space-between;
}

.rate-card__values div {
    text-align: center;
}

.rate-card__values p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.rate-card__values strong {
    color: var(--secondary);
    font-size: 1.3rem;
    font-weight: 700;
}

.services {
    padding: 80px 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(229, 179, 0, 0.3);
    box-shadow: 0 10px 30px rgba(229, 179, 0, 0.1);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

.split {
    background-color: #f0f4f8;
    padding: 80px 0;
}

.split__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.split h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.split p {
    color: #555;
    margin-bottom: 30px;
}

.split ul li {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.split div[style*="background"] {
    background: var(--light) !important;
    border: none !important;
    box-shadow: var(--shadow);
}

.contact {
    padding: 80px 0;
}

.contact__content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--dark);
}

.footer {
    background-color: var(--footer-bg);
    color: #ccc;
    padding: 60px 0 20px;
    border-top: 3px solid var(--secondary);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer__logo h3 {
    color: var(--light);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer__links {
    display: flex;
    gap: 20px;
}

.footer__links a:hover {
    color: var(--secondary);
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

.developer-link {
    font-weight: 600;
    color: inherit;
    transition: color 0.3s ease;
}

.developer-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

html[dir="rtl"] .whatsapp-btn {
    right: auto;
    left: 20px;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }

    .nav__links.is-open {
        display: flex;
    }

    .nav__toggle {
        display: block;
    }

    .split__content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .rates__grid {
        margin-top: -40px;
    }
}

@media (max-width: 480px) {
    .top-bar__content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .rate-card__values {
        flex-direction: column;
        gap: 10px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}