/* Why Choose Us Enhanced Section Styles */

/* Background gradient for light and dark modes */
.why-choose-bg-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    transition: background 0.3s ease;
}

/* Dark mode styles */
html[data-theme='dark'] .why-choose-bg-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
}
.why-choose-us-section-enhanced {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    overflow: hidden;
    min-height: 100vh;
    transition: background 0.3s ease;
}

/* Dark mode styles for why-choose-us-section-enhanced */
html[data-theme='dark'] .why-choose-us-section-enhanced {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
}

.why-choose-us-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(10px) translateY(10px); }
    75% { transform: translateX(-5px) translateY(5px); }
}

.background-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.background-particles::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    box-shadow:
        100px 200px 0 rgba(59, 130, 246, 0.4),
        200px 100px 0 rgba(147, 51, 234, 0.4),
        300px 300px 0 rgba(16, 185, 129, 0.4),
        400px 150px 0 rgba(59, 130, 246, 0.3),
        500px 250px 0 rgba(147, 51, 234, 0.3),
        150px 350px 0 rgba(16, 185, 129, 0.3),
        350px 50px 0 rgba(59, 130, 246, 0.2),
        450px 350px 0 rgba(147, 51, 234, 0.2);
    animation: particleFloat 25s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(59, 130, 246, 0.03) 0%,
        transparent 25%,
        rgba(147, 51, 234, 0.03) 50%,
        transparent 75%,
        rgba(16, 185, 129, 0.03) 100%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.why-choose-header {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

.why-choose-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.2;
    animation: titleGlow 4s ease-in-out infinite;
}

/* Dark mode styles for why-choose-header h2 */
html[data-theme='dark'] .why-choose-header h2 {
    color: #f1f5f9;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2)); }
}

.why-choose-header p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.why-choose-stats {
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
}

.why-choose-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.why-choose-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Dark mode styles for why-choose-card */
html[data-theme='dark'] .why-choose-card {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(147, 51, 234, 0.1) 50%,
        rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.why-choose-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #10b981, #3b82f6);
    border-radius: 26px;
    opacity: 0;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
    transition: opacity 0.5s ease;
}

.why-choose-card:hover .card-glow {
    opacity: 1;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.border-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.why-choose-card:hover .border-animation {
    opacity: 1;
    animation: borderSweep 2s ease-in-out infinite;
}

@keyframes borderSweep {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.why-choose-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.5s ease;
}

/* Dark mode styles for icon container */
html[data-theme='dark'] .icon-container {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3)) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.icon-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.why-choose-card:hover .icon-background {
    opacity: 0.2;
}

.icon-pulse {
    position: absolute;
    top: 0% !important;
    left: 0% !important;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    transform: translate(-50%, -50%);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.icon-container i {
    font-size: 2rem;
    color: #3b82f6;
    z-index: 2;
    transition: all 0.5s ease;
}

.why-choose-card:hover .icon-container i {
    color: #1d4ed8;
    transform: scale(1.1);
}

/* Dark mode styles for icon */
html[data-theme='dark'] .icon-container i {
    color: #60a5fa !important;
}

html[data-theme='dark'] .why-choose-card:hover .icon-container i {
    color: #93c5fd !important;
}

.why-choose-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.why-choose-card:hover h4 {
    color: #3b82f6;
}

/* Dark mode styles for card title */
html[data-theme='dark'] .why-choose-card h4 {
    color: #f1f5f9 !important;
}

html[data-theme='dark'] .why-choose-card:hover h4 {
    color: #60a5fa !important;
}

.why-choose-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.why-choose-card:hover p {
    color: #475569;
}

/* Dark mode styles for card description */
html[data-theme='dark'] .why-choose-card p {
    color: #cbd5e1 !important;
}

html[data-theme='dark'] .why-choose-card:hover p {
    color: #e2e8f0 !important;
}

.feature-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.why-choose-card:hover .feature-badge {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #1d4ed8;
}

/* Dark mode styles for feature badge */
html[data-theme='dark'] .feature-badge {
    background: rgba(59, 130, 246, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}

html[data-theme='dark'] .why-choose-card:hover .feature-badge {
    background: rgba(59, 130, 246, 0.3) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: #dbeafe !important;
}

.why-choose-quote-section {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(15px);
    margin-top: 40px;
}

.why-choose-quote-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #10b981, #3b82f6);
    border-radius: 31px;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.quote-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 30px;
    opacity: 0.8;
}

.why-choose-quote {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.quote-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3b82f6;
}

.author-title {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .why-choose-us-section-enhanced {
        padding: 80px 0;
    }

    .why-choose-header h2 {
        font-size: 2.5rem;
    }

    .why-choose-header p {
        font-size: 1.1rem;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-choose-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .why-choose-quote {
        font-size: 1.25rem;
    }

    .why-choose-quote-section {
        padding: 40px 20px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .why-choose-header h2 {
        font-size: 2rem;
    }

    .icon-container {
        width: 60px;
        height: 60px;
    }

    .icon-container i {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Animation delays for staggered effects */
.why-choose-card:nth-child(1) { animation-delay: 0.1s; }
.why-choose-card:nth-child(2) { animation-delay: 0.2s; }
.why-choose-card:nth-child(3) { animation-delay: 0.3s; }
.why-choose-card:nth-child(4) { animation-delay: 0.4s; }
.why-choose-card:nth-child(5) { animation-delay: 0.5s; }
.why-choose-card:nth-child(6) { animation-delay: 0.6s; }

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-choose-card,
.stat-item {
    animation: fadeInUp 0.8s ease-out both;
}

/* Additional dark mode enhancements */
.dark .why-choose-us-section-enhanced {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
}

.dark .stat-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .why-choose-quote-section {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.05);
}
