body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #ffffff;
    margin: 0;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

/* Contenedor general */
.intro-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease;

}

/* Efecto de salida */
.fade-out {
    opacity: 0;
}

/*CLOUMNAAAA AJAJA*/
.text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

/* Texto “America” */
.america {
    color: #072767; 
    font-size: 3rem;
    margin: 0;
    position: absolute; 
    top: -30px;  
    left: -10px;  
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    transform: translateX(50px); 
}

/* Texto “Samkwang” */
.logo-text {
    font-weight: bold;
    color: #002060; 
    font-size: 9rem;
    display: flex;
    align-items: center;
    margin: 0;
    position: relative; 
}

/* Letra S proporcional */
.big-s {
    font-size: 11rem;
    font-weight: bold;
    color: #002060;
    transform: scale(0);
    animation: growCenter 1.5s ease-out forwards;
    z-index: 10;
    position: absolute;
}

@keyframes growCenter {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(4); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mover la S hacia la izquierda y reducir tamaño */
.move-left {
    animation: moveToLeft 1s ease-in-out forwards;
}

@keyframes moveToLeft {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(0.8) translateX(-120px);
    }
}
/* Letras con efecto ola */
.wave-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: appear 1.5s forwards; 
}
.wave-america span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: appear 1.5s forwards; 
}

/* Los delays su animacion */
.wave-text span:nth-child(1) { animation-delay: 1.2s; }
.wave-text span:nth-child(2) { animation-delay: 1.4s; }
.wave-text span:nth-child(3) { animation-delay: 1.6s; }
.wave-text span:nth-child(4) { animation-delay: 1.8s; }
.wave-text span:nth-child(5) { animation-delay: 2s; }
.wave-text span:nth-child(6) { animation-delay: 2.2s; }
.wave-text span:nth-child(7) { animation-delay: 2.4s; }

@keyframes appear {
    to { opacity: 1; transform: translateY(0); }
}


.squares {
    position: relative;
    margin-left: 8px;
    width: 60px; 
    height: 40px; 
}

/* Cuadrados base */
.square {
    width: 57px; 
    height: 57px; 
    border-radius: 5px; 
    position: absolute;
    opacity: 0;
    transform-origin: center;
}


