﻿@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

:root {
    --primary: #14b8a6;
    --primary-light: #5eead4;
    --primary-soft: #99f6e4;
    --primary-dark: #0f766e;
    --primary-darker: #134e4a;
    /* Accent Colors */
    --accent-teal: #2dd4bf;
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    /* Neutral Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-soft: linear-gradient(135deg, #d1fae5 0%, #ccfbf1 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(20, 184, 166, 0.3);
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Almarai', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-header {
    background: var(--gradient-primary);
    color: var(--bg-white);
    font-size: 14px;
    padding: 10px 0;
    font-weight: 500;
}

    .top-header i {
        margin-left: 8px;
        color: var(--bg-white);
    }

    .top-header a {
        color: var(--bg-white);
        transition: 0.3s;
    }

        .top-header a:hover {
            opacity: 0.8;
            transform: translateY(-2px);
        }

.custom-navbar {
    background: var(--bg-white) !important;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.nav-list {
    list-style: none;
    padding: 0;
}

    .nav-list a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 600;
        position: relative;
        padding: 8px 0;
        transition: color 0.3s ease;
    }

    .nav-list li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width 0.3s ease;
    }

    .nav-list li a:hover::after {
        width: 100%;
    }

    .nav-list li a:hover {
        color: var(--primary) !important;
    }

.container .nav-list li .btn-Login {
    display: inline-block !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .container .nav-list li .btn-Login:hover {
        background: var(--gradient-primary);
        color: var(--bg-white) !important;
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow);
    }



        .container .nav-list li .btn-Login:hover::after {
            width: 0%;
        }




.container-fluid .nav-list li .btn-Login {
    display: inline-block !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .container-fluid .nav-list li .btn-Login:hover {
        background: var(--gradient-primary);
        color: var(--bg-white) !important;
        transform: translateY(-2px);
        box-shadow: var(--shadow-glow);
    }



        .container-fluid .nav-list li .btn-Login:hover::after {
            width: 0%;
        }




.btn-icon-header {
    background-color: var(--bg-light);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-icon-header:hover {
        background: var(--gradient-primary);
        color: var(--bg-white) !important;
        transform: translateY(-2px);
    }

.logo {
    width: 140px !important;
    height: 55px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

    .logo:hover {
        transform: scale(1.05);
    }



@media (max-width: 991.98px) {
    .custom-navbar {
        padding: 10px 16px;
    }

    .nav-list.d-flex {
        gap: 8px !important;
    }

    .btn-icon-header {
        padding: 7px 12px;
        font-size: 13px;
        border-radius: var(--radius-full);
    }

    .container-fluid .nav-list li .btn-Login,
    .container .nav-list li .btn-Login {
        padding: 7px 14px !important;
        font-size: 13px;
    }

    .message-icon-header {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .container-fluid .nav-list li .profile-link,
    .container .nav-list li .profile-link {
        padding: 7px 13px !important;
        font-size: 13px !important;
    }

    .navbar-toggler {
        padding: 6px 10px;
        font-size: 18px;
        color: var(--primary-dark);
        background: rgba(20, 184, 166, 0.08);
        border-radius: var(--radius-md) !important;
        transition: background 0.3s ease, transform 0.2s ease;
    }

        .navbar-toggler:hover {
            background: var(--gradient-primary);
            color: white;
            transform: scale(1.05);
        }
}

@media (max-width: 576px) {
    .logo {
        width: 110px !important;
        height: 40px !important;
    }

    .nav-list li {
        margin-left: 1px !important;
    }

    .custom-navbar {
        padding: 8px 12px;
    }

    .nav-list.d-flex {
        gap: 5px !important;
    }

    .btn-icon-header {
        padding: 6px 10px;
        font-size: 12px;
    }

    .container-fluid .nav-list li .btn-Login,
    .container .nav-list li .btn-Login {
        padding: 6px 11px !important;
        font-size: 12px;
    }

    .message-icon-header {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .message-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }

    .navbar-toggler {
        padding: 5px 9px;
        font-size: 16px;
    }

    .container-fluid .nav-list li .profile-link,
    .container .nav-list li .profile-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}


.offcanvas {
    width: 300px;
    background: var(--bg-white);
}

    .offcanvas .nav-list {
        gap: 30px !important;
    }

        .offcanvas .nav-list a {
            font-size: 18px;
            color: var(--text-dark);
        }

.offcanvas-title {
    color: var(--primary-dark) !important;
    font-weight: 700;
}









.container .nav-list li.profile-dropdown,
.container-fluid .nav-list li.profile-dropdown {
    position: relative;
}

.container .nav-list li .profile-link,
.container-fluid .nav-list li .profile-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-dark);
    background: rgba(20, 184, 166, 0.08);
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

    .container .nav-list li .profile-link i,
    .container-fluid .nav-list li .profile-link i {
        font-size: 15px;
    }

    .container .nav-list li .profile-link:hover,
    .container-fluid .nav-list li .profile-link:hover,
    .container .nav-list li.profile-dropdown.show .profile-link,
    .container-fluid .nav-list li.profile-dropdown.show .profile-link {
        color: white !important;
        background: var(--gradient-primary);
        box-shadow: var(--shadow-glow);
    }

    .container .nav-list li .profile-link::after,
    .container-fluid .nav-list li .profile-link::after {
        display: none !important;
    }

.container .nav-list li .profile-menu,
.container-fluid .nav-list li .profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: -50px;
    z-index: 1060;
    min-width: 220px;
    max-width: calc(100vw - 24px);
    padding: 8px;
    background: var(--bg-white);
    border: none;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    animation: dropdownFade 0.25s ease;
}

    .container .nav-list li .profile-menu .dropdown-item,
    .container-fluid .nav-list li .profile-menu .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 10px;
        font-weight: 500;
        font-size: 14px;
        color: var(--primary-dark);
        transition: background 0.25s ease, color 0.25s ease;
    }

        .container .nav-list li .profile-menu .dropdown-item i,
        .container-fluid .nav-list li .profile-menu .dropdown-item i {
            font-size: 15px;
            color: var(--primary);
        }

        .container .nav-list li .profile-menu .dropdown-item:hover,
        .container-fluid .nav-list li .profile-menu .dropdown-item:hover {
            background: rgba(20, 184, 166, 0.12);
            color: var(--primary);
        }


    .container .nav-list li .profile-menu .logout-btn,
    .container-fluid .nav-list li .profile-menu .logout-btn {
        width: 100%;
        background: none;
        border: none;
        text-align: left;
        color: #dc2626;
    }

        .container .nav-list li .profile-menu .logout-btn i,
        .container-fluid .nav-list li .profile-menu .logout-btn i {
            color: #dc2626;
        }

        .container .nav-list li .profile-menu .logout-btn:hover,
        .container-fluid .nav-list li .profile-menu .logout-btn:hover {
            background: rgba(220, 38, 38, 0.1);
        }


@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}






.message-icon-header {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.08);
    border-radius: 50%;
    color: var(--primary-dark);
    font-size: 18px;
    transition: all 0.3s ease;
}

    .message-icon-header::after {
        display: none !important;
    }

    .message-icon-header:hover {
        background: var(--gradient-primary);
        color: white !important;
        transform: translateY(-2px) scale(1.05);
        box-shadow: var(--shadow-glow);
    }

    .message-icon-header i {
        color: inherit;
        transition: transform 0.3s ease, color 0.3s ease;
    }

.nav-list li .message-icon-header:hover i {
    color: #fff;
    transform: rotate(-8deg) scale(1.1);
}



.message-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: badgePulse 1.8s infinite;
}


@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}



.cart-icon-header {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.08);
    border-radius: 50%;
    color: var(--primary-dark);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .cart-icon-header::after {
        display: none !important;
    }

    .cart-icon-header:hover {
        background: var(--gradient-primary);
        color: white !important;
        transform: translateY(-2px) scale(1.05);
        box-shadow: var(--shadow-glow);
    }

    .cart-icon-header i {
        color: inherit;
        transition: transform 0.3s ease, color 0.3s ease;
    }

.nav-list li .cart-icon-header:hover i {
    color: #fff;
    transform: rotate(-8deg) scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: badgePulse 1.8s infinite;
}

/* انميشن bounce عند إضافة منتج */
@keyframes cartBounce {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3) rotate(-10deg);
    }

    50% {
        transform: scale(0.9) rotate(6deg);
    }

    75% {
        transform: scale(1.15) rotate(-4deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.cart-icon-header.item-added i {
    animation: cartBounce 0.5s ease forwards;
}




/* ─── Messages Dropdown ─── */
#messagesDropdown {
    min-width: 340px;
    max-width: 340px;
    max-height: 480px;
    overflow-y: auto;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    background: var(--bg-white);
    animation: dropdownFade 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-soft) transparent;
    right: -150px !important;
    
}

    #messagesDropdown::-webkit-scrollbar {
        width: 4px;
    }

    #messagesDropdown::-webkit-scrollbar-thumb {
        background: var(--primary-soft);
        border-radius: var(--radius-full);
    }

    /* Header قسم الرسائل والإشعارات */
    #messagesDropdown .dropdown-header {
        font-family: 'Almarai', sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-gray);
        padding: 12px 16px 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* عنوان الـ Dropdown */
