/* ==========================================================================
   3D EFFECTS & MODERN GLASSMORPHISM
   Delhi Diagnostics UI Showcase
   ========================================================================== */

/* 3D Perspective Containers */
.perspective-container {
    perspective: 1000px;
}

.card-3d {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(4deg) rotateY(-4deg) translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(11, 79, 138, 0.25);
}

/* 3D Modern Image Placeholder Frames */
.image-3d-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #0b4f8a 0%, #00b4d8 100%);
    box-shadow: 0 20px 45px rgba(11, 79, 138, 0.28);
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-3d-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(11, 79, 138, 0.35);
}

.image-3d-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 30px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}

.image-3d-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: floatIcon 3s ease-in-out infinite;
}

.image-3d-placeholder h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.image-3d-placeholder p {
    font-size: 0.82rem;
    opacity: 0.9;
    max-width: 320px;
}

.image-3d-placeholder .badge-upload-ready {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-top: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

/* Floating 3D Badge */
.floating-3d-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    animation: floatBadge 4s ease-in-out infinite;
}

.floating-3d-badge.top-right {
    top: 20px;
    right: -15px;
    animation-delay: 0.5s;
}

.floating-3d-badge.bottom-left {
    bottom: 20px;
    left: -15px;
    animation-delay: 1.5s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-3d-badge .badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #00d2a0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.floating-3d-badge .badge-text h5 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.floating-3d-badge .badge-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* 3D Glass Cards */
.glass-card-3d {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(11, 79, 138, 0.08);
    transition: all 0.35s ease;
}

.glass-card-3d:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 45px rgba(11, 79, 138, 0.16);
    border-color: var(--accent-color);
}
