/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #1e3a8a;
    /* Dark Blue */
    --primary-dark: #1e40af;
    --secondary-color: #06b6d4;
    /* Cyan Accent */
    --secondary-light: #22d3ee;
    --accent-color: #ffffff;
    /* White */
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-section: #ffffff;
    --border-light: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(30, 64, 175, 0.95) 100%);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 1400px) {
    .container {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ========================================
   TOP BAR STYLES
   ======================================== */
.top-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 0.7rem 0;
    position: relative;
    z-index: 1100;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-phone,
.top-bar-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.top-bar-phone:hover,
.top-bar-social:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.top-bar-phone i,
.top-bar-social i {
    font-size: 0.85rem;
}

.top-bar-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
}

.top-bar-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
    color: white;
}

.top-bar-cta i {
    font-size: 0.95rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-phone,
.top-bar-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.top-bar-phone:hover,
.top-bar-social:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.top-bar-phone i,
.top-bar-social i {
    font-size: 0.85rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.top-bar-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    }

    50% {
        box-shadow: 0 6px 25px rgba(249, 115, 22, 0.6);
    }
}

.top-bar-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5);
    color: white;
}

.top-bar-cta i {
    font-size: 0.95rem;
}

/* ========================================
   BOOTSTRAP NAVBAR CUSTOM STYLES
   ======================================== */
.navbar {
    background: #ffffff !important;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 70px !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.15);
}

.navbar-nav .nav-link {
    color: #374151 !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 1.2rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}


.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #1e3a8a !important;
    background: rgba(30, 58, 138, 0.05);
}

.navbar-nav .nav-link.dropdown-toggle::after {
    content: none;
}

.navbar-nav .nav-link i {
    margin-left: 0.3rem;
}

.navbar-toggler {
    border: 1.5px solid rgba(30, 58, 138, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    background: rgba(30, 58, 138, 0.03);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(30, 58, 138, 0.08);
    border-color: rgba(30, 58, 138, 0.3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

/* Services Dropdown Styles */
.services-dropdown {
    min-width: 280px;
    padding: 1rem 0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: white;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-dropdown .dropdown-header {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-dropdown .dropdown-item {
    padding: 0.7rem 1.5rem;
    color: var(--text-medium);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.services-dropdown .dropdown-item i {
    width: 20px;
    color: #ff6b35;
    font-size: 0.9rem;
}

.services-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    color: #ff6b35;
    padding-right: 2rem;
}

.services-dropdown .dropdown-item:hover i {
    color: #ff6b35;
}

.services-dropdown .dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: rgba(30, 58, 138, 0.1);
}

.services-dropdown .dropdown-item.view-all {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white !important;
    margin: 0.5rem 1rem;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    width: calc(100% - 2rem);
}

.services-dropdown .dropdown-item.view-all i {
    color: white !important;
    width: auto;
}

.services-dropdown .dropdown-item.view-all:hover {
    background: linear-gradient(135deg, #e85a2a 0%, #e8820a 100%);
    color: white !important;
    padding: 0.6rem 1rem;
}

/* Common Button Styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}



.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: #1e3a8a;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: #1e3a8a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Common Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer Styling */
.footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%, rgba(6, 182, 212, 0.05) 100%);
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Common Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Scrolling */
html {
    scroll-behavior: auto;
}

/* Scroll offset for sticky navbar */
section {
    scroll-margin-top: 100px;
}



/* Hide Scrollbar */
html {
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .top-bar-content {
        justify-content: center;
    }

    .top-bar-contact {
        gap: 1rem;
    }

    .top-bar-social {
        display: none;
    }

    section {
        scroll-margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.5rem 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .top-bar-phone {
        font-size: 0.85rem;
    }

    .top-bar-cta {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .navbar {
        padding: 0.6rem 0;
    }

    .navbar-brand img {
        height: 50px !important;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    section {
        scroll-margin-top: 90px;
    }
}

@media (max-width: 480px) {
    .top-bar-phone span {
        font-size: 0.8rem;
    }

    .top-bar-cta span {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .navbar-brand img {
        height: 45px !important;
    }
}