/* Why Choose Us Section - React-free vanilla CSS */

.why-choose-us-section {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(to bottom right, #f3f4f6, #faf5ff, #fef3f2);
    overflow: hidden;
    min-height: 400px;
}

@media (min-width: 768px) {
    .why-choose-us-section {
        padding: 6rem 0;
    }
}

/* Background gradient decoration */
.why-choose-us-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, #f3f4f6, #faf5ff, #fef3f2);
    z-index: 0;
}

.why-choose-us-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .why-choose-us-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .why-choose-us-container {
        padding: 0 2rem;
    }
}

/* Header section */
.why-choose-us-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-choose-us-title {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    background: linear-gradient(to right, #9333ea, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.why-choose-us-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-us-subtitle {
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s;
    will-change: opacity, transform;
}

.why-choose-us-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-us-subtitle .highlight {
    color: #9333ea;
    font-weight: 600;
}

/* Features grid */
.why-choose-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .why-choose-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-choose-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Feature card */
.why-choose-us-card {
    position: relative;
    padding: 1.5rem;
    height: 100%;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

/* Card background gradients */
.why-choose-us-card.bg-gradient-purple-pink {
    background: linear-gradient(to bottom right, #faf5ff, #fdf2f8);
}

.why-choose-us-card.bg-gradient-blue-cyan {
    background: linear-gradient(to bottom right, #eff6ff, #ecfeff);
}

.why-choose-us-card.bg-gradient-orange-red {
    background: linear-gradient(to bottom right, #fff7ed, #fef2f2);
}

.why-choose-us-card.bg-gradient-green-emerald {
    background: linear-gradient(to bottom right, #f0fdf4, #ecfdf5);
}

.why-choose-us-card.bg-gradient-yellow-orange {
    background: linear-gradient(to bottom right, #fefce8, #fff7ed);
}

.why-choose-us-card.bg-gradient-indigo-purple {
    background: linear-gradient(to bottom right, #eef2ff, #faf5ff);
}

.why-choose-us-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(233, 213, 255, 0.8);
}

/* Card background glow effect */
.why-choose-us-card-bg {
    position: absolute;
    inset: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

/* Card content */
.why-choose-us-card-content {
    position: relative;
    z-index: 10;
}

/* Icon container */
.why-choose-us-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.why-choose-us-card:hover .why-choose-us-icon-container {
    transform: scale(1.1);
}

.why-choose-us-icon {
    width: 2rem;
    height: 2rem;
    color: #ffffff;
    stroke: #ffffff;
    fill: none;
    stroke-width: 3;
}

/* Card title */
.why-choose-us-card-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.why-choose-us-card:hover .why-choose-us-card-title {
    color: #9333ea;
}

/* Card description */
.why-choose-us-card-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Decorative corner orb */
.why-choose-us-card-orb {
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    filter: blur(64px);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.why-choose-us-card:hover .why-choose-us-card-orb {
    opacity: 0.2;
}

/* Gradient definitions for icons */
.gradient-purple-pink {
    background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.gradient-blue-cyan {
    background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
}

.gradient-orange-red {
    background: linear-gradient(to bottom right, #f97316, #ef4444);
}

.gradient-green-emerald {
    background: linear-gradient(to bottom right, #22c55e, #10b981);
}

.gradient-yellow-orange {
    background: linear-gradient(to bottom right, #eab308, #f97316);
}

.gradient-indigo-purple {
    background: linear-gradient(to bottom right, #6366f1, #a855f7);
}

/* Gradient definitions for card backgrounds */
.bg-gradient-purple-pink {
    background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
}

.bg-gradient-blue-cyan {
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.15));
}

.bg-gradient-orange-red {
    background: linear-gradient(to bottom right, rgba(249, 115, 22, 0.15), rgba(239, 68, 68, 0.15));
}

.bg-gradient-green-emerald {
    background: linear-gradient(to bottom right, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
}

.bg-gradient-yellow-orange {
    background: linear-gradient(to bottom right, rgba(234, 179, 8, 0.15), rgba(249, 115, 22, 0.15));
}

.bg-gradient-indigo-purple {
    background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
}

/* Gradient definitions for orbs */
.orb-gradient-purple-pink {
    background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.orb-gradient-blue-cyan {
    background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
}

.orb-gradient-orange-red {
    background: linear-gradient(to bottom right, #f97316, #ef4444);
}

.orb-gradient-green-emerald {
    background: linear-gradient(to bottom right, #22c55e, #10b981);
}

.orb-gradient-yellow-orange {
    background: linear-gradient(to bottom right, #eab308, #f97316);
}

.orb-gradient-indigo-purple {
    background: linear-gradient(to bottom right, #6366f1, #a855f7);
}
