/* Virtual Devices CSS By Hari Bagus — Premium Holographic Edition */

/* === GLOBAL CONTAINER & PERSPECTIVE === */
.mobile-showcase-container {
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* ============================================================
   DEVICE FRAME — iPhone 15 Pro Max Holographic Style
   ============================================================ */
.device-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #1c1c1e 0%, #0f0f0f 60%, #1a1a1e 100%);
    border-radius: 48px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
    overflow: visible;
    /* GPU acceleration hints */
    will-change: transform;
    contain: layout;
    /* Deep shadow stack for premium depth */
    box-shadow:
        0 0 0 1.5px rgba(255,255,255,0.08),
        0 0 0 3px #111,
        inset 0 0 0 1px rgba(255,255,255,0.04),
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

/* === TITANIUM BRUSHED BEZEL === */
.device-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: conic-gradient(
        from 180deg,
        #3a3a3c 0deg,
        #5a5a5e 60deg,
        #2c2c2e 120deg,
        #4a4a4e 180deg,
        #222224 240deg,
        #5a5a5e 300deg,
        #3a3a3c 360deg
    );
    z-index: -1;
    pointer-events: none;
}

/* === ANIMATED NEON RING AROUND DEVICE === */
.device-frame::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 56px;
    background: conic-gradient(
        from var(--ring-angle, 0deg),
        transparent 0%,
        rgba(6, 182, 212, 0.7) 20%,
        rgba(139, 92, 246, 0.8) 40%,
        rgba(236, 72, 153, 0.6) 55%,
        transparent 70%
    );
    opacity: 0;
    z-index: -2;
    transition: opacity 0.5s ease;
    animation: ringRotate 3s linear infinite paused;
    filter: blur(2px);
}

.mobile-card:hover .device-frame::after {
    opacity: 1;
    animation-play-state: running;
}

@property --ring-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes ringRotate {
    0%   { --ring-angle: 0deg; }
    100% { --ring-angle: 360deg; }
}

/* === DYNAMIC ISLAND / NOTCH === */
.device-notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.05);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Camera dot */
.device-notch::before {
    content: '';
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #1a3a1a 30%, #0a120a 100%);
    border-radius: 50%;
    border: 1px solid rgba(0,180,0,0.2);
}

/* FaceID sensor */
.device-notch::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #1a1a3a;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(100, 100, 255, 0.4);
}

/* === SCREEN === */
.device-screen {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #05050a;
    border-radius: 40px;
    overflow: hidden;
    z-index: 15;
    /* Subtle inner shadow for depth */
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

/* Status bar inside screen */
.app-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 20px 8px;
    z-index: 50;
    font-size: 10px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.app-status-bar .status-time {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.app-status-bar .status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* === AI VOICE APP UI MOCK === */
.app-screen-ai {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #050510 0%, #0a0520 40%, #030815 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 16px 24px;
    gap: 12px;
    overflow: hidden;
}

/* Animated pulse ring for AI orb */
.ai-orb-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 8px;
}

.ai-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(6, 182, 212, 0.4);
    animation: orbPulse 2s ease-out infinite;
}
.ai-orb-ring:nth-child(2) { animation-delay: 0.6s; }
.ai-orb-ring:nth-child(3) { animation-delay: 1.2s; }

@keyframes orbPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}

.ai-orb-core {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        #22d3ee 0%, #06b6d4 30%, #0369a1 65%, #030b1a 100%);
    box-shadow:
        0 0 20px rgba(6, 182, 212, 0.6),
        0 0 40px rgba(6, 182, 212, 0.3),
        inset 0 2px 4px rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: orbFloat 4s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
}

.ai-orb-core i {
    color: white;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* Voice waveform animation */
.ai-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    flex-shrink: 0;
}

.ai-waveform span {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(to top, #06b6d4, #22d3ee);
    animation: wave 1.2s ease-in-out infinite;
}

.ai-waveform span:nth-child(1) { height: 8px;  animation-delay: 0.0s; }
.ai-waveform span:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.ai-waveform span:nth-child(3) { height: 26px; animation-delay: 0.2s; }
.ai-waveform span:nth-child(4) { height: 14px; animation-delay: 0.3s; }
.ai-waveform span:nth-child(5) { height: 22px; animation-delay: 0.4s; }
.ai-waveform span:nth-child(6) { height: 10px; animation-delay: 0.5s; }
.ai-waveform span:nth-child(7) { height: 26px; animation-delay: 0.6s; }
.ai-waveform span:nth-child(8) { height: 16px; animation-delay: 0.7s; }
.ai-waveform span:nth-child(9) { height: 8px;  animation-delay: 0.8s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); opacity: 0.7; }
    50%       { transform: scaleY(0.3); opacity: 1; }
}

