/**
 * Why Choose Us Section Styles
 */

/* Why Choose Us Section */
.why-choose-us-section {
    position: relative;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.why-choose-us-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(235, 55, 41, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(126, 20, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.why-choose-us-container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Header */
.why-choose-us-header {
    text-align: center;
    margin-bottom: 60px;
}

.why-choose-us-header .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.why-choose-us-header .section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Why Choose Us Grid */
.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Why Choose Item */
.why-choose-item {
    text-align: center;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-choose-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(235, 55, 41, 0.03) 0%, rgba(126, 20, 22, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.why-choose-item:hover {
    transform: translateY(-10px);
    border-color: #eb3729;
    box-shadow: 0 20px 40px rgba(235, 55, 41, 0.15);
}

.why-choose-item:hover::before {
    opacity: 1;
}

.why-choose-item:hover .why-choose-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.why-choose-item:hover .icon-background {
    transform: scale(1.2);
    opacity: 1;
}

/* Icon Wrapper */
.why-choose-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.why-choose-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    color: #eb3729;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.3s ease;
}

.why-choose-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.why-choose-item:hover .why-choose-icon svg {
    transform: scale(1.1);
}

.icon-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(235, 55, 41, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

/* Title */
.why-choose-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.why-choose-item:hover .why-choose-title {
    color: #eb3729;
}

/* Description */
.why-choose-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.why-choose-item:hover .why-choose-description {
    color: #333;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .why-choose-us-container {
        padding: 0 30px;
    }
    
    .why-choose-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .why-choose-us-section {
        padding: 60px 0;
    }
    
    .why-choose-us-container {
        padding: 0 20px;
    }
    
    .why-choose-us-header {
        margin-bottom: 40px;
    }
    
    .why-choose-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .why-choose-item {
        padding: 30px 25px;
    }
    
    .why-choose-icon {
        width: 70px;
        height: 70px;
    }
    
    .icon-background {
        width: 100px;
        height: 100px;
    }
    
    .why-choose-title {
        font-size: 1.2rem;
    }
    
    .why-choose-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .why-choose-us-section {
        padding: 40px 0;
    }
    
    .why-choose-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-choose-item {
        padding: 25px 20px;
    }
    
    .why-choose-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-background {
        width: 90px;
        height: 90px;
    }
    
    .why-choose-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .why-choose-description {
        font-size: 0.9rem;
    }
}

/* Animation on Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-choose-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Staggered animation delays are handled by data-animation-delay attribute */
.why-choose-item[data-animation-delay] {
    animation-delay: calc(var(--animation-delay, 0) * 1s);
}

