/* =========================
   PREMIUM EFFECTS & ENHANCEMENTS
   Delta-Imo V2 - Advanced Styling
========================= */

/* =========================
   CUSTOM SCROLLBAR
========================= */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid var(--bg-light);
    transition: var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-dark);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

/* =========================
   SELECTION STYLING
========================= */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* =========================
   LOADING ANIMATION
========================= */
@keyframes shimmerLoad {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton-loader {
    animation: shimmerLoad 2s infinite linear;
    background: linear-gradient(90deg,
            var(--bg-light) 0%,
            rgba(14, 109, 189, 0.08) 50%,
            var(--bg-light) 100%);
    background-size: 1000px 100%;
}

/* =========================
   PARALLAX EFFECTS
========================= */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
}

/* =========================
   GLASS MORPHISM CARDS
========================= */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
}

.glass-card-dark {
    background: rgba(11, 31, 61, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* =========================
   PREMIUM BADGES
========================= */
.premium-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--glow-primary);
    overflow: hidden;
}

.premium-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: rotate(45deg);
    animation: badgeShine 3s infinite;
}

@keyframes badgeShine {

    0%,
    100% {
        transform: translateX(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* =========================
   SOCIAL ICONS ENHANCED
========================= */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--secondary-color);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.social-icon i {
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--primary-color);
    color: white;
}

.social-icon:hover::before {
    opacity: 1;
}

/* =========================
   STATISTICS COUNTER
========================= */
.stat-box {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #17161600;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* =========================
   IMAGE HOVER EFFECTS
========================= */
.img-hover-zoom {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.img-hover-zoom img {
    transition: transform var(--transition-slow);
}

.img-hover-zoom:hover img {
    transform: scale(1.1) rotate(2deg);
}

.img-overlay-gradient {
    position: relative;
    overflow: hidden;
}

.img-overlay-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(11, 31, 61, 0.8) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.img-overlay-gradient:hover::after {
    opacity: 1;
}

/* =========================
   PROGRESS BARS
========================= */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* =========================
   TOOLTIP STYLES
========================= */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--secondary-color);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================
   RIPPLE EFFECT
========================= */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* =========================
   PAGINATION STYLES
========================= */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.pagination-item {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: white;
    border: 2px solid rgba(14, 109, 189, 0.15);
    color: var(--secondary-color);
    font-weight: 700;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.pagination-item:hover,
.pagination-item.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =========================
   BREADCRUMB
========================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

/* =========================
   PRICING TABLES
========================= */
.pricing-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid rgba(14, 109, 189, 0.08);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'الأكثر شعبية';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient-accent);
    color: var(--secondary-color);
    padding: 0.4rem 3rem;
    font-size: 0.8rem;
    font-weight: 800;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1.5rem 0;
}

/* =========================
   ACCORDION STYLES
========================= */
.accordion-item {
    background: white;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    transition: var(--transition-normal);
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-icon {
    transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =========================
   BACK TO TOP BUTTON
========================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.show,
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

/* =========================
   RESPONSIVE ENHANCEMENTS
========================= */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        left: 20px;
    }
}