/* Why Choose Us Premium Styles */
:root {
    --wcu-bg-dark: transparent;
    --wcu-card-bg: rgba(255, 255, 255, 0.02);
    --wcu-border: rgba(255, 255, 255, 0.06);
    --wcu-primary: #6366f1;
    --wcu-secondary: #8b5cf6;
    --wcu-text-main: #f8fafc;
    --wcu-text-sub: #94a3b8;
}

.wcu-section {
    position: relative;
    padding: 10rem 0;
    background-color: var(--wcu-bg-dark);
    overflow: hidden;
    color: var(--wcu-text-main);
}

.wcu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Grid Layout */
.wcu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}



/* Card Base - Adjusted for Ray Layout & Glass Effect */
/* Card Base - Adjusted for Ray Layout & Glass Effect */
.outer {
    position: relative;
    border-radius: 20px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Decrease breadth: Reduce width */
    width: 90%;
    margin: 0 auto;
}

.outer:hover {
    transform: translateY(-8px) scale(1.01);
}

/* ... existing .wcu-card ... */

/* Icons */
.wcu-icon-box {
    /* margin-bottom: 2rem; REMOVED for gap centering */
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wcu-text-sub);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Idle Float Animation */
    animation: wcuFloat 6s ease-in-out infinite;
}

/* ... */

/* Typography */
.wcu-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    /* margin-bottom: 0.75rem; REMOVED for gap centering */
    color: var(--wcu-text-main);
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
    /* Subtle gradient text for premium feel */
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Base - Adjusted for Ray Layout & Glass Effect */
.wcu-card {
    position: relative;
    background: transparent;
    border-radius: 20px;
    padding: 40px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    /* Snippet Shadow: dark:shadow-[20px_20px_60px_#111,-20px_-20px_60px_#222] */
    box-shadow: 20px 20px 60px #010205,
        -20px -20px 60px #0e122b;
    border: none;
    /* 3D Context */
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    z-index: 10;
    isolation: isolate;
}

/* Glass Overlay Layer - Sits on top of Blob, behind Content */
/* Glass Overlay Layer - Matches "Glassy Background" in snippet */
.wcu-card::before {
    content: '';
    position: absolute;
    /* Snippet: top-[5px] left-[5px] w-[190px]... Inset 5px */
    inset: 5px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.7);
    /* dark:bg-black/70 */
    backdrop-filter: blur(24px);
    /* backdrop-blur-[24px] */
    -webkit-backdrop-filter: blur(24px);
    /* Snippet: outline outline-2 outline-white dark:outline-gray-700 */
    /* Snippet: outline outline-2 outline-white dark:outline-gray-700 */
    /* Refined: Thinner, more subtle inner border */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1;
    pointer-events: none;
}

/* Ensure Content sits on TOP of Glass */
.wcu-content {
    position: relative;
    z-index: 30;
    /* Higher than card (10) + content (20) */
    /* Well above glass */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateZ(20px);
    gap: 1.5rem;
    /* Center content with gap */
}

/* The Blob - Animated Gradient Shape */
.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: linear-gradient(to right, #ec4899, #ef4444, #eab308);
    /* Pink -> Red -> Yellow */
    border-radius: 50%;
    filter: blur(30px);
    /* Pre-blur the blob itself */
    opacity: 0.8;
    /* Make it bright to punch through dark glass */
    z-index: 0;
    /* Bottom of stack */
    pointer-events: none;
    animation: blob 5s linear infinite;
}

/* The Dot - Orbiting Particle */
.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(99, 102, 241, 0.8);
    top: 0;
    left: 50%;
    opacity: 0;
    z-index: 30;
    /* High z-index to sit above glass card */
    pointer-events: none;
    offset-path: rect(0% 0% 100% 100% round 20px);
    animation: orbit 4s linear infinite;
}

.outer:hover .dot {
    opacity: 1;
}

@keyframes orbit {
    0% {
        offset-distance: 0%;
    }

    100% {
        offset-distance: 100%;
    }
}

/* Glowing Border Lines */
.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 15;
    /* Above glass */
}

.outer:hover .line {
    opacity: 1;
}

.topl {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateX(-100%);
    animation: slideRight 2s linear infinite;
}

.bottoml {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateX(100%);
    animation: slideLeft 2s linear infinite;
}

.leftl {
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    transform: translateY(100%);
    animation: slideUp 2s linear infinite;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.8), transparent);
}

.rightl {
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    transform: translateY(-100%);
    animation: slideDown 2s linear infinite;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.8), transparent);
}

@keyframes slideRight {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* The Ray - Rotating Conical Gradient */
/* The Blob - Animated Gradient Shape */
/* Redundant content/blob styles removed - using main definition above */

@keyframes wcuFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* SVG Base Styles */
.wcu-icon-svg {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    transition: all 0.4s ease;
}

/* Hover State: Icon */
.wcu-card:hover .wcu-icon-box {
    color: var(--wcu-primary);
    transform: scale(1.12) rotate(12deg);
    /* Requested Scale & Rotation */
    animation-play-state: paused;
    /* Stop floating on hover */
}

/* Draw Animations (Stroke Dash) */
.draw-path,
.draw-path-delay-1,
.draw-path-delay-2,
.fade-fill {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.6s ease, stroke 0.4s ease;
}

/* On hover, re-draw effect logic is tricky with CSS only unless we start from offset.
   Let's create a "pulse" feel instead or simple re-draw if supported. */
.wcu-card:hover .draw-path {
    animation: wcuDraw 0.8s ease forwards;
}

.wcu-card:hover .draw-path-delay-1 {
    animation: wcuDraw 0.8s ease 0.1s forwards;
}

.wcu-card:hover .draw-path-delay-2 {
    animation: wcuDraw 0.8s ease 0.2s forwards;
}

@keyframes wcuDraw {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Pulse Circles */
.pulse-circle {
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wcu-card:hover .pulse-circle {
    transform: scale(1.4);
}

/* Glow Effect */
.wcu-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--wcu-primary) 0%, transparent 60%);
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease, filter 0.4s ease;
    z-index: -1;
}

.wcu-card:hover .wcu-icon-glow {
    opacity: 0.6;
    filter: blur(20px);
}

/* Typography */
.wcu-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--wcu-text-main);
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
    /* Subtle gradient text for premium feel */
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wcu-card:hover .wcu-title {
    transform: translateY(-2px);
}

.wcu-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    /* Slightly smaller for elegance */
    line-height: 1.7;
    color: var(--wcu-text-sub);
    max-width: 280px;
    /* Tighter width for readability */
    font-weight: 400;
    transition: color 0.3s ease;
}

.wcu-card:hover .wcu-desc {
    color: #e2e8f0;
    /* Brighter on hover */
}



/* Responsive */
@media (max-width: 1024px) {
    .wcu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .outer {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wcu-section {
        padding: 5rem 0;
    }

    .wcu-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 auto;
    }

    .wcu-card {
        min-height: auto;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .wcu-card {
        min-height: auto;
        padding: 24px 16px;
    }

    .wcu-title {
        font-size: 1.3rem;
    }

    .wcu-desc {
        font-size: 0.85rem;
    }

    .wcu-icon-box {
        width: 60px;
        height: 60px;
    }

    .wcu-icon-svg {
        width: 36px;
        height: 36px;
    }
}
