/* WHY SECTION */
.why {
    width: 100%;
    color: #fff;
    text-align: center;
}

/* Background wrapper with fixed ratio */
.why-bg {
    width: 100%;
    aspect-ratio: 1920 / 650;
    background-image: url('../image/why_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner padding + layout */
.why-inner {
    width: 100%;
    padding: 30px 8% 60px;
}

.why h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.why p {
    margin-top: 0;
}

/* Subtitle */
.why .subtitle {
    margin-bottom: 40px;
    font-size: 18px;
    opacity: 0.85;
}

/* Cards Grid */
.why-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* 5 Cards per row on desktop */
@media (min-width: 1100px) {
    .why-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Glassmorphic Card with Softer Shine */
.why-card {
    position: relative;
    padding: 40px 25px;
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.12);

    /* Softer outer glow */
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.05),
        0 0 25px rgba(0, 0, 0, 0.25);

    transition: 0.3s ease;
    overflow: hidden;
}

/* Shine border (unchanged but subtle due to lower base opacity) */
.why-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.20)
    );

    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;

    pointer-events: none;
    opacity: 0.55; /* slightly lower */
}

/* Hover: reduced glow + less blur */
.why-card:hover {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transform: translateY(-6px);

    /* Reduced glow compared to earlier */
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.08),
        0 0 35px rgba(0,0,0,0.30);
}

.why-card:hover::before {
    opacity: 0.75; /* mild increase on hover */
}

/* Icon */
.why-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Mobile: remove ratio */
@media (max-width: 1024px) {
    .why-bg {
        aspect-ratio: auto;
        padding: 80px 0;
    }
}



/* ICON STYLE */
.why-card .icon {
    font-size: 42px;
    margin-bottom: 18px;
    display: inline-block;

    transition: transform 0.55s cubic-bezier(.25,1,.30,1),
                filter 0.35s ease;
}

/* HOVER ANIMATION (Resend-style) */
.why-card:hover .icon {
    transform: translateY(-6px) scale(1.18) rotate(-3deg);
    filter: drop-shadow(0 4px 8px rgba(255,255,255,0.25));
}

/* OPTIONAL: Idle floating animation */
/* @keyframes floatIcon {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.why-card .icon {
    animation: floatIcon 4s ease-in-out infinite;
} */