/* iPhone 15 Pro Custom Mockup with Dynamic Island */
.device-mockup.iphone15_pro {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    /* Entrance animation */
    opacity: 0;
    animation: fadeInFloat 1s ease-out forwards, float 6s ease-in-out 1s infinite;
}

@keyframes fadeInFloat {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.device-mockup.iphone15_pro.portrait {
    padding-bottom: 205%;
}

.device-mockup.iphone15_pro.landscape {
    padding-bottom: 48.78%;
}

.device-mockup.iphone15_pro > .device {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #203a43 0%, #2c5364 100%);
    border-radius: 55px;
    box-shadow: 0 50px 100px rgba(50, 50, 93, 0.15),
                0 15px 35px rgba(50, 50, 93, 0.2),
                0 5px 15px rgba(0, 0, 0, 0.12);
    border: 14px solid #1a1a1a;
    overflow: hidden;
}

/* Titanium Frame Effect with shimmer */
.device-mockup.iphone15_pro.titanium > .device {
    border-color: #2c2c2e;
    box-shadow: 0 50px 100px rgba(50, 50, 93, 0.15),
                0 15px 35px rgba(50, 50, 93, 0.2),
                0 5px 15px rgba(0, 0, 0, 0.12),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
}

/* Shimmer effect container */
.device-mockup.iphone15_pro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.15) 55%,
        transparent 60%,
        transparent 100%
    );
    border-radius: 55px;
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%) translateY(-150%);
    }
    100% {
        transform: translateX(150%) translateY(150%);
    }
}

.device-mockup.iphone15_pro.black > .device {
    border-color: #000000;
}

.device-mockup.iphone15_pro.white > .device {
    border-color: #f5f5f7;
}

.device-mockup.iphone15_pro.blue > .device {
    border-color: #a7c8e7;
}

/* Dynamic Island with pulse animation */
.device-mockup.iphone15_pro > .device::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: linear-gradient(135deg, #1c1c1e 0%, #000000 100%);
    border-radius: 22px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(0, 212, 255, 0.3);
    animation: dynamicIslandPulse 3s ease-in-out infinite;
}

@keyframes dynamicIslandPulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                    0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                    0 0 30px rgba(0, 212, 255, 0.5),
                    0 0 40px rgba(0, 212, 255, 0.2);
    }
}

/* Screen with glow effect */
.device-mockup.iphone15_pro.portrait > .device > .screen {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    overflow: hidden;
    border-radius: 42px;
    box-shadow: inset 0 0 60px rgba(0, 212, 255, 0.1),
                inset 0 0 30px rgba(44, 83, 100, 0.05);
    animation: screenGlow 4s ease-in-out infinite alternate;
}

.device-mockup.iphone15_pro.landscape > .device > .screen {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    overflow: hidden;
    border-radius: 42px;
    box-shadow: inset 0 0 60px rgba(0, 212, 255, 0.1),
                inset 0 0 30px rgba(44, 83, 100, 0.05);
    animation: screenGlow 4s ease-in-out infinite alternate;
}

@keyframes screenGlow {
    0% {
        box-shadow: inset 0 0 60px rgba(0, 212, 255, 0.1),
                    inset 0 0 30px rgba(44, 83, 100, 0.05);
    }
    100% {
        box-shadow: inset 0 0 80px rgba(0, 212, 255, 0.15),
                    inset 0 0 40px rgba(44, 83, 100, 0.08);
    }
}

/* Screen reflection overlay */
.device-mockup.iphone15_pro > .device > .screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0.05) 50%,
                transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Silent/Ring Switch (removed, now Action Button on 15 Pro) */

/* Volume Buttons with subtle animation */
.device-mockup.iphone15_pro > .device .volume-up {
    position: absolute;
    left: -14px;
    top: 190px;
    width: 4px;
    height: 50px;
    background: linear-gradient(90deg, #444 0%, #666 50%, #444 100%);
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
    box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.3);
}

.device-mockup.iphone15_pro > .device .volume-down {
    position: absolute;
    left: -14px;
    top: 250px;
    width: 4px;
    height: 50px;
    background: linear-gradient(90deg, #444 0%, #666 50%, #444 100%);
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
    box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.3);
}

/* Power Button with subtle animation */
.device-mockup.iphone15_pro > .device .power-button {
    position: absolute;
    right: -14px;
    top: 190px;
    width: 4px;
    height: 90px;
    background: linear-gradient(270deg, #444 0%, #666 50%, #444 100%);
    border-radius: 2px 0 0 2px;
    transition: all 0.3s ease;
    box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.3);
}

/* Action Button (New for iPhone 15 Pro) with glow effect */
.device-mockup.iphone15_pro > .device .action-button {
    position: absolute;
    left: -14px;
    top: 140px;
    width: 4px;
    height: 35px;
    background: linear-gradient(90deg, #FF9500 0%, #FFB340 50%, #FF9500 100%);
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
    box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.3),
                0 0 10px rgba(255, 149, 0, 0.3);
    animation: actionButtonGlow 2s ease-in-out infinite;
}

