/* ===== CSS Variables ===== */
:root {
    --primary-color: #0f172a;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
}

/* ===== Font (Cairo for Arabic support) ===== */
body {
    font-family: 'Cairo', sans-serif;
}

/* ===== Custom Accent Button ===== */
.btn-accent {
    background: var(--accent-color);
    color: #fff;
    border: none;
}
.btn-accent:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}

/* ===== Navbar tweaks ===== */
.navbar { padding: 1.1rem 0; }
.navbar-brand img { height: 52px; width: auto; max-width: 220px; }
.nav-link { font-weight: 500; color: #1e293b !important; }
.nav-link.active { color: var(--accent-color) !important; }
.nav-link:hover { color: var(--accent-color) !important; }

/* ===== Hero Sections ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="8"/></svg>') repeat;
    background-size: 100px;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
}

/* ===== Feature / Service Icon Wraps ===== */
.feature-icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Card Hover Effect ===== */
.hover-lift { transition: transform .3s ease, box-shadow .3s ease; }
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,.1) !important;
}

/* ===== Client Logos ===== */
.client-logo {
    max-height: 120px;
    max-width: 320px;
    width: auto;
}
.client-logo-dark {
    max-height: 120px;
    max-width: 320px;
    width: auto;
    background: #111;
    padding: 12px 20px;
    border-radius: 8px;
}
.letter-spacing { letter-spacing: 2px; }

/* ===== Footer ===== */
.site-footer { background: var(--primary-color); }
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    font-size: 1.1rem;
    text-decoration: none;
    transition: background .25s, color .25s;
}
.social-link:hover {
    background: var(--accent-color);
    color: #fff;
}
.footer-bottom-link:hover { color: var(--accent-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.footer-links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover { color: var(--accent-color); }

/* ===== Misc ===== */
.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 .2rem rgba(59,130,246,.15);
}
a.text-muted:hover { color: var(--accent-color) !important; }

/* ===== Language Toggle ===== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--primary-color);
    background: #f1f5f9;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: background .25s, color .25s, box-shadow .25s;
    white-space: nowrap;
}
.lang-toggle:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15,23,42,.18);
}
.lang-toggle i { font-size: 1rem; }
.nav-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0 12px;
    align-self: center;
}

/* ===== RTL Adjustments ===== */
[dir="rtl"] .btn-close { margin-left: 0; margin-right: auto; }

/* ===== Personal Card (Me Page) ===== */
.me-card-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: #f1f5f9;
}
.me-card {
    border: none;
}
.me-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}
.me-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="8"/></svg>') repeat;
    background-size: 80px;
}
.me-avatar {
    width: 96px;
    height: 96px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    border: 3px solid rgba(255,255,255,.25);
    position: relative;
    z-index: 1;
}
.me-icon-wrap {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}
.me-info-row {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.me-info-row:last-child {
    border-bottom: none;
}
[dir="rtl"] .me-info-row .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem;
}

/* Profile photo in avatar */
.me-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.me-avatar-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* Social media icon buttons */
.me-social-links {
    padding-top: 4px;
}
.me-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--primary-color);
    font-size: 1.15rem;
    text-decoration: none;
    transition: background .25s, color .25s, transform .25s;
}
.me-social-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59,130,246,.25);
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    transition: transform .3s ease, box-shadow .3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,.5);
    color: #fff;
}
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 24px;
}
