/* Hero phone mockup - Ultra Premium iPhone Pro Style */
.phone-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    padding: 40px 0;
}

/* 1. Outer Metallic Frame */
.phone {
    width: 305px;
    height: 660px;
    padding: 3px; /* Metallic edge thickness */
    border-radius: 56px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    transition: all 0.5s var(--ease-silk);
    /* Default to a sleek titanium look */
    background: linear-gradient(145deg, #444, #111);
    box-shadow: 
        inset 0 0 4px rgba(255,255,255,0.2),
        0 40px 80px rgba(0,0,0,0.3);
}

/* Stunning Silver Titanium in Dark Mode */
[data-theme="dark"] .phone {
    background: linear-gradient(145deg, #f5f5f7, #c1c1c6);
    box-shadow: 
        inset 0 0 6px rgba(255,255,255,1),
        inset 0 0 15px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.2),
        0 50px 100px rgba(0,0,0,0.7),
        0 0 60px rgba(255,255,255,0.05); /* Subtle ambient glow */
}

/* Hardware Buttons */
.phone::before, .phone::after {
    content: '';
    position: absolute;
    width: 4px;
    background: inherit;
    border-radius: 2px;
    z-index: -1;
}

/* Power Button */
.phone::before {
    height: 64px;
    right: -2px;
    top: 180px;
    box-shadow: inset 1px 0 2px rgba(0,0,0,0.3);
}

/* Volume Buttons */
.phone::after {
    height: 120px;
    left: -2px;
    top: 130px;
    background: transparent;
    box-shadow: 
        inset -1px 0 2px rgba(0,0,0,0.3),
        -2px 0 0 0 #888,
        -2px 50px 0 0 #888,
        -2px 100px 0 0 #888;
}
[data-theme="dark"] .phone::after {
    box-shadow: 
        inset -1px 0 2px rgba(0,0,0,0.1),
        -2px 0 0 0 #d1d1d6,
        -2px 50px 0 0 #d1d1d6,
        -2px 100px 0 0 #d1d1d6;
}

/* 2. Black Glass Bezel */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 53px; /* 56 - 3 */
    padding: 10px; /* Increased bezel to prevent icon clipping */
    box-sizing: border-box;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); /* Bezel inner reflection */
}

/* 3. Screen Content Area */
.swipe-card-stack {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 43px; /* 53 - 10 */
    overflow: hidden; /* Elegantly clips the image to the screen bounds */
    position: relative;
    padding: 6px 10px 0; /* Added safe area for status bar icons */
    box-sizing: border-box;
}

/* Cards */
.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: all 0.6s var(--ease-silk);
    z-index: 1;
}

.swipe-card.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: #000;
    display: block;
}

@media (max-width: 1024px) {
    .phone {
        width: 280px;
        height: 600px;
        border-radius: 50px;
    }
    .phone-screen {
        border-radius: 47px;
        padding: 5px;
    }
    .swipe-card-stack {
        border-radius: 42px;
    }
    }
}

