/* ===================================
   WHY CHOOSE - MODERN ANIMATED SECTION
   =================================== */

.why-choose-modern {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #fefce8 50%, #ffffff 100%);
    overflow: hidden;
}

/* Animated Background Elements */
.why-bg-animations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatDot 15s ease-in-out infinite;
}

.dot-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.dot-2 {
    top: 20%;
    right: 15%;
    animation-delay: -5s;
}

.dot-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

.dot-4 {
    bottom: 15%;
    right: 25%;
    animation-delay: -7s;
}

@keyframes floatDot {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    25% {
        transform: translate(30px, -40px);
        opacity: 0.6;
    }

    50% {
        transform: translate(-20px, -80px);
        opacity: 0.4;
    }

    75% {
        transform: translate(-30px, -40px);
        opacity: 0.6;
    }
}

.wave-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            #fbbf24 50%,
            transparent 100%);
    opacity: 0.2;
    animation: waveLine 5s ease-in-out infinite;
}

.line-1 {
    top: 25%;
    animation-delay: 0s;
}

.line-2 {
    bottom: 35%;
    animation-delay: -2.5s;
}

@keyframes waveLine {

    0%,
    100% {
        transform: translateX(-100%) scaleX(0.5);
        opacity: 0;
    }

    50% {
        transform: translateX(0) scaleX(1);
        opacity: 0.2;
    }
}

/* Section Header */
.section-header-animated {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.8s ease 0.3s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.header-badge svg {
    width: 16px;
    height: 16px;
    stroke: #92400e;
    animation: rotateStar 4s ease-in-out infinite;
}

@keyframes rotateStar {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.why-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    animation: slideInLeft 0.8s ease 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.highlight-yellow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards Grid */
.why-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Individual Card */
.why-card {
    position: relative;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.6s ease calc(0.6s + var(--index) * 0.1s) both;
    overflow: hidden;
}

.why-card[data-index="1"] {
    --index: 0;
}

.why-card[data-index="2"] {
    --index: 1;
}

.why-card[data-index="3"] {
    --index: 2;
}

.why-card[data-index="4"] {
    --index: 3;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.why-card:hover .card-glow {
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Card Icon */
.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.why-card:hover .card-icon {
    transform: translateY(-10px) rotate(10deg) scale(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

/* Card Content */
.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.why-card p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Card Accent Line */
.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

.why-card:hover .card-accent {
    width: 100%;
}

/* Hover Effects */
.why-card:hover {
    transform: translateY(-10px);
    border-color: #fbbf24;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 2px rgba(251, 191, 36, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .why-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .why-choose-modern {
        padding: 5rem 0;
    }

    .why-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-title {
        font-size: 2rem;
    }

    .why-card {
        padding: 2rem 1.5rem;
    }

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

    .card-icon svg {
        width: 28px;
        height: 28px;
    }

    .floating-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .why-title {
        font-size: 1.75rem;
    }

    .section-header-animated {
        margin-bottom: 3rem;
    }

    .why-card {
        padding: 1.75rem 1.25rem;
    }
}