:root {
    --brand-dark: #0a2351;
    --brand-white: #ffffff;
    --brand-gold: #cda45e;
    --muted: #6c757d;
    --red-primary: #dc2626;
    --red-secondary: #ef4444;
    --red-light: #fca5a5;
    --blue-primary: #000080;
    --blue-secondary: #0000a0;
    --blue-light: #4d4dcc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Bootstrap Primary Color Override */
.bg-primary {
    background-color: #000080 !important;
}

.text-primary {
    color: #000080 !important;
}

.btn-primary {
    background-color: #000080;
    border-color: #000080;
}

.btn-primary:hover {
    background-color: #0000a0;
    border-color: #0000a0;
}

.btn-outline-primary {
    color: #000080;
    border-color: #000080;
}

.btn-outline-primary:hover {
    background-color: #000080;
    border-color: #000080;
}

/* Global */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #212529;
}

/* Top bar */
.top-bar {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.top-bar .text-muted {
    color: var(--muted) !important
}

/* Top bar responsive */
@media (max-width: 991px) {
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-bar .contact-info {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .top-bar small {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 0.7rem;
    }
    
    .top-bar .contact-info small:last-child {
        display: none;
    }
    
    .top-bar .socials a {
        font-size: 0.75rem;
    }
}

/* Brand */
.brand-dot {
    width: 10px;
    height: 10px;
    background: var(--blue-primary);
    display: inline-block;
    border-radius: 50%;
}

/* Hero */
.hero-section {
    min-height: 80vh;
    background-image: url('/public/Images/hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 81, 0.7);
}

.hero-section .container {
    position: relative;
    z-index: 2
}

.btn-cta {
    background: #000080;
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #0000a0;
    transform: translateY(-2px);
    color: white;
}

/* About image decorative */
.about-image .decorative-shape {
    position: absolute;
    left: -30px;
    top: 20px;
    width: 100px;
    height: 120px;
    background: var(--blue-light);
    transform: rotate(12deg);
    z-index: 0;
    border-radius: 16px;
    opacity: 0.3;
}

.about-image img {
    position: relative;
    z-index: 1
}

/* Stats */
.stats .counter {
    color: var(--blue-primary);
    font-weight: 700;
}

/* Service cards */
.service-card {
    border: 1px solid var(--gray-200);
    transition: all .3s ease;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--blue-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    border-color: var(--blue-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    color: var(--blue-primary);
}

/* Projects */
.project-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .4s ease
}

.project-card:hover img {
    transform: scale(1.06)
}

.project-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 35, 81, 0.9);
    color: #fff;
    padding: .8rem .9rem;
    font-weight: 600;
}

/* Clients logos */
.client-logo {
    opacity: .7;
    transition: all .3s ease;
    max-height: 150px;
    filter: grayscale(100%);
    border-radius: 10px;
    padding: 10px;
}

.client-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* Testimonials */
.testimonials-section .card {
    border: 1px solid var(--gray-200);
}

/* Contact form */
.btn-gold {
    background: #000080;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: #0000a0;
    transform: translateY(-2px);
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #000033 0%, #000066 100%);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #000080, transparent);
}

.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 128, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h5, .footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after, .footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #000080;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    transform: translateX(-5px);
    text-decoration: none;
}

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
    padding-right: 1rem;
    position: relative;
}

.footer .list-unstyled li::before {
    content: '◀';
    position: absolute;
    right: 0;
    color: #ffffff;
    font-size: 0.6rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer .list-unstyled li:hover::before {
    opacity: 1;
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.footer .social-links a:hover {
    background: #000080;
    transform: translateY(-3px) translateX(0);
    box-shadow: 0 5px 15px rgba(0, 0, 128, 0.3);
}

.footer .contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.footer .contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.footer .contact-item i {
    color: #000080;
    margin-left: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

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

.footer-bottom small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width:768px) {
    .project-card img {
        height: 200px
    }
}

.client-logo {
    height: 150px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin: 0 0 20px 50px;
}

.client-logo:hover {
    opacity: 1;
}

.bg-n{
    background: var(--gray-50);
}

.why-choose-us .icon-box {
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
}

.why-choose-us .icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    border-color: var(--blue-light);
}

.why-choose-us h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
}

.why-choose-us p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

/* تحسينات إضافية للتصميم */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.navbar-brand strong {
    color: var(--brand-dark);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: var(--brand-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--blue-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--blue-primary);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    color: var(--brand-dark);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--blue-primary);
    border-radius: 2px;
}

/* Section header responsive */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
}

/* تأثيرات الحركة للمشاريع */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* Contact form RTL fix */
.form-control {
    text-align: right;
    direction: rtl;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 12px 15px;
}

.form-control::placeholder {
    text-align: right;
    direction: rtl;
}

.form-control:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* تأثيرات التمرير */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* تحسين الأزرار */
.btn-link {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.btn-link::after {
    content: '←';
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn-link:hover {
    color: var(--blue-secondary);
}

.btn-link:hover::after {
    transform: translateX(-5px);
}

/* تحسين قسم العملاء */
.clients-section {
    background: var(--gray-50);
    padding: 3rem 0;
    border-radius: 15px;
    margin: 2rem 0;
}

.clients-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: var(--brand-dark);
}nts-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-red-blue);
  border-radius: 2px;
}


/* Back to Top Button - Fixed */
#backToTop {
    bottom: 30px !important;
    left: 30px !important;
    z-index: 1000 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #000080, #0000a0) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 128, 0.4) !important;
    transition: all 0.3s ease !important;
}

#backToTop:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 128, 0.6) !important;
    background: linear-gradient(135deg, #0000a0, #0000c0) !important;
}

#backToTop i {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: white !important;
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 20px !important;
        left: 20px !important;
        width: 45px !important;
        height: 45px !important;
    }
}


/* View More Card */
.view-more-card {
    transition: all 0.3s ease;
}

.view-more-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 128, 0.5);
}

.view-more-card i {
    transition: transform 0.3s ease;
}

.view-more-card:hover i {
    transform: scale(1.2);
}