.messages-dropdown-title {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 16px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* عناصر الرسائل والإشعارات */
#messagesDropdown .dropdown-item {
    padding: 10px 16px;
    border-radius: 0;
    transition: background 0.2s ease;
    color: var(--text-dark);
    font-size: 13.5px;
    border-bottom: 1px solid rgba(20, 184, 166, 0.06);
}

    #messagesDropdown .dropdown-item:hover {
        background: rgba(20, 184, 166, 0.07);
        color: var(--primary-dark);
    }

        #messagesDropdown .dropdown-item:hover i {
            transform: scale(1.15);
        }

    #messagesDropdown .dropdown-item i {
        transition: transform 0.2s ease;
        font-size: 15px;
    }

/* نص الرسالة */
#messagesDropdown .msg-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

/* تاريخ الرسالة */
#messagesDropdown .msg-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* الفاصل */
#messagesDropdown .dropdown-divider {
    margin: 4px 0;
    border-color: rgba(20, 184, 166, 0.1);
}

/* زر عرض الكل */
.dropdown-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(20, 184, 166, 0.05);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: background 0.2s ease, color 0.2s ease;
}

    .dropdown-view-all:hover {
        background: var(--gradient-primary);
        color: white !important;
    }

        .dropdown-view-all:hover i,
        .dropdown-view-all:hover  span{
            color: white !important;
        }


