/* ============================================
   دليل أي خدمة - ملف CSS الرئيسي
   ============================================ */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #f8fafc;
    color: var(--dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ============================================
   Navbar
   ============================================ */
.main-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 2rem;
}

.nav-link {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0.5rem;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-navbar {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-navbar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.4);
    color: var(--primary);
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white !important;
    transform: translateX(-5px);
}

.dropdown-item i {
    margin-left: 8px;
}

/* ============================================
   Footer
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.footer-section h5 {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-links a i {
    font-size: 0.9rem;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 8px 20px rgba(102,126,234,0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102,126,234,0.4);
    color: white;
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
    
    .main-footer {
        text-align: center;
    }
    
    .footer-section h5::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
}