/* Chat bubbles in AI screen */
.ai-chat-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

.ai-bubble {
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 9px;
    line-height: 1.4;
    max-width: 80%;
    animation: bubbleFade 0.4s ease-out forwards;
    opacity: 0;
}

.ai-bubble.user {
    align-self: flex-end;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #e0f7fa;
    border-radius: 16px 16px 4px 16px;
    animation-delay: 0.5s;
}

.ai-bubble.bot {
    align-self: flex-start;
    background: rgba(30, 30, 60, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #ddd6fe;
    border-radius: 16px 16px 16px 4px;
    animation-delay: 1s;
}

.ai-bubble.bot2 {
    animation-delay: 1.5s;
}

@keyframes bubbleFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Typing indicator */
.ai-typing {
    align-self: flex-start;
    background: rgba(30, 30, 60, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px 16px 16px 4px;
    padding: 8px 14px;
    display: flex;
    gap: 4px;
    align-items: center;
    animation-delay: 0.3s;
    opacity: 0;
    animation: bubbleFade 0.4s ease-out 0.3s forwards;
}

.ai-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a78bfa;
    animation: typingBounce 1.2s ease infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
    40%            { transform: translateY(-4px); opacity: 1; }
}

/* Input bar at bottom */
.ai-input-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 8px 12px;
    flex-shrink: 0;
}

.ai-input-bar .ai-input-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-input-bar span {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    font-style: italic;
    flex: 1;
}

/* ============================================================
   APP 2 — Portfolio OS UI MOCK
   ============================================================ */
.app-screen-portfolio {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0e0720 0%, #140a30 50%, #0c0518 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 52px;
}

.portfolio-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    flex-shrink: 0;
}

.portfolio-app-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: 700;
}

.portfolio-app-title {
    font-size: 11px;
    color: #e9d5ff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.portfolio-app-menu {
    display: flex;
    gap: 4px;
}

.portfolio-app-menu span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.5);
}
.portfolio-app-menu span:last-child { background: rgba(236, 72, 153, 0.7); }

.portfolio-skill-list {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    animation: skillSlide 0.4s ease forwards;
}
.skill-item:nth-child(1) { animation-delay: 0.2s; }
.skill-item:nth-child(2) { animation-delay: 0.5s; }
.skill-item:nth-child(3) { animation-delay: 0.8s; }
.skill-item:nth-child(4) { animation-delay: 1.1s; }

@keyframes skillSlide {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.skill-item-label {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255,255,255,0.7);
}

.skill-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 4px;
    animation: barGrow 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes barGrow {
    to { transform: scaleX(1); }
}

.portfolio-theme-toggle {
    margin: 0 16px 8px;
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 3px;
    flex-shrink: 0;
}

.theme-btn {
    flex: 1;
    text-align: center;
    padding: 5px;
    font-size: 9px;
    border-radius: 17px;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s;
}

.theme-btn.active {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.portfolio-nav-bar {
    display: flex;
    justify-content: space-around;
    padding: 12px 8px 20px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    flex-shrink: 0;
    background: rgba(0,0,0,0.3);
}

.nav-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    color: rgba(255,255,255,0.3);
}

.nav-dot i {
    font-size: 14px;
    color: rgba(255,255,255,0.25);
}

