@font-face {
    font-family: 'Retro Gaming';
    src: url('assets/fonts/Retro Gaming.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

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

.start-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    min-height: 100vh;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    scroll-snap-align: start;
}
.second-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 100vh;
    padding: 0 5%;
    margin: 0 auto;
    background-color: #111;
    scroll-snap-align: start;
    position: relative;
}

.logo {
    flex: 0 0 auto;
}

.logo-image {
    width: 220px;
    height: 220px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.girl-one-image {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 20px;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.overlay-text {
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
    transition: opacity 0.3s ease;
}

.overlay-text.white {
    color: #ffffff;
}

.overlay-text.red {
    color: #ff0000;
}

.text-content {
    flex: 1;
    text-align: right;
    margin-left: 5%;
}

.text-line {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.changing-word {
    color: #ff0000;
    font-weight: 600;
    position: relative;
    display: inline-block;
    min-width: 120px;
    text-align: left;
}

.changing-word::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff0000;
    border-radius: 2px;
}

/* Анимация смены слов */
.changing-word.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

.changing-word.fade-in {
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .start-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 5%;
        height: 100vh;
        min-height: 100vh;
    }

    .second-container {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        min-height: 100vh;
        padding: 0 0;
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
    }
    
    .overlay-text {
        font-size: 1.2rem;
    }
    
    .logo {
        margin-bottom: 2rem;
        margin-top: 30vh;
    }
    
    .text-content {
        text-align: center;
        margin-left: 0;
    }
    
    .text-line {
        font-size: 2.5rem;
    }
    
    .changing-word {
        min-width: 100px;
        text-align: center;
    }

    .girl-one-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .text-line {
        font-size: 2rem;
    }
    
    .logo-image {
        width: 120px;
        height: 120px;
    }
}
