* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

#animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: linear-gradient(-45deg, #54b9d0, #ff6f59, #5465ff, #69585f, #2e294e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 18px;
    color: white;
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#ui-overlay {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.main-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.hero-content img {
    display: block;
    margin: 0 auto;
    height: auto;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
    margin: 30px 0;
    color: white;
    line-height: 1.4;
}

.service-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.service-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    max-width: 220px;
    min-width: 180px;
    user-select: none;
    text-decoration: none;
    color: inherit;
}

.service-button:link,
.service-button:visited,
.service-button:hover,
.service-button:active {
    text-decoration: none;
    color: inherit;
}

.service-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-button img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.service-button:hover img {
    transform: scale(1.1);
}

.service-button:active {
    transform: translateY(-2px) scale(0.98);
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.1s ease;
}

.service-button:active img {
    transform: scale(1.05);
}

.service-button span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #ui-overlay {
        padding: 20px;
        justify-content: flex-start;
        padding-top: 60px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-content img {
        width: 90% !important;
        max-width: 400px !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin: 20px 0;
    }
    
    .service-buttons {
        gap: 12px;
        margin-top: 40px;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .service-button {
        flex: 1;
        min-width: 100px;
        max-width: none;
        padding: 20px 10px;
    }
    
    .service-button img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .service-button span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content img {
        width: 95% !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-buttons {
        gap: 8px;
    }
    
    .service-button {
        padding: 15px 8px;
    }
    
    .service-button img {
        width: 50px;
        height: 50px;
    }
    
    .service-button span {
        font-size: 0.75rem;
    }
}