.navy1, .navy2 { background: #002060; } 
.blue { background: #00AEEF; }

/* Posiciones finales */

.navy1 {
    top: -8px; 
    left: 20px; 
    animation: moveSquare1 1.5s ease-out forwards;
    animation-delay: 2.8s;
}

.navy2 {
    top: 48px;
    left: 75px;
    animation: moveSquare2 1.5s ease-out forwards;
    animation-delay: 3.2s;
}

.blue {
    top: -34px; 
    left: 108px; 
    animation: moveSquare3 1.5s ease-out forwards;
    animation-delay: 3.2s;
}

/* animaciones de movimiento */
@keyframes moveSquare1 {
    0% { transform: translate(200px, 100px) rotate(0deg); opacity: 0; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

@keyframes moveSquare2 {
    0% { transform: translate(300px, -100px) rotate(0deg); opacity: 0; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

@keyframes moveSquare3 {
    0% { transform: translate(400px, -200px) rotate(0deg); opacity: 0; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}



/*=========== RESPONSIVA GENERAL ============*/


/* Tablets horizontales y pantallas medianas */
@media (max-width: 1024px) {
    .logo-text {
        font-size: 7rem;
    }

    .big-s {
        font-size: 8rem;
    }

    .america {
        font-size: 2.5rem;
        top: -30px;
        left: -5px;
    }

    .squares {
        width: 50px;
        height: 35px;
    }

    .square {
        width: 40px;
        height: 40px;
    }

    .navy1 { left: 10px; top: -5px; }
    .navy2 { left: 55px; top: 40px; }
    .blue  { left: 75px; top: -25px; }
}

/* Tablets verticales */
@media (max-width: 768px) {
    body {
        overflow: hidden;
    }

    .logo-text {
        font-size: 5.5rem;
    }

    .big-s {
        font-size: 6rem;
        font-weight: bold;
        transform: scale(0);
        animation: growCenter 1.5s ease-out forwards;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin-right: 3px;
    }

    .america {
        font-size: 1rem !important;
        position: relative !important;
        top: 0 !important;
        left: 10px; 
        margin-bottom: 5px;
        transform: none !important;
    }

    .wave-text span,
    .wave-america span {
        font-size: 4rem;
    }

    .squares {
        margin-left: 4px;
        width: 45px;
        height: 30px;
    }

    .square {
        width: 32px;
        height: 32px;
    }

    .navy1 { left: 5px; top: -5px; }
    .navy2 { left: 35px; top: 35px; }
    .blue  { left: 55px; top: -20px; }
}


/* Celulares grandes */
@media (max-width: 630px) {

    body {
        align-items: flex-start;
        padding-top: 100px;
    }

    .intro-container {
        transform: scale(0.85);
    }

    .logo-text {
        font-size: 3rem;
    }

    .big-s {
        font-size: 4.8rem;
        font-weight: bold;
        transform: scale(0);
        animation: growCenter 1.5s ease-out forwards;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin-right: 3px;
    }

    .america {
        font-size: 2rem;
        position: relative !important;
        top: 0 !important;
        left: 10px; 
        margin-bottom: 5px;
        transform: none !important;
    }

    .wave-text span,
    .wave-america span {
        font-size: 2.8rem;
    }

    .squares {
        width: 35px;
        height: 20px;
        margin-left: 0px;
    }

    .square {
        width: 25px;
        height: 25px;
    }

    .navy1 { left: 0; top: -3px; }
    .navy2 { left: 22px; top: 25px; }
    .blue  { left: 38px; top: -15px; }
}


/* Celulares grandes */
@media (max-width: 576px) {

    body {
        align-items: flex-start;
        padding-top: 100px;
    }

    .intro-container {
        transform: scale(0.85);
    }

    .logo-text {
        font-size: 3rem;
    }

    .big-s {
        font-size: 4.8rem;
        font-weight: bold;
        transform: scale(0);
        animation: growCenter 1.5s ease-out forwards;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin-right: 3px;
    }

    .america {
        font-size: 2rem;
        position: relative !important;
        top: 0 !important;
        left: 10px; 
        margin-bottom: 5px;
        transform: none !important;
    }

    .wave-text span,
    .wave-america span {
        font-size: 2.8rem;
    }

    .squares {
        width: 35px;
        height: 20px;
        margin-left: 0px;
    }

    .square {
        width: 25px;
        height: 25px;
    }

    .navy1 { left: 0; top: -3px; }
    .navy2 { left: 22px; top: 25px; }
    .blue  { left: 38px; top: -15px; }
}


/* Celulares pequeños */
@media (max-width: 400px) {

    .body{
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
        height: 100vh;
    }

    .intro-container {
        transform: scale(0.75);

    }

  
    .logo-text {
        display: flex;
        align-items: center;
        gap: 2px; 
        white-space: nowrap;
        
    }
    .wave-text span {
        display: inline-block;
        opacity: 0;
        transform: translateY(20px);
        animation: appear 1.5s forwards;
        top: 50%;
    }
    

    .big-s {
        font-size: 4rem;
        font-weight: bold;
        transform: scale(0);
        animation: growCenter 1.5s ease-out forwards;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        margin-right: 3px;
    }

    .america {
        position: relative !important;
        top: 0 !important;
        left: 10px; 
        margin-bottom: 5px;
        transform: none !important;
    }

    .wave-text span{
        font-size: 3rem;
    }
    .wave-america span {
        font-size: 2rem;
    }

    .wave-text {
        white-space: nowrap;
    }

    .square {
        width: 20px;
        height: 20px;
    }

    .navy1 { left: 0; }
    .navy2 { left: 18px; top: 20px; }
    .blue  { left: 30px; top: -12px; }
}

