/* ========================================
   App Service Hero Mockup Styles
   Percentage-based responsive positioning
   All elements scale proportionally with container
   Reference: public/app_service_hero_image.png
   ======================================== */

/* Container */
.app-service-hero .service-hero-illustration {
    overflow: visible;
    margin: 40px auto 40px;
    width: 100%;
}

.app-service-hero .service-mockup-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 7 / 5;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* ========================================
   Element Positioning — all percentage-based
   Base: 700px × 500px (7:5 ratio)
   ======================================== */

/* Main Card - Center piece (anchor for all other elements) */
.app-service-hero .mockup-main-image {
    position: absolute;
    z-index: 1;
    width: 45.7%; /* 320 / 700 */
    left: 50%;
    top: 18px;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

.app-service-hero .mockup-main-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

/* Pen/Design Icon - Top Left overlapping main card */
.app-service-hero .mockup-pen-float {
    position: absolute;
    top: 8%; /* 40 / 500 */
    left: 16.4%; /* 115 / 700 */
    width: 11.4%; /* 80 / 700 */
    z-index: 10;
    will-change: transform, opacity;
}

.app-service-hero .mockup-pen-float img {
    width: 100%;
    height: auto;
    filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25));
}

/* Yellow Circle Accent - Top area near pen */
.app-service-hero .mockup-circle-float {
    position: absolute;
    top: 8.4%; /* 42 / 500 */
    left: 30%; /* 210 / 700 */
    width: 4%; /* 28 / 700 */
    aspect-ratio: 1;
    background-color: #ffc121;
    border-radius: 50%;
    z-index: 8;
    will-change: transform, opacity;
}

/* Hand with Yellow Card - Top Right */
.app-service-hero .mockup-hand-float {
    position: absolute;
    top: 7.2%; /* 36 / 500 */
    right: 17.9%; /* 125 / 700 */
    width: 42.9%; /* 300 / 700 */
    z-index: 10;
    will-change: transform, opacity;
}

.app-service-hero .mockup-hand-float img {
    width: 100%;
    height: auto;
}

/* Cursor Pointer - Center Left */
.app-service-hero .mockup-cursor-float {
    position: absolute;
    top: 47%; /* ~50% with visual offset */
    left: 20.7%; /* 145 / 700 */
    width: 7.1%; /* 50 / 700 */
    z-index: 12;
    will-change: transform, opacity;
}

.app-service-hero .mockup-cursor-float img {
    width: 100%;
    height: auto;
    filter: drop-shadow(4px 8px 0px rgba(0, 0, 0, 0.25));
}

/* Toolbar - Bottom Left extending beyond main card */
.app-service-hero .mockup-toolbar-floats {
    position: absolute;
    bottom: 18.4%; /* 92 / 500 */
    left: 10%; /* 70 / 700 */
    width: 39.1%; /* 274 / 700 */
    z-index: 15;
    will-change: transform, opacity;
}

.app-service-hero .mockup-toolbar-floats img {
    width: 100%;
    height: auto;
    filter: drop-shadow(6px 6px 0px rgba(0, 0, 0, 0.25));
}

/* Search Icon - Bottom Right */
.app-service-hero .mockup-search-float {
    position: absolute;
    bottom: 23%; /* 115 / 500 */
    right: 17.9%; /* 125 / 700 */
    width: 10.7%; /* 75 / 700 */
    z-index: 10;
    will-change: transform, opacity;
}

.app-service-hero .mockup-search-float img {
    width: 100%;
    height: auto;
    filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.25));
}

/* Float element common styles */
.app-service-hero .mockup-float-element {
    transition: filter 0.3s ease;
}

.app-service-hero .mockup-float-element:hover img {
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2)) !important;
}

/* ========================================
   Responsive — only container width changes
   All internal positions scale automatically
   ======================================== */

@media (max-width: 1200px) {
    .app-service-hero .service-mockup-container {
        max-width: 600px;
    }
}

@media (max-width: 1024px) {
    .app-service-hero .service-mockup-container {
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .app-service-hero .service-hero-illustration {
        margin: 30px auto 30px;
    }

    .app-service-hero .service-mockup-container {
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .app-service-hero .service-hero-illustration {
        margin: 20px auto 20px;
    }

    .app-service-hero .service-mockup-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .app-service-hero .service-hero-illustration {
        margin: 15px auto 15px;
    }

    .app-service-hero .service-mockup-container {
        max-width: 100%;
        padding: 0 5px;
    }
}

@media (max-width: 360px) {
    .app-service-hero .service-hero-illustration {
        margin: 10px auto 10px;
    }
}
