* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Popins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('/static/img/layer1.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/plat.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 10; 
}

.overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/comp.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 11; 
}

.overlay3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/gear.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 12; 
}

.overlay4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/usb.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 13; 
}

.overlay5 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/arrow-to-up.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 14;
    animation: moveUpDown 3s infinite alternate; 
}

@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); 
    }
    100% {
        transform: translateY(0);
    }
}

.overlay6 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/arrow-to-down.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 15;
    animation: moveUpDown 3s infinite alternate; 
}

.overlay7 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/folder.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 16; 
}

.overlay8 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/window.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 17; 
}

.overlay9 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/alt.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 18;
    animation: moveUpDown 3s infinite alternate; 
}

.overlay10 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/ctrl.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 19;
    animation: moveUpDown 2s infinite alternate; 
}

.overlay11 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/inter.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1; 
    z-index: 20;
    animation: moveUpDown 4s infinite alternate; 
}

.overlay13 {
    position: absolute;
    top: 40%;
    right: 20%;
    transform: translate(-50%, -50%); 
    width: 20%;
    height: 30%;
    background-color: rgba(0, 0, 0, 0);
}

/* Updated content styles */
.content-container {
    position: relative;
    z-index: 100;
    width: 45%;
    max-width: 700px;
    padding: 0;
    color: white;
    margin-right: auto;
    margin-left: 3px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.main-text-box {
    background-color: rgba(102, 51, 153, 0.8);
    border: 3px solid #00ced1;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.5);
    animation: pulse 3s infinite;
    margin-bottom: 20px;
    width: 100%;
}

.main-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.main-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Services box styles */
.services-box {
    background-color: rgba(102, 51, 153, 0.8);
    border: 3px solid #00ced1;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.5);
    animation: pulse 3s infinite;
    width: 100%;
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(0, 206, 209, 0.5); }
    50% { box-shadow: 0 0 30px rgba(0, 206, 209, 0.8); }
    100% { box-shadow: 0 0 20px rgba(0, 206, 209, 0.5); }
}

.services-container {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.service {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.7s ease-in-out;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    width: 100%;
}

.service.active {
    opacity: 1;
    transform: translateX(0);
}

.service i {
    color: #00ced1;
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.animated-text {
    display: inline-block;
    position: relative;
}

.animated-text::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00ced1;
    transform-origin: bottom right;
    transition: transform 0.5s ease-out;
}

.service.active .animated-text::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    body {
        background: url('/static/img/layer1.jpg') no-repeat center center fixed;
        background-size: cover;
        display: block;
        padding-top: 70px;
    }

    /* Remove all overlay elements on mobile */
    .overlay,
    .overlay2,
    .overlay3,
    .overlay4,
    .overlay5,
    .overlay6,
    .overlay7,
    .overlay8,
    .overlay9,
    .overlay10,
    .overlay11,
    .overlay13 {
        display: none;
    }

    .content-container {
        width: 90%;
        max-width: none;
        margin: 0 auto;
        padding: 0 10px;
    }
    
    .main-text-box {
        padding: 15px;
        animation: none;
        margin-bottom: 15px;
    }
    
    .main-text h1 {
        font-size: 2rem;
    }
    
    .main-text p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .services-box {
        padding: 15px;
        animation: none;
    }
    
    .services-container {
        height: auto;
        overflow: visible;
        padding-bottom: 10px;
    }
    
    .service {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .service i {
        font-size: 1.2rem;
    }

    .animated-text::after {
        display: none !important;
    }
    
    /* Дополнительные гарантированные стили для отключения анимации */
    .services-container .service {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .services-container .service .animated-text::after {
        display: none !important;
    }
}

/* Additional styles for very small screens */
@media (max-width: 400px) {
    .main-text h1 {
        font-size: 1.8rem;
    }
    
    .service {
        font-size: 0.95rem;
    }
    
    .main-text p {
        font-size: 1rem;
    }
}