.nav-dot.active i  { color: #c084fc; }
.nav-dot.active    { color: #c084fc; }

/* ============================================================
   APP 3 — Adaptive AI Learning UI MOCK
   ============================================================ */
.app-screen-learning {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #030d1a 0%, #050f20 50%, #040c18 100%);
    display: flex;
    flex-direction: column;
    padding-top: 52px;
    overflow: hidden;
}

.learning-header {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(6, 182, 212, 0.12);
}

.learning-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: white;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.learning-header-text h4 {
    font-size: 11px;
    color: white;
    font-weight: 700;
    margin: 0;
}

.learning-header-text p {
    font-size: 8px;
    color: rgba(6, 182, 212, 0.7);
    margin: 0;
}

.learning-progress-section {
    padding: 14px 16px 10px;
    flex-shrink: 0;
}

.learning-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.learning-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
}

.learning-progress-fill {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, #0284c7, #06b6d4, #22d3ee);
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
    animation: progressLoad 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes progressLoad {
    0%   { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.learning-modules {
    flex: 1;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: hidden;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    padding: 9px 12px;
    opacity: 0;
    animation: moduleAppear 0.4s ease forwards;
}
.module-card:nth-child(1) { animation-delay: 0.3s; }
.module-card:nth-child(2) { animation-delay: 0.6s; border-color: rgba(139,92,246,0.2); }
.module-card:nth-child(3) { animation-delay: 0.9s; border-color: rgba(6,182,212,0.1); }

@keyframes moduleAppear {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.module-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.module-icon.done     { background: rgba(6,182,212,0.15); color: #22d3ee; }
.module-icon.active   { background: rgba(139,92,246,0.15); color: #a78bfa; }
.module-icon.locked   { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.2); }

.module-info { flex: 1; min-width: 0; }

.module-info h5 {
    font-size: 9px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-info p {
    font-size: 8px;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

.module-badge {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
    flex-shrink: 0;
}

.module-badge.done   { background: rgba(6,182,212,0.15); color: #22d3ee; }
.module-badge.active { background: rgba(139,92,246,0.15); color: #a78bfa;
    animation: badgePulse 1.5s ease-in-out infinite;
}
.module-badge.locked { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.2); }

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0.3); }
    50%       { box-shadow: 0 0 0 4px rgba(139,92,246,0); }
}

.learning-ai-hint {
    margin: 10px 14px 14px;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    gap: 7px;
    align-items: flex-start;
    flex-shrink: 0;
}

.ai-hint-icon {
    font-size: 11px;
    color: #22d3ee;
    margin-top: 1px;
}

.ai-hint-text {
    font-size: 8px;
    line-height: 1.5;
    color: rgba(255,255,255,0.5);
}

.ai-hint-text strong {
    color: #67e8f9;
    display: block;
    font-size: 9px;
    margin-bottom: 2px;
}

/* ============================================================
   NEON GLOW BEHIND DEVICE
   ============================================================ */
.device-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 280px;
    height: 580px;
    border-radius: 48px;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.5), rgba(168, 85, 247, 0.5));
    filter: blur(50px);
    z-index: -3;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-card:hover .device-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Corner accent dots */
.device-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
}
.device-corner.tl { top: 16px;  left: 16px; }
.device-corner.tr { top: 16px;  right: 16px; }
.device-corner.bl { bottom: 16px; left: 16px; }
.device-corner.br { bottom: 16px; right: 16px; }

.mobile-card:hover .device-corner {
    opacity: 1;
}

/* Side buttons */
.device-btn-right {
    position: absolute;
    right: -4px;
    top: 140px;
    width: 4px;
    height: 60px;
    background: linear-gradient(to right, #222, #333);
    border-radius: 0 3px 3px 0;
    z-index: 5;
    box-shadow: 2px 0 4px rgba(0,0,0,0.3);
}

.device-btn-left-1 {
    position: absolute;
    left: -4px;
    top: 110px;
    width: 4px;
    height: 36px;
    background: linear-gradient(to left, #222, #333);
    border-radius: 3px 0 0 3px;
    z-index: 5;
}

.device-btn-left-2 {
    position: absolute;
    left: -4px;
    top: 158px;
    width: 4px;
    height: 52px;
    background: linear-gradient(to left, #222, #333);
    border-radius: 3px 0 0 3px;
    z-index: 5;
}

.device-btn-left-toggle {
    position: absolute;
    left: -4px;
    top: 80px;
    width: 4px;
    height: 24px;
    background: linear-gradient(to left, #1a1a1a, #2a2a2a);
    border-radius: 3px 0 0 3px;
    z-index: 5;
}

/* === CARD LAYOUT === */
.mobile-card {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mobile-card {
        flex-direction: row;
        justify-content: center;
        gap: 5rem;
    }

    .mobile-card.reverse {
        flex-direction: row-reverse;
    }
}

/* Hover effect on device frame */
.device-frame:hover {
    transform: translateY(-12px) rotateX(4deg) rotateY(-2deg);
    box-shadow:
        0 0 0 1.5px rgba(255,255,255,0.1),
        0 0 0 3px #111,
        inset 0 0 0 1px rgba(255,255,255,0.04),
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 20px 40px rgba(0, 0, 0, 0.5);
}

/* === INFO SECTION === */
.mobile-info {
    max-width: 420px;
    z-index: 5;
}

.mobile-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.mobile-desc {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 999px;
    color: #22d3ee;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    transform: translateY(-1px);
}

/* Play overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.mobile-card:hover .play-overlay {
    opacity: 1;
}


/* === DEVICE FRAME: IPHONE 15 STYLE === */
.device-frame {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    box-shadow:
        0 0 0 2px #333,
        0 0 0 4px #1a1a1a,
        0 20px 50px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    overflow: hidden;
}

/* Bezel & Border Gradient (Titanium Look) */
.device-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 46px;
    padding: 6px;
    background: linear-gradient(135deg, #444 0%, #111 50%, #222 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    pointer-events: none;
    z-index: 10;
}

/* Dynamic Island / Notch */
.device-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    z-index: 20;
}

.device-screen {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: #000;
    border-radius: 34px;
    overflow: hidden;
    z-index: 15;
    /* Ensure screen content is above the base frame background */
    /* Masking for the rounded corners of screen */
}

/* Screen Content */
.device-video,
.device-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px;
}


/* ============================================================
   APP 4 — CoachMoney AI Financial Planner UI MOCK
   ============================================================ */
.app-screen-finance {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #021a14 0%, #03141e 50%, #020c12 100%);
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    overflow: hidden;
    color: #e2e8f0;
}

.finance-header {
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    flex-shrink: 0;
}

.finance-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.finance-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #022c22;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.finance-brand-text h4 {
    font-size: 11px;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.finance-brand-text p {
    font-size: 8px;
    color: #34d399;
    margin: 0;
}

.finance-balance-card {
    margin: 10px 14px 6px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(16, 185, 129, 0.1);
    flex-shrink: 0;
}

.balance-title {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 3px 0 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.balance-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.balance-stat {
    display: flex;
    flex-direction: column;
}

.balance-stat-label {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

.balance-stat-val {
    font-size: 9px;
    font-weight: 700;
}

.balance-stat-val.income { color: #34d399; }
.balance-stat-val.expense { color: #f87171; }

.finance-ai-coach-bubble {
    margin: 4px 14px;
    padding: 8px 10px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px dashed rgba(6, 182, 212, 0.3);
    border-radius: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-shrink: 0;
}

.ai-coach-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
    animation: coachPulse 2s infinite;
}

@keyframes coachPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.ai-coach-content {
    font-size: 8px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
}

.ai-coach-content strong {
    color: #67e8f9;
    display: block;
    font-size: 8.5px;
    margin-bottom: 2px;
}

.finance-tx-list {
    flex: 1;
    padding: 6px 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.tx-header {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 6px 10px;
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tx-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.tx-icon.income { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tx-icon.expense { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.tx-icon.invest { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.tx-title {
    font-size: 8.5px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.tx-date {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.tx-val {
    font-size: 8.5px;
    font-weight: 700;
}

.tx-val.income { color: #34d399; }
.tx-val.expense { color: #f87171; }

.finance-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px 14px;
    background: rgba(2, 26, 20, 0.85);
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    margin-top: auto;
}

.fin-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 7px;
}

.fin-nav-item i { font-size: 11px; }
.fin-nav-item.active { color: #10b981; }



/* === NEON GLOW BEHIND DEVICE === */
.device-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 300px;
    height: 600px;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.4), rgba(168, 85, 247, 0.4));
    filter: blur(40px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mobile-card:hover .device-glow {
    opacity: 1;
}

/* === CARD LAYOUT === */
.mobile-card {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mobile-card {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }

    .mobile-card.reverse {
        flex-direction: row-reverse;
    }
}

.mobile-info {
    max-width: 400px;
    z-index: 5;
}

.mobile-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.mobile-desc {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 999px;
    color: #22d3ee;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* === INTERACTIVE HIGHLIGHTS === */
.device-frame:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.mobile-card:hover .play-overlay {
    opacity: 1;
}

/* === MOBILE RESPONSIVE SCALING & PERFORMANCE === */
@media (max-width: 768px) {
    .device-frame {
        max-width: 260px;
        height: 520px;
        transform: none !important;
        will-change: auto;
        contain: layout paint;
    }

    .device-frame::after {
        display: none !important; /* Disable animated ring filter on mobile */
    }

    .mobile-showcase-container {
        perspective: none;
    }
}
