.float {
    animation: float 4s ease-in-out infinite;
}

.scene {
    width: 300px;
    height: 600px;
    position: relative;
    transform-style: preserve-3d;
}

.phone {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 20s linear infinite;
}

.face {
    position: absolute;
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border: 8px solid #333;
    border-radius: 40px;
}

.front {
    transform: translateZ(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.back {
    transform: translateZ(-10px) rotateY(180deg);
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.right {
    width: 20px;
    height: 570px;
    top: 15px;
    right: -10px;
    transform: rotateY(90deg) translateZ(-10px);
    border-radius: 0;
    border: none;
    background: #2a2a2a;
}

.left {
    width: 20px;
    height: 570px;
    top: 15px;
    left: -10px;
    transform: rotateY(-90deg) translateZ(-10px);
    border-radius: 0;
    border: none;
    background: #2a2a2a;
}

.top {
    width: 270px;
    height: 20px;
    left: 15px;
    top: 0px;
    transform: rotateX(90deg) translateZ(-10px);
    border-radius: 0;
    border: none;
    background: #2a2a2a;
}

.bottom {
    width: 270px;
    height: 20px;
    left: 15px;
    bottom: 0px;
    transform: rotateX(-90deg) translateZ(-10px);
    border-radius: 0;
    border: none;
    background: #2a2a2a;
}

.screen {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background-position-y: 15px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.camera {
    position: absolute;
    top: 8px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    border: 1px solid #555;
}

.speaker {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 40px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.camera-module {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.lens {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, #1a1a1a 40%, #333 70%, #555 100%);
    border-radius: 50%;
    border: 2px solid #444;
}

.power-btn {
    position: absolute;
    right: -4px;
    top: 150px;
    width: 4px;
    height: 60px;
    background: #444;
    border-radius: 2px;
}

.volume-btn {
    position: absolute;
    left: -4px;
    top: 120px;
    width: 4px;
    height: 40px;
    background: #444;
    border-radius: 2px;
}

.controls {
    display: flex;
    gap: 15px;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

@keyframes rotate3d {
    0% { transform: rotateY(20deg) rotateX(10deg); }
    25% { transform: rotateY(30deg) rotateX(10deg); }
    50% { transform: rotateY(20deg) rotateX(10deg); }
    75% { transform: rotateY(10deg) rotateX(10deg); }
    100% { transform: rotateY(20deg) rotateX(10deg); }
}

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