/* =====================================================
   DEPTH CARD STYLES - Mobile-Safe, Scroll-First
   Replaces: flip-card system (scroll-blocking removed)
   Architecture: GPU-accelerated hover depth on desktop,
                 static depth on mobile, zero touch listeners
   Author: Rashubh Export
   Date: 2026-01-19
   ===================================================== */

.depth-card {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    border-top: 4px solid var(--accent-orange);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);

    /* CRITICAL: Scroll Safety - Native scroll always wins */
    touch-action: pan-y pinch-zoom !important;

    /* GPU Isolation */
    transform: perspective(1000px) rotateX(0deg);
    transform-style: preserve-3d;

    /* Smooth transition for desktop hover */
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Content Layout */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

/* DESKTOP ONLY: Hover Depth Effect (Premium Parallax) */
@media (hover: hover) and (pointer: fine) {
    .depth-card:hover {
        /* Subtle 3D tilt + lift */
        transform: perspective(1000px) rotateX(2deg) translateY(-8px);
        box-shadow: 0 20px 40px rgba(15, 44, 74, 0.15);

        /* GPU Optimization: Apply will-change ONLY on hover */
        will-change: transform;
    }

    .depth-card:hover .depth-card-icon {
        transform: scale(1.1) rotate(3deg);
        background: var(--secondary-blue);
        color: white;
        /* Smooth icon animation */
        will-change: transform;
    }
}

/* MOBILE: Static Depth (No Interaction Required) */
@media (hover: none) {
    .depth-card {
        /* Static shadow for depth perception */
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        /* No transform on mobile - prevent any interaction quirks */
        transform: none;
    }
}

/* Icon Styles - Clean & Lightweight */
.depth-card-icon {
    width: 70px;
    height: 70px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary-blue);
    font-size: 2.5rem;

    /* Smooth transition for hover effect */
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* Content Styles - All Visible By Default */
.depth-card h4 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 12px;
}

.depth-card .card-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: block;
}

.depth-card .card-subtitle {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    font-weight: 500;
}

.depth-card .btn {
    display: inline-block;
    opacity: 1;
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(15, 44, 74, 0.2);
    transition: all 0.3s ease;
}

.depth-card .btn:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.3);
}

/* Small Button Variant */
.depth-card .btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Step Badge Support (for process flows) */
.depth-card .step-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(15, 44, 74, 0.3);
    z-index: 10;
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .depth-card {
        transition: opacity 0.2s ease !important;
        transform: none !important;
    }

    .depth-card:hover {
        transform: none !important;
        will-change: auto !important;
    }

    .depth-card-icon {
        transform: none !important;
        transition: opacity 0.2s ease !important;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .depth-card {
        min-height: 280px;
        padding: 25px 18px;
    }

    .depth-card h4 {
        font-size: 1.1rem;
    }

    .depth-card .card-description {
        font-size: 0.9rem;
    }

    .depth-card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .depth-card {
        min-height: 260px;
        padding: 20px 15px;
    }

    .depth-card h4 {
        font-size: 1rem;
    }

    .depth-card .card-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
}