/* حالة فارغة */
.dropdown-empty {
    text-align: center;
    padding: 20px 16px;
    color: var(--text-light);
    font-size: 13px;
}

    .dropdown-empty i {
        font-size: 28px;
        color: var(--primary-soft);
        margin-bottom: 8px;
        display: block;
    }

@media (max-width: 991.98px) {
    #messagesDropdown {
        min-width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    #messagesDropdown {
        min-width: 280px;
        max-width: 280px;
    }
}



































/* ================= HERO SECTION ================= */
.hero-section {
    padding: 140px 0 100px;
    background: radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 50%), radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%), linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 50%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -30%;
        right: -15%;
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 65%);
        border-radius: 50%;
        animation: float-orb 25s ease-in-out infinite;
        filter: blur(40px);
    }

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -40%;
        left: -20%;
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        animation: float-orb 30s ease-in-out infinite reverse;
        filter: blur(50px);
    }

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.hero-section h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 28px;
    color: var(--text-dark);
    line-height: 1.15;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section p {
    font-size: 1.35rem;
    color: var(--text-gray);
    margin-bottom: 36px;
    line-height: 1.9;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-actions {
    margin-top: 44px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn-main {
    background: var(--gradient-primary);
    color: var(--bg-white);
    padding: 18px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

    .btn-main::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .btn-main:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-main:hover {
        transform: translateY(-6px) scale(1.05);
        box-shadow: 0 20px 50px rgba(20, 184, 166, 0.4), 0 0 40px rgba(20, 184, 166, 0.3);
        color: var(--bg-white);
    }

.btn-outline {
    border: 2px solid var(--primary);
    padding: 16px 40px;
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
    background: var(--bg-white);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

    .btn-outline::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient-primary);
        transition: left 0.5s ease;
        z-index: -1;
    }

    .btn-outline:hover::before {
        left: 0;
    }

    .btn-outline:hover {
        color: var(--bg-white);
        border-color: transparent;
        transform: translateY(-6px) scale(1.05);
        box-shadow: 0 15px 40px rgba(20, 184, 166, 0.3);
    }

.hero-stats {
    margin-top: 60px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(20, 184, 166, 0.1);
    position: relative;
    overflow: hidden;
}

    .stat-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--gradient-primary);
        transform: scaleY(0);
        transition: transform 0.4s ease;
    }

    .stat-item:hover::before {
        transform: scaleY(1);
    }

    .stat-item:hover {
        transform: translateY(-6px) translateX(4px);
        box-shadow: 0 15px 45px rgba(20, 184, 166, 0.2);
    }

    .stat-item i {
        font-size: 2.2rem;
        color: var(--primary);
        transition: all 0.4s ease;
    }

    .stat-item:hover i {
        transform: scale(1.2) rotate(10deg);
    }

    .stat-item span strong {
        font-size: 1.6rem;
        color: var(--primary-dark);
        display: block;
        font-weight: 800;
        transition: all 0.3s ease;
    }

    .stat-item:hover span strong {
        color: var(--primary);
        transform: scale(1.1);
    }

    .stat-item span {
        color: var(--text-gray);
        font-size: 1rem;
    }

