/**
 * Haneen Nemer - Why Choose Us Section Styles
 * Made With Love By HOSSAM ALZYOD - Mr.Server | https://hossam.net | i@hossam.net
 * Legendary Why Choose Us with Tiger Theme
 */

/* ===== Why Choose Us Section ===== */
.why-choose-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #0d0d0d 0%, var(--secondary-black) 50%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

/* Tiger pattern animated background */
.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(212, 175, 55, 0.02) 30px,
            rgba(212, 175, 55, 0.02) 60px
        );
    animation: tigerMove 20s linear infinite;
    pointer-events: none;
}

@keyframes tigerMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

/* Floating particles */
.why-choose-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(212, 175, 55, 0.2), transparent);
    background-size: 200% 200%;
    animation: particlesFloat 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particlesFloat {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 25% 75%, 70% 20%;
    }
}

/* Section Header */
.why-choose-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    position: relative;
    z-index: 10;
}

.why-choose-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--primary-gold);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.why-choose-title {
    font-size: 2.5rem;
    color: var(--text-white);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.why-choose-title-highlight {
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-bronze), var(--primary-gold-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.gold-line-center {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    position: relative;
    z-index: 10;
}

/* Stat Card */
.stat-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.8s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shine effect on hover */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: var(--transition-slow);
}

.stat-card:hover::before {
    left: 150%;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 175, 55, 0.3);
}

/* Stat Icon */
.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-bronze));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    transition: var(--transition-normal);
    position: relative;
    box-shadow:
        0 10px 30px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Rotating ring around icon */
.stat-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid transparent;
    border-top-color: var(--primary-gold);
    border-right-color: var(--primary-gold);
    border-radius: 50%;
    animation: ringRotate 3s linear infinite;
    opacity: 0;
    transition: var(--transition-normal);
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stat-card:hover .stat-icon::before {
    opacity: 1;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow:
        0 15px 40px rgba(212, 175, 55, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--secondary-black);
    transition: var(--transition-normal);
}

.stat-card:hover .stat-icon i {
    transform: scale(1.1);
}

/* Stat Info */
.stat-info {
    text-align: center;
}

.stat-info h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-fast);
}

.stat-card:hover .stat-info h3 {
    color: var(--primary-gold);
}

.stat-info p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Number badge (optional) */
.stat-number {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 35px;
    height: 35px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.stat-card:hover .stat-number {
    background: var(--primary-gold);
    color: var(--secondary-black);
    transform: rotate(360deg);
}

/* ===== Responsive Design ===== */
@media (min-width: 768px) {
    .why-choose-title {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .stat-icon {
        width: 70px;
        height: 70px;
    }

    .stat-icon i {
        font-size: 2rem;
    }

    .stat-info h3 {
        font-size: 1.25rem;
    }

    .stat-info p {
        font-size: 0.95rem;
    }
}
