@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2c5ba9; /* أزرق ملكي فاتح واحترافي */
    --secondary-color: #ff9f1c; /* برتقالي مشرق وجذاب */
    --accent-color: #4cc9f0; /* أزرق سماوي للتفاصيل */
    --text-dark: #2b2d42;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa; /* خلفية فاتحة جداً مريحة للعين */
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

/* الشريط العلوي المحسن */
.top-bar {
    background: linear-gradient(90deg, var(--primary-color), #4a90e2);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.top-bar a {
    color: white;
    transition: 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

/* القائمة العصرية */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 26px;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1.2rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* الأزرار */
.btn-rounded {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    transition: 0.4s;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(44, 91, 169, 0.3);
}

.btn-primary:hover {
    background: #1e3f7a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
}

/* الكروت المحسنة */
.card-service {
    border: none;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card-service:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.card-service:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
}

/* المذيل الأنيق */
footer {
    background: #1a1c20;
    color: #e9ecef;
    padding-top: 80px;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

/* قسم الفورم */
.form-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
}

.form-control {
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    background-color: #fdfdfd;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(44, 91, 169, 0.1);
    border-color: var(--primary-color);
}

/* أيقونة واتساب العائمة */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-float i {
    margin-top: 0;
}

/* تأثير النبض للأيقونة */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.7;
    z-index: -1;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* تحسين روابط التواصل في الهيدر */
.contact-link-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.contact-link-header:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* تحسين القوائم المنبثقة */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 15px;
    margin-top: 10px;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--secondary-color);
}

.nav-item.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    width: 25px;
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 16px;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* سهم القائمة */
.nav-link.dropdown-toggle::after {
    transition: 0.3s;
}

.nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}