.heart-beat {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 20%, 40%, 60%, 100% {
        transform: scale(1);
    }

    20%, 60% {
        transform: scale(1.15);
    }
}



.btn-close {
    background-color:white !important; 
    border-radius: var(--radius-md) !important;
    width: 36px;
    height: 36px;
    padding: 0;
    opacity: 1;
    transition: all 0.3s ease;
}

  
    .btn-close:hover {
        background-color: var(--primary-light) !important; 
        transform: translateY(-2px);
    }

   
    .btn-close::before,
    .btn-close::after {
        background-color: var(--primary) !important; 
        content: '' !important;
        width: 2px;
        height: 20px;
    }










/* ================= FOOTER ================= */
.footer-pro {
    background: var(--gradient-dark);
    color: #cbd5e1;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

    .footer-pro::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 50%);
        z-index: 0;
    }

.footer-grid {
    row-gap: 50px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    width: 160px;
    margin-bottom: 20px;
    object-fit:cover;
}

.footer-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.footer-stats {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

    .footer-stats .stat-item {
        background: rgba(255, 255, 255, 0.05);
        padding: 16px 20px;
        border-radius: var(--radius-lg);
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid rgba(20, 184, 166, 0.2);
    }

        .footer-stats .stat-item:hover {
            background: rgba(20, 184, 166, 0.1);
            transform: translateY(-4px);
        }

    .footer-stats .stat-icon {
        font-size: 24px;
        color: var(--primary-light);
        margin-bottom: 8px;
    }

    .footer-stats strong {
        font-size: 1.5rem;
        color: var(--primary-light);
        display: block;
        font-weight: 800;
    }

    .footer-stats span {
        font-size: 0.9rem;
        color: #cbd5e1;
    }

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--bg-white);
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .footer-links a:hover {
        color: var(--primary-light);
        padding-right: 8px;
    }

.icon-link {
    color: var(--primary-light);
    font-size: 0.7rem;
}

.footer-map h4 {
    color: var(--bg-white);
    margin-bottom: 16px;
    font-weight: 700;
}

.map-box {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(20, 184, 166, 0.2);
    transition: transform 0.3s ease;
}

    .map-box:hover {
        transform: scale(1.02);
    }

    .map-box iframe {
        width: 100%;
        height: 100%;
        border: 0;
        filter: grayscale(0.3) contrast(1.1);
    }

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 32px;
}

    .footer-contact p {
        margin: 0;
        font-size: 0.95rem;
        color: #cbd5e1;
    }

.footer-contact-title {
    color: var(--primary-light);
    font-weight: 700;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(20, 184, 166, 0.3), transparent);
    margin: 40px 0 30px;
}

.footer-bottom {
    font-size: 0.95rem;
    color: #cbd5e1;
    text-align: center;
}

