* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(247, 147, 30, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.maintenance-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 60px 50px;
    max-width: 1300px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.maintenance-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #667eea);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.illustration {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-radius: 20px;
    overflow: hidden;
}

.illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Worker Character - Enhanced */
.worker {
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.worker-body {
    position: relative;
}

.worker-head {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fdbcb4 0%, #f8a396 100%);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.worker-head::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 46px;
    height: 35px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 25px 25px 0 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.worker-head::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #333 30%, transparent 30%);
    border-radius: 50%;
}

.worker-shirt {
    width: 90px;
    height: 70px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 15px 15px 0 0;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.worker-shirt::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 30px;
    background: linear-gradient(180deg, #2c5aa0 0%, #1e3a5f 100%);
    border-radius: 4px;
}

.worker-overalls {
    width: 110px;
    height: 90px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.worker-overalls::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 25px;
    width: 60px;
    height: 25px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    border-radius: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.worker-overalls::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #4a90e2 50%, transparent 100%);
    border-radius: 1px;
}

.worker-arm {
    position: absolute;
    right: -35px;
    top: 25px;
    width: 45px;
    height: 18px;
    background: linear-gradient(135deg, #fdbcb4 0%, #f8a396 100%);
    border-radius: 15px;
    transform: rotate(-30deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.worker-tool {
    position: absolute;
    right: -55px;
    top: 40px;
    width: 35px;
    height: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    border-radius: 8px;
    transform: rotate(-30deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.worker-tool::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 2px;
    width: 12px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

/* Enhanced Animated Gears */
.gear {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    z-index: 5;
    box-shadow: 
        0 8px 16px rgba(255, 107, 53, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    height: 65%;
    background: radial-gradient(circle, #fff 0%, #f5f5f5 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gear::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gear-1 {
    width: 90px;
    height: 90px;
    top: 40px;
    right: 40px;
    animation: rotate 4s linear infinite;
}

.gear-2 {
    width: 70px;
    height: 70px;
    top: 140px;
    right: 10px;
    animation: rotate-reverse 3s linear infinite;
}

.gear-3 {
    width: 110px;
    height: 110px;
    bottom: 70px;
    left: 20px;
    animation: rotate 5s linear infinite;
}

/* Traffic Cones */
.traffic-cone {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 40px solid #ff6b35;
    z-index: 8;
}

.traffic-cone::after {
    content: '';
    position: absolute;
    bottom: -45px;
    left: -20px;
    width: 40px;
    height: 10px;
    background: #333;
    border-radius: 20px;
}

.cone-1 {
    bottom: 60px;
    left: 80px;
}

.cone-2 {
    bottom: 40px;
    right: 120px;
}

.toolbox {
    position: absolute;
    bottom: 40px;
    left: 150px;
    width: 50px;
    height: 30px;
    background: #ff6b35;
    border-radius: 5px;
    z-index: 8;
}

.toolbox::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 15px;
    width: 20px;
    height: 8px;
    background: #333;
    border-radius: 10px;
}

/* Enhanced Content Styles */
.content h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #333 0%, #555 50%, #333 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.highlight {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 1px;
    opacity: 0.3;
}

.description {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 45px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 20px;
}

.description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 25px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #ff6b35;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(255, 107, 53, 0);
        transform: scale(1.1);
    }
}

.status-dot {
    animation: statusPulse 2s ease-in-out infinite;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 35px;
    border: none;
    border-radius: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn.secondary:hover svg {
    transform: scale(1.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    box-shadow: 
        0 8px 16px rgba(255, 107, 53, 0.3),
        0 0 0 1px rgba(255, 107, 53, 0.1);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(255, 107, 53, 0.4),
        0 0 0 1px rgba(255, 107, 53, 0.2);
}

.btn.primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 12px rgba(255, 107, 53, 0.3),
        0 0 0 1px rgba(255, 107, 53, 0.1);
}

.btn.secondary {
    background: rgba(51, 51, 51, 0.05);
    color: #333;
    border: 2px solid #333;
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(51, 51, 51, 0.2);
}

.contact-info {
    color: #555;
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-details {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.contact-details span {
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-details span:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    margin: 10% auto;
    padding: 50px;
    border-radius: 25px;
    width: 90%;
    max-width: 550px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #667eea);
    border-radius: 25px 25px 0 0;
}

.close {
    color: #666;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: absolute;
    top: 15px;
    right: 15px;
}

.close:hover {
    color: #333;
    background: rgba(255, 107, 53, 0.1);
    transform: rotate(90deg);
}

.modal-content h3 {
    margin-bottom: 35px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 20px;
}

.modal-content input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(51, 51, 51, 0.1);
    border-radius: 15px;
    font-size: 1.05rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.modal-content button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.modal-content button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modal-content button:hover::before {
    left: 100%;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Progress Bar */
.progress-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff6b35);
    background-size: 200% 100%;
    border-radius: 15px;
    width: 75%;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: progressGlow 2s ease-in-out infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressMove 1.5s linear infinite;
}

.progress-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes progressShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.6); }
}

@keyframes progressMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Enhanced Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-8px) scale(1.02); }
    50% { transform: translateY(-15px) scale(1.05); }
    75% { transform: translateY(-8px) scale(1.02); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.worker {
    animation: float 4s ease-in-out infinite;
}

.gear-1 {
    animation: rotate 4s linear infinite, pulse 6s ease-in-out infinite;
}

.gear-2 {
    animation: rotate-reverse 3s linear infinite, pulse 7s ease-in-out infinite;
}

.gear-3 {
    animation: rotate 5s linear infinite, pulse 8s ease-in-out infinite;
}

.traffic-cone {
    animation: bounce 3s ease-in-out infinite;
}

.cone-1 {
    animation-delay: 0.5s;
}

.cone-2 {
    animation-delay: 1s;
}

.toolbox {
    animation: bounce 2.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Page load animations */
.maintenance-content {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.illustration {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Floating particles */
.container::before,
.container::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 107, 53, 0.6);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
}

.container::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.container::after {
    top: 60%;
    right: 15%;
    animation-delay: 4s;
    background: rgba(102, 126, 234, 0.6);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) translateX(-5px);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) translateX(-10px);
        opacity: 1;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content div {
    color: #333;
    line-height: 1.4;
}

.toast-content strong {
    color: #ff6b35;
}

/* Error message styles */
.error-message {
    animation: slideInError 0.3s ease-out;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Mobile Swipe Hint */
.mobile-hint {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: fadeInOut 3s ease-in-out;
    z-index: 1000;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    10%, 90% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) and (hover: none) {
    .mobile-hint {
        display: block;
        animation-delay: 2s;
    }
}

/* Enhanced focus styles for accessibility */
.btn:focus,
input:focus,
button:focus {
    outline: 3px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

/* Improved loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Mobile-First Responsive Design */
@media (max-width: 1024px) {
    .maintenance-content {
        padding: 45px 35px;
        gap: 45px;
        margin: 15px;
    }
    
    .content h1 {
        font-size: 3.2rem;
    }
    
    .illustration {
        height: 350px;
    }
    
    .btn {
        padding: 16px 30px;
        min-width: 170px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .maintenance-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 35px 25px;
        text-align: center;
        margin: 0;
        border-radius: 25px;
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    
    .illustration {
        height: 280px;
        order: -1;
        margin-bottom: 20px;
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .content {
        padding: 0 10px;
    }
    
    .content h1 {
        font-size: 2.6rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .content h1::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
    
    .description {
        text-align: center;
        padding: 25px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        margin-bottom: 30px;
        position: relative;
        padding-left: 25px;
    }
    
    .description::before {
        display: none;
    }
    
    .status-badge {
        justify-content: center;
        padding: 15px 25px;
        font-size: 1rem;
        border-radius: 30px;
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
    }
    
    .buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 35px;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
        padding: 18px 25px;
        font-size: 1.1rem;
        border-radius: 15px;
        font-weight: 700;
        min-height: 56px; /* Touch-friendly height */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    .btn svg {
        width: 18px;
        height: 18px;
    }
    
    .btn.primary {
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
        box-shadow: 
            0 6px 20px rgba(255, 107, 53, 0.4),
            0 0 0 1px rgba(255, 107, 53, 0.1);
    }
    
    .btn.primary:active {
        transform: scale(0.98);
        box-shadow: 
            0 4px 12px rgba(255, 107, 53, 0.3),
            0 0 0 1px rgba(255, 107, 53, 0.1);
    }
    
    .btn.secondary {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        border: 2px solid rgba(51, 51, 51, 0.2);
        backdrop-filter: blur(10px);
    }
    
    .btn.secondary:active {
        transform: scale(0.98);
        background: rgba(51, 51, 51, 0.9);
        color: white;
    }
    
    .contact-info {
        padding: 25px 20px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .contact-info p {
        font-size: 1.05rem;
        margin-bottom: 20px;
        font-weight: 600;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-details span {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile-optimized gears */
    .gear-1, .gear-2, .gear-3 {
        opacity: 0.6;
    }
    
    .gear-1 {
        width: 60px;
        height: 60px;
        top: 30px;
        right: 30px;
    }
    
    .gear-2 {
        width: 50px;
        height: 50px;
        top: 120px;
        right: 10px;
    }
    
    .gear-3 {
        width: 70px;
        height: 70px;
        bottom: 50px;
        left: 15px;
    }
    
    .progress-container {
        margin: 0 10px;
        bottom: 15px;
        padding: 20px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .toast-notification {
        top: 20px;
        right: 15px;
        left: 15px;
        max-width: none;
        transform: translateY(-100px);
        border-radius: 20px;
        padding: 25px;
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    }
    
    .container {
        padding: 10px;
        min-height: calc(100vh - 20px);
    }
    
    .maintenance-content {
        padding: 30px 20px;
        margin: 0;
        border-radius: 25px;
        gap: 25px;
        backdrop-filter: blur(25px);
        background: rgba(255, 255, 255, 0.92);
    }
    
    .illustration {
        height: 220px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .content h1 {
        font-size: 2.2rem;
        margin-bottom: 18px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .content h1::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }
    
    .description {
        font-size: 1rem;
        padding: 20px 18px;
        line-height: 1.6;
        border-radius: 18px;
        margin-bottom: 25px;
    }
    
    .status-badge {
        padding: 12px 20px;
        font-size: 0.95rem;
        margin-bottom: 25px;
        border-radius: 25px;
    }
    
    .status-dot {
        width: 10px;
        height: 10px;
    }
    
    .buttons {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 18px;
        letter-spacing: 0.8px;
        font-weight: 700;
    }
    
    .btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Enhanced touch feedback */
    .btn:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
    
    .contact-info {
        padding: 20px 18px;
        border-radius: 18px;
    }
    
    .contact-info p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .contact-details span {
        padding: 10px 16px;
        font-size: 0.95rem;
        border-radius: 20px;
        font-weight: 600;
    }
    
    /* Mobile-optimized modal */
    .modal-content {
        margin: 8% auto;
        padding: 25px 20px;
        border-radius: 25px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal-content h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
        margin-top: 15px;
    }
    
    .modal-content input {
        padding: 16px 18px;
        font-size: 1rem;
        border-radius: 18px;
        margin-bottom: 20px;
        border: 2px solid rgba(51, 51, 51, 0.1);
    }
    
    .modal-content button {
        padding: 16px;
        font-size: 1rem;
        border-radius: 18px;
        min-height: 52px;
    }
    
    .close {
        width: 36px;
        height: 36px;
        font-size: 28px;
        top: 12px;
        right: 12px;
    }
    
    /* Mobile progress bar */
    .progress-container {
        padding: 18px;
        border-radius: 18px;
        bottom: 12px;
        margin: 0 8px;
    }
    
    .progress-bar {
        height: 10px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .progress-text {
        font-size: 0.95rem;
    }
    
    /* Mobile worker character */
    .worker-head {
        width: 45px;
        height: 45px;
    }
    
    .worker-head::before {
        top: 8px;
        left: 8px;
        width: 30px;
        height: 22px;
    }
    
    .worker-shirt {
        width: 60px;
        height: 45px;
    }
    
    .worker-overalls {
        width: 70px;
        height: 55px;
    }
    
    .worker-arm {
        width: 35px;
        height: 14px;
        right: -28px;
        top: 20px;
    }
    
    .worker-tool {
        width: 25px;
        height: 8px;
        right: -40px;
        top: 30px;
    }
    
    /* Mobile toast */
    .toast-notification {
        top: 15px;
        right: 10px;
        left: 10px;
        padding: 20px;
        border-radius: 18px;
        font-size: 0.95rem;
    }
    
    .toast-content {
        gap: 12px;
    }
    
    .toast-icon {
        font-size: 1.3rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 8px;
        min-height: calc(100vh - 16px);
    }
    
    .maintenance-content {
        padding: 25px 15px;
        border-radius: 20px;
        gap: 20px;
    }
    
    .illustration {
        height: 180px;
        padding: 10px;
    }
    
    .content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .content h1::after {
        width: 50px;
        height: 2.5px;
    }
    
    .description {
        font-size: 0.95rem;
        padding: 16px 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .status-badge {
        padding: 10px 16px;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
    }
    
    .buttons {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 14px 16px;
        font-size: 0.9rem;
        min-height: 48px;
        letter-spacing: 0.6px;
        border-radius: 16px;
    }
    
    .btn svg {
        width: 14px;
        height: 14px;
    }
    
    .contact-info {
        padding: 16px 14px;
    }
    
    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .contact-details span {
        padding: 8px 12px;
        font-size: 0.9rem;
        border-radius: 16px;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 20px 15px;
        border-radius: 20px;
        max-height: 85vh;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .modal-content input {
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 16px;
    }
    
    .modal-content button {
        padding: 14px;
        font-size: 0.95rem;
        min-height: 48px;
        border-radius: 16px;
    }
    
    .close {
        width: 32px;
        height: 32px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
    
    .progress-container {
        padding: 15px;
        bottom: 10px;
        margin: 0 6px;
        border-radius: 16px;
    }
    
    .progress-bar {
        height: 8px;
        margin-bottom: 10px;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
    
    .toast-notification {
        top: 10px;
        right: 8px;
        left: 8px;
        padding: 16px;
        border-radius: 16px;
        font-size: 0.9rem;
    }
    
    .toast-content {
        gap: 10px;
    }
    
    .toast-icon {
        font-size: 1.2rem;
    }
    
    /* Ultra-small worker for tiny screens */
    .worker-head {
        width: 35px;
        height: 35px;
    }
    
    .worker-head::before {
        top: 6px;
        left: 6px;
        width: 24px;
        height: 18px;
    }
    
    .worker-shirt {
        width: 45px;
        height: 35px;
    }
    
    .worker-overalls {
        width: 55px;
        height: 42px;
    }
    
    .worker-arm {
        width: 28px;
        height: 12px;
        right: -22px;
        top: 16px;
    }
    
    .worker-tool {
        width: 20px;
        height: 6px;
        right: -32px;
        top: 24px;
    }
}

/* Touch-specific enhancements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 56px; /* iOS Human Interface Guidelines */
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease-out;
    }
    
    .gear:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .contact-details span:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .status-badge {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .worker-head::after {
        border-radius: 50%;
    }
    
    .progress-bar {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
    
    .maintenance-content {
        border: 0.5px solid rgba(255, 255, 255, 0.3);
    }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .maintenance-content {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .description {
        background: rgba(255, 255, 255, 0.1);
        color: #e0e0e0;
    }
    
    .contact-info {
        background: rgba(255, 255, 255, 0.1);
        color: #e0e0e0;
    }
    
    .contact-details span {
        background: rgba(255, 255, 255, 0.15);
        color: #f0f0f0;
    }
}
