:root {
    --brand-teal: #00e5a0;
    --brand-navy: #131b2f;
    --brand-green: #0a4f36;
    --brand-dark-green: #032821;
    --brand-white: #ffffff;
    --brand-light-gray: #f4f6f8;
    --text-dark: #191919;
    --text-light: #ffffff;
    --border-radius-lg: 24px;
    --border-radius-sm: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo,
.code,
.btn {
    font-family: 'Outfit', sans-serif;
}

/* Base Settings for Right-to-Left languages like Arabic */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .logo {
    margin-right: 0;
    margin-left: auto;
}

a {
    text-decoration: none;
    color: var(--brand-teal);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Card Utilities */
.card-solid {
    background: var(--brand-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 229, 160, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0 auto;
}

.nav-links a {
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-teal);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-teal);
}

.nav-links a:hover::after {
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--brand-navy);
    cursor: pointer;
}

.logo span {
    color: var(--brand-teal);
}

/* Custom Dropdown for Language Switcher */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: var(--brand-light-gray);
    color: var(--text-dark);
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: flex-start;
    transition: background 0.2s;
    font-weight: 600;
}

.dropdown-btn:hover {
    background: #e2e8f0;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--brand-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-sm);
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    overflow: hidden;
}

.dropdown-content.show {
    display: flex;
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text-dark);
    padding: 12px 16px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    transition: background 0.2s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    /* Base white behind gradient */
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 65%, var(--bg-dark) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #191919;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Referral Card */
.referral-card {
    display: inline-block;
    padding: 30px 50px;
    margin-bottom: 60px;
    position: relative;
    transition: transform 0.3s ease;
}

.referral-card:hover {
    transform: translateY(-5px);
}

.glow {
    box-shadow: 0 0 30px rgba(0, 229, 160, 0.4);
    animation: pulseGlow 3s infinite alternate;
}

.label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #191919;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.code-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.code {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: #191919;
}

.copy-btn {
    background: var(--brand-teal);
    border: none;
    color: #191919;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--brand-teal);
    color: #000;
    transform: scale(1.1);
}

.copy-msg {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #191919;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-msg.show {
    opacity: 1;
}

/* Button UI */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--brand-teal);
    color: var(--brand-navy);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 229, 160, 0.3);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
    scroll-margin-top: 80px;
}

.wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 10;
}

section.bg-white {
    background: var(--brand-white);
    color: var(--text-dark);
}

section.bg-green {
    background: var(--brand-green);
    color: var(--brand-white);
}

/* About Section */
.about-section {
    background: var(--brand-light-gray);
}

/* Zone Badge for city subpages */
.zone-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--brand-light-gray), #e8f4f8);
    border: 1px solid rgba(0, 179, 167, 0.2);
    color: var(--brand-navy);
}

.about-section .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.bg-dark-green {
    background: var(--brand-dark-green);
    color: var(--brand-white);
}

section.bg-navy {
    background: var(--brand-navy);
    color: var(--brand-white);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* How It Works Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
    background: var(--brand-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--brand-teal);
    color: var(--brand-navy);
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Outfit', sans-serif;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--brand-navy);
}

.step-card p {
    color: var(--text-dark);
}

.highlight {
    color: var(--brand-teal);
    font-weight: 700;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
}

.benefit-icon {
    font-size: 2rem;
}

.benefit-row h3 {
    margin-bottom: 10px;
    color: var(--brand-white);
}

.benefit-row p {
    color: var(--text-light);
    opacity: 0.9;
}

/* Accordion FAQ */
.faq .container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    background: var(--brand-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: var(--brand-navy);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

html[dir="rtl"] .accordion-header {
    text-align: right;
}

.accordion-header .icon {
    font-size: 1.5rem;
    color: var(--brand-teal);
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.accordion-header.active+.accordion-content {
    padding: 0 25px 20px;
    max-height: 200px;
}

/* Footer */
.glass-footer {
    background: var(--brand-light-gray);
    padding: 80px 0 60px;
    margin-top: 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-links a {
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--brand-teal);
    opacity: 1;
    transform: translateY(-3px);
}

.mega-sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sitemap-col h4 {
    color: var(--brand-navy);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 800;
}

.sitemap-col ul {
    list-style: none;
}

.sitemap-col li {
    margin-bottom: 10px;
}

.sitemap-col a {
    color: #64748b;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.sitemap-col a:hover {
    color: var(--brand-teal);
}

.footer-disc {
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #64748b;
    padding: 0 5%;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-navy);
}

.footer-bottom .highlight {
    color: var(--brand-teal);
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 20px rgba(0, 229, 160, 0.2);
    }

    to {
        box-shadow: 0 0 40px rgba(0, 229, 160, 0.6);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .navbar {
        padding: 15px 5%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    .code {
        font-size: 2.2rem;
    }

    .referral-card {
        padding: 20px;
    }
}