@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
body {
    font-family: 'Cairo', sans-serif;
}
.notif-success,
.notif-error ,
.notif-info ,
.notif-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}
.bg-gradient-universal {
    background: linear-gradient(
        135deg,
        #4f46e5,
        #7c3aed,
        #9333ea,
        #c026d3,
        #db2777
    );
}
.hero-container{
    display: flex;
    align-items: center;
    gap: 2rem;
}
.heroTitle{
    font-size: 3rem;
    font-weight: 700;
    
}
.navbar-center{
    display: flex;
    align-items: center;
    gap: 1rem;
}
.loginForm{
    width: 600px;
}
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .navbar-center {
        display: none;
    }
    .heroTitle{
        font-size: 2rem;
        font-weight: 700;
    }
    .loginForm{
        width: 100%;
    }
}

/* ========== تأثيرات السكرول والأنيميشن ========== */
#interactive-map {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.titles {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
/* شريط تقدم السكرول */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    z-index: 9999;
    border-radius: 0 0 4px 0;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* تأثيرات العناصر عند السكرول */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* تأخيرات مختلفة للعناصر */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* تأثير hover للبطاقات */
.card-hover-effect {
    transition: all 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.2);
}

/* تأثير للروابط والأزرار */
.btn-glow:hover {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    transform: scale(1.02);
}

/* تحسين قسم Hero مع الخريطة */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}

.hero-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/26/Morocco_location_map.svg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* إضافة خط وهمي لمسار طنجة - الكويرة */
.hero-route-line {
    position: absolute;
    bottom: 15%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, #eab308, #f59e0b, transparent);
    z-index: 1;
    opacity: 0.4;
}

.hero-route-dots {
    position: absolute;
    bottom: 15%;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.hero-route-dots span {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    opacity: 0.7;
}

/* تغيير شفافية الهيدر عند السكرول */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

[data-theme="dark"] .header-scrolled {
    background-color: rgba(15, 23, 42, 0.95) !important;
}

/* تأثير العدادات */
.stat-value {
    transition: all 0.5s ease;
}

/* تأثير اهتزاز خفيف للأيقونات عند hover */
.icon-hover:hover svg {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

/* ========== زر الرجوع لأعلى الصفحة ========== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    font-size: 24px;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.scroll-top-btn:active {
    transform: translateY(0) scale(0.98);
}

/* تأثير pulse للزر عند الظهور */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.scroll-top-btn.show {
    animation: pulse-glow 0.5s ease-out;
}

/* ========== نظام الإشعارات (Toast Notifications) ========== */
.toast-notification {
    position: fixed;
    top: 30px;
    left: 30px;
    min-width: 320px;
    max-width: 450px;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border-right: 5px solid;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .toast-notification {
    background: rgba(30, 41, 59, 0.95);
    color: white;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-right-color: #10b981;
}

.toast-notification.error {
    border-right-color: #ef4444;
}

.toast-notification.info {
    border-right-color: #3b82f6;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-notification.success .toast-icon {
    background: #10b98120;
    color: #10b981;
}

.toast-notification.error .toast-icon {
    background: #ef444420;
    color: #ef4444;
}

.toast-notification.info .toast-icon {
    background: #3b82f620;
    color: #3b82f6;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 16px;
}

.toast-message {
    font-size: 13px;
    opacity: 0.8;
}

.toast-close {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 20px;
    line-height: 1;
}

.toast-close:hover {
    opacity: 1;
}

/* ========== تحسينات نموذج التواصل ========== */
.contact-form-card {
    transition: all 0.3s ease;
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.2);
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    outline: none;
}

/* تحميل الزر */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    display: none;
}

.btn-loading .loading-spinner {
    display: inline-block;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 640px) {
    .scroll-top-btn {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .toast-notification {
        left: 15px;
        right: 15px;
        min-width: auto;
        max-width: calc(100% - 30px);
    }
}

html {
    scroll-behavior: smooth;
}

/* تخصيص للبطاقات في وضع الدارك مود */
[data-theme="dark"] .bg-base-200 {
    background-color: #1e293b;
}

/* تأثير الكتابة للنص الرئيسي */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* تحسين مظهر الإحصائيات */
.stats {
    transition: all 0.3s ease;
}

.stats:hover {
    transform: scale(1.01);
}
