/* ─── Modern Device Showcase ──────────────────────────────── */
.modern-device-showcase {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.modern-device-showcase.theme-dark {
    background: #0F172A;
    color: #fff;
}

.modern-device-showcase.theme-dark .section-title,
.modern-device-showcase.theme-dark .stat-label {
    color: #fff;
}

.device-showcase-content {
    position: relative;
    z-index: 2;
}

.device-stats-grid {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.theme-dark .device-stats-grid {
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-body);
    opacity: 0.7;
    font-weight: 500;
}

/* Visuals */
.device-visual-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-device-mockup {
    position: relative;
    z-index: 1;
    perspective: 1000px;
    width: 100%;
}

.main-device-mockup img {
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease;
    background: transparent;
}

.theme-dark .main-device-mockup img {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.main-device-mockup:hover img {
    transform: scale(1.02);
}

.floating-glass-card {
    position: absolute;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-title);
    z-index: 2;
}

.theme-dark .floating-glass-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.floating-glass-card i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.floating-glass-card.card-1 {
    top: 10%;
    right: -20px;
}

.floating-glass-card.card-2 {
    bottom: 15%;
    left: -30px;
}

.device-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    z-index: 0;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .device-showcase-content {
        text-align: center;
        margin-bottom: 60px;
    }

    .floating-glass-card {
        display: none;
        /* Hide on small screens to avoid overflow */
    }
}

@media (max-width: 575px) {
    .stat-value {
        font-size: 1.8rem;
    }
}