/* Maintenance Mode Styles */
#maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.maintenance-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.maintenance-text {
    color: #fff;
    margin-top: 3rem;
    animation: fadeIn 1.5s ease-in-out;
}

.maintenance-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.maintenance-text p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Camera Animation */
.camera-container {
    position: relative;
    width: 300px;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.camera {
    width: 200px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 5s ease-in-out infinite, rotate 20s linear infinite;
}

.camera-body {
    width: 200px;
    height: 150px;
    background: #333;
    border-radius: 10px;
    position: absolute;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.camera-lens {
    width: 80px;
    height: 80px;
    background: #111;
    border-radius: 50%;
    position: absolute;
    top: 35px;
    left: 60px;
    transform: translateZ(20px);
    box-shadow: 0 0 0 10px #222, inset 0 0 20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.lens-reflection {
    position: absolute;
    width: 30px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 15px;
    left: 25px;
    transform: rotate(45deg);
    animation: reflection 3s linear infinite;
}

.camera-details {
    width: 40px;
    height: 20px;
    background: #222;
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 5px;
    transform: translateZ(10px);
}

.camera-flash {
    width: 30px;
    height: 30px;
    background: #444;
    position: absolute;
    top: 20px;
    right: 30px;
    border-radius: 5px;
    transform: translateZ(15px);
}

.camera-flash::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #666;
    top: 5px;
    left: 5px;
    border-radius: 3px;
    animation: flash 5s ease-in-out infinite;
}

.camera-button {
    width: 15px;
    height: 15px;
    background: #c0392b;
    position: absolute;
    top: 30px;
    right: 80px;
    border-radius: 50%;
    transform: translateZ(15px);
}

.camera-strap {
    width: 10px;
    height: 80px;
    background: #222;
    position: absolute;
    top: -40px;
}

.camera-strap.left {
    left: 30px;
    transform: translateZ(5px) rotateX(30deg);
}

.camera-strap.right {
    right: 30px;
    transform: translateZ(5px) rotateX(30deg);
}

/* Tools and gears for repair animation */
.tools {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.tool {
    position: absolute;
    background: #777;
    border-radius: 2px;
}

.tool1 {
    width: 40px;
    height: 8px;
    top: 170px;
    left: 40px;
    transform: translateZ(30px) rotateZ(45deg);
    animation: tool1Move 4s ease-in-out infinite;
}

.tool2 {
    width: 30px;
    height: 6px;
    top: 160px;
    right: 50px;
    transform: translateZ(25px) rotateZ(-30deg);
    animation: tool2Move 6s ease-in-out infinite;
}

.tool3 {
    width: 20px;
    height: 20px;
    top: 130px;
    left: 90px;
    border-radius: 50%;
    background: #999;
    transform: translateZ(40px);
    animation: tool3Move 5s ease-in-out infinite;
}

.gears {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.gear {
    position: absolute;
    background: #555;
    border-radius: 50%;
    border: 4px dashed #777;
}

.gear1 {
    width: 40px;
    height: 40px;
    bottom: -30px;
    left: 30px;
    transform: translateZ(20px) rotateZ(0deg);
    animation: rotate1 5s linear infinite;
}

.gear2 {
    width: 30px;
    height: 30px;
    bottom: -25px;
    left: 80px;
    transform: translateZ(15px) rotateZ(0deg);
    animation: rotate2 4s linear infinite;
}

.gear3 {
    width: 25px;
    height: 25px;
    bottom: -20px;
    right: 40px;
    transform: translateZ(25px) rotateZ(0deg);
    animation: rotate3 6s linear infinite;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(10deg);
    }
    50% {
        transform: translateY(-20px) rotateX(15deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes reflection {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes flash {
    0%, 100% {
        background: #666;
        box-shadow: none;
    }
    98% {
        background: #666;
        box-shadow: none;
    }
    99% {
        background: #fff;
        box-shadow: 0 0 20px #fff, 0 0 40px #3498db;
    }
}

@keyframes tool1Move {
    0%, 100% {
        transform: translateZ(30px) rotateZ(45deg);
    }
    50% {
        transform: translateZ(40px) rotateZ(60deg) translateX(10px);
    }
}

@keyframes tool2Move {
    0%, 100% {
        transform: translateZ(25px) rotateZ(-30deg);
    }
    50% {
        transform: translateZ(35px) rotateZ(-45deg) translateX(-10px);
    }
}

@keyframes tool3Move {
    0%, 100% {
        transform: translateZ(40px);
    }
    50% {
        transform: translateZ(50px) translateX(-10px) translateY(-5px);
    }
}

@keyframes rotate1 {
    0% {
        transform: translateZ(20px) rotateZ(0deg);
    }
    100% {
        transform: translateZ(20px) rotateZ(360deg);
    }
}

@keyframes rotate2 {
    0% {
        transform: translateZ(15px) rotateZ(0deg);
    }
    100% {
        transform: translateZ(15px) rotateZ(-360deg);
    }
}

@keyframes rotate3 {
    0% {
        transform: translateZ(25px) rotateZ(0deg);
    }
    100% {
        transform: translateZ(25px) rotateZ(360deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .maintenance-text h1 {
        font-size: 2rem;
    }
    
    .maintenance-text p {
        font-size: 1rem;
    }
    
    .camera {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .maintenance-text h1 {
        font-size: 1.8rem;
    }
    
    .camera {
        transform: scale(0.7);
    }
} 