.footer-social {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #cbd5e1;
        font-size: 18px;
        transition: all 0.3s ease;
        border: 1px solid rgba(20, 184, 166, 0.2);
        position: relative;
        z-index: 5;
        pointer-events: auto;
    }

        .footer-social a:hover {
            background: var(--gradient-primary);
            color: var(--bg-white);
            transform: translateY(-4px) rotate(10deg);
            box-shadow: var(--shadow-glow);
        }

/* ================= FOOTER ICON ANIMATIONS ================= */
.footer-stats .heartbeat-icon .stat-icon {
    animation: footer-heartbeat 1.3s ease-in-out infinite;
}

@keyframes footer-heartbeat {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    }

    10% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.6));
    }

    20% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    }

    30% {
        transform: scale(1.25);
        filter: drop-shadow(0 0 18px rgba(239, 68, 68, 0.7));
    }

    40% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    }
}

.footer-stats .pulse-icon .stat-icon {
    animation: footer-pulse 2.5s ease-in-out infinite;
}

@keyframes footer-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
        filter: drop-shadow(0 0 10px rgba(94, 234, 212, 0.5));
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(94, 234, 212, 0.8));
    }
}

.footer-stats .glow-icon .stat-icon {
    animation: footer-glow 3s ease-in-out infinite;
}

@keyframes footer-glow {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(94, 234, 212, 0.9));
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-visual {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        font-size: 13px;
        padding: 10px 16px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .ecg-ultra-content h1 {
        font-size: 2.5rem;
    }

    .ecg-ultra-content p {
        font-size: 1.1rem;
    }

    .testimonials-modern h2 {
        font-size: 2.2rem;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


button, a, .card, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}






/* ===== Main Scrollbar ===== */

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* خلفية طبيعية فاتحة */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    border-radius: 12px;
    border: 3px solid #f1f5f9;
    box-shadow: inset 0 0 8px rgba(255,255,255,.45);
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
    }

* {
    scrollbar-width: auto;
    scrollbar-color: #14b8a6 #f1f5f9;
}


.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(6,182,212,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .35s ease;
    z-index: 999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(6,182,212,.45);
    }
        .back-to-top:hover i {
            animation: bounce .6s;
        }

@keyframes bounce {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}





/* ================= AI ASSISTANT ================= */
.ai-assistant {
    position: fixed;
    bottom: 100px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    color: #fff;
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(6,182,212,.35);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    z-index: 9999;
    transform: translateY(0);
    animation: floatUpDown 3s ease-in-out infinite, glowPulse 2.5s ease-in-out infinite;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .ai-assistant.show {
        opacity: 1;
        visibility: visible;
    }


    .ai-assistant:hover {
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 16px 40px rgba(6,182,212,.5);
    }

.ai-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: rotateIcon 4s linear infinite;
}

    .ai-icon i {
        font-size: 18px;
        color: #fff;
        animation: bounceIcon 1.5s ease-in-out infinite;
    }

/* Float animation */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Glow pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 12px 30px rgba(6,182,212,.35);
    }

    50% {
        box-shadow: 0 20px 50px rgba(6,182,212,.6);
    }
}

/* Icon rotation */
@keyframes rotateIcon {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Icon bounce */
@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ================= Responsive ================= */
@media (max-width: 1200px) {
    .ai-assistant {
        bottom: 80px;
        right: 30px;
        padding: 12px 18px;
        font-size: 13px;
    }

    .ai-icon {
        width: 32px;
        height: 32px;
    }

        .ai-icon i {
            font-size: 16px;
        }
}

@media (max-width: 768px) {
    .ai-assistant {
        bottom: 60px;
        right: 20px;
        padding: 10px 16px;
        font-size: 12px;
        gap: 8px;
    }

    .ai-icon {
        width: 28px;
        height: 28px;
    }

        .ai-icon i {
            font-size: 14px;
        }
}

@media (max-width: 480px) {
    .ai-assistant {
        bottom: 40px;
        right: 16px;
        padding: 8px 14px;
        font-size: 11px;
        gap: 6px;
    }

    .ai-icon {
        width: 24px;
        height: 24px;
    }

        .ai-icon i {
            font-size: 12px;
        }
}