@keyframes actionButtonGlow {
    0%, 100% {
        box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.3),
                    0 0 10px rgba(255, 149, 0, 0.3);
    }
    50% {
        box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.3),
                    0 0 20px rgba(255, 149, 0, 0.5),
                    0 0 30px rgba(255, 149, 0, 0.2);
    }
}

/* Buttons interaction on hover */
.device-mockup.iphone15_pro:hover > .device .volume-up,
.device-mockup.iphone15_pro:hover > .device .volume-down,
.device-mockup.iphone15_pro:hover > .device .power-button {
    background: linear-gradient(90deg, #555 0%, #777 50%, #555 100%);
}

.device-mockup.iphone15_pro:hover > .device .action-button {
    background: linear-gradient(90deg, #FFB340 0%, #FFC870 50%, #FFB340 100%);
}

/* Screen Content Wrapper with smooth transitions */
.device-mockup.iphone15_pro > .device > .screen > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Subtle zoom on hover */
.device-mockup.iphone15_pro:hover > .device > .screen > img {
    transform: scale(1.02);
}

/* Custom EMS Work Order Interface */
.device-mockup.iphone15_pro > .device > .screen .ems-interface {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #203a43 0%, #2c5364 100%);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

.ems-interface .content {
    flex: 1;
    background: #f8f9fa;
    padding: 20px 16px;
    overflow-y: auto;
    margin: 0 16px 16px 16px;
    border-radius: 12px;
}

.ems-interface .form-section {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.ems-interface .form-group {
    margin-bottom: 16px;
}

.ems-interface .form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ems-interface .form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.ems-interface .priority-selector {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.ems-interface .priority-btn {
    flex: 1;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.ems-interface .priority-btn.active {
    border-color: #00d4ff;
    background: #00d4ff;
    color: white;
}

.ems-interface .upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    background: #f9fafb;
}

.ems-interface .upload-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #203a43, #2c5364);
    border-radius: 8px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.ems-interface .submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #203a43, #2c5364);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

/* Ambient light effect around the device */
.device-mockup.iphone15_pro::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 212, 255, 0.15) 0%,
        rgba(44, 83, 100, 0.1) 30%,
        transparent 70%
    );
    filter: blur(40px);
    z-index: -1;
    opacity: 0.8;
    animation: ambientPulse 5s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .device-mockup.iphone15_pro {
        max-width: 300px;
    }
    
    .device-mockup.iphone15_pro > .device::before {
        width: 100px;
        height: 30px;
        border-radius: 18px;
        top: 12px;
    }
    
    .device-mockup.iphone15_pro > .device {
        border-width: 10px;
        border-radius: 45px;
    }
    
    .device-mockup.iphone15_pro > .device > .screen {
        border-radius: 35px;
    }
}

/* Enhanced Animation effects with 3D transform */
.device-mockup.iphone15_pro {
    perspective: 1500px;
}

.device-mockup.iphone15_pro > .device {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.device-mockup.iphone15_pro:hover {
    animation-play-state: paused;
}

.device-mockup.iphone15_pro:hover > .device {
    transform: translateY(-10px) translateZ(20px) rotateX(2deg);
    box-shadow: 0 70px 140px rgba(50, 50, 93, 0.25),
                0 25px 50px rgba(50, 50, 93, 0.3),
                0 15px 30px rgba(0, 0, 0, 0.2),
                0 0 60px rgba(0, 212, 255, 0.15);
}

/* Pause screen glow on hover for better focus */
.device-mockup.iphone15_pro:hover > .device > .screen {
    animation-play-state: paused;
}

/* Premium gradient backgrounds */
.device-mockup.iphone15_pro.natural-titanium > .device {
    border-color: #a8a8a8;
}

.device-mockup.iphone15_pro.blue-titanium > .device {
    border-color: #4a6fa5;
}

.device-mockup.iphone15_pro.white-titanium > .device {
    border-color: #e5e5e5;
}

.device-mockup.iphone15_pro.black-titanium > .device {
    border-color: #1c1c1e;
}

/* Performance optimization */
.device-mockup.iphone15_pro,
.device-mockup.iphone15_pro > .device,
.device-mockup.iphone15_pro > .device > .screen,
.device-mockup.iphone15_pro > .device > .screen > img {
    will-change: transform;
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    .device-mockup.iphone15_pro,
    .device-mockup.iphone15_pro > .device::before,
    .device-mockup.iphone15_pro::after,
    .device-mockup.iphone15_pro::before,
    .device-mockup.iphone15_pro > .device .action-button,
    .device-mockup.iphone15_pro > .device > .screen {
        animation: none !important;
        transition: none !important;
    }
    
    .device-mockup.iphone15_pro {
        opacity: 1;
        transform: none;
    }
}

