/* General Animations & Setup */
.perspective-1000 {
    perspective: 1000px;
}

/* --- Phone Mockup (HTML/CSS Only) --- */
.phone-mockup {
    width: 280px;
    height: 580px;
    border: 14px solid #111;
    border-radius: 40px;
    background-color: #000;
    position: relative;
    box-sizing: border-box;
    /* Simulate depth */
    box-shadow: 
        inset 0 0 0 2px #333,
        20px 20px 30px rgba(0, 213, 248, 0.2),
        -10px -10px 30px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #111;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
}

/* ─── Phone Slideshow ──────────────────────────────────────────────────────── */
/* index.html uses class="phone-slideshow-img" */
.phone-slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    border-radius: 26px;
}

.phone-slideshow-img.active {
    opacity: 1;
}

/* ─── Laptop Slideshow ─────────────────────────────────────────────────────── */
/* index.html uses class="laptop-slideshow-img" */
.laptop-slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.laptop-slideshow-img.active {
    opacity: 1;
}

/* Legacy alias — kept so any old references still work */
.slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-img.active {
    opacity: 1;
}

/* --- Laptop Mockup (HTML/CSS Only) --- */
.laptop-mockup {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.laptop-screen {
    width: 100%;
    aspect-ratio: 16/10;
    border: 16px solid #1a1a1a;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 2px #000;
}

.laptop-base {
    width: 110%;
    height: 20px;
    background: linear-gradient(to bottom, #333, #111);
    border-radius: 0 0 16px 16px;
    margin-left: -5%;
    position: relative;
    box-shadow: 0 15px 25px rgba(0,0,0,0.8);
}
.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 6px;
    background-color: #222;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* --- Floating Letters Animation --- */
.floating-letters span {
    position: absolute;
    color: rgba(255,255,255,0.1);
    bottom: -10%;
    animation: floatUp 8s infinite linear;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.3; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-1000px) rotate(360deg); opacity: 0; }
}

/* Ensure smooth image transitions via JS */
.fade-transition {
    transition: opacity 0.5s ease-in-out;
}
