/* css/home.css */

main { flex: 1; width: 100%; display: flex; flex-direction: column; }
#menu-container { margin-top: auto; }   /* now measured inside main */

h1 { margin: 0; font: inherit; }

.artist-img {
    position: fixed;
    top: 19.2rem;
    right: 6rem;
    opacity: 0;
    z-index: -1;
    width: min(210px, 32vw);
    height: auto;
    animation: appear 1s ease-in-out forwards; 
}


#name-container {
    display: flex;
    justify-content: space-between;   
    color: rgb(39, 34, 34);
    width: 100%;
    margin: 1rem auto 2rem 2rem;
}

.name-text-en {
    position: relative;

    font-size: clamp(3.8rem, 11vw, 7rem);
    letter-spacing: 0.2rem;
    transform: scaleX(1.1) translateX(5%);
    font-weight: bold;
    filter: blur(0.01rem);
    opacity: 0.9;
    margin: 0 1rem;
}
.name-text-ch {
    position: relative;
    
    font-size: 6rem;
    transform: scaleX(1.1) translateX(-30%);
    font-weight: bold;
    filter: blur(0.05rem);
    opacity: 0.9;
    margin: -1rem 1rem;
}

.description-text {
    position: relative;
    margin: -2.5rem 1.2rem 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: 0.1rem;
    transform: scaleX(1.1) translateX(5%);
    opacity: 0.6;
    filter: blur(0.04rem);
}
.description-text-ch {
    position: absolute;
    margin: -0.5rem 3rem 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: 0.1rem;
    transform: scaleX(1.1) translateX(5%);
    opacity: 0.8;
    filter: blur(0.01rem);
}


#menu-container {
    width: auto;
    align-self: flex-start;
    margin: auto 0 0 clamp(1.6rem, 6vw, 10rem);
}
.home-item {
    color: rgb(39, 34, 34);
    overflow-wrap: break-word; 
    position: relative;
    margin: 1px 0 0 20px;
    line-height: 0.84; 
    width: 90vw;
    font-size: 8rem;
    letter-spacing: 0.05em;
    transform: scaleX(1.1);
    filter: blur(1.2px);
    transition: all 1s ease-out;
}
.home-item:hover {
    color: rgb(233, 190, 195);
    transition: all 0.3s ease-out;
    filter: blur(0.3px);
}
.home-item:active {
    color: rgba(228, 115, 124, 0.633);
    transition: all 0.2s ease-out;
}



footer {
    margin-top: 0;
}
.copyright-text {
    color: rgb(39, 34, 34);
    position: relative;
    font-size: 12px;
    transform: scaleX(1.1);
    letter-spacing: 0.1rem;
    margin: 1rem auto 1rem;
    opacity: 0.3;
    transition: all 0.6s ease-in-out;
}
.copyright-text:hover {
    opacity: 1;
    transition: all 0.2s ease-in-out;
}


.home-link {
    opacity: 0;
    display: block;
    color: black; 
    text-decoration: none;
    animation: slideInLeft 2s ease-out forwards; 
}
.home-link:nth-child(1) { animation-delay: 0.5s; }
.home-link:nth-child(2) { animation-delay: 0.1s; }
.home-link:nth-child(3) { animation-delay: 1s; }
.home-link:nth-child(4) { animation-delay: 0.3s; }
.home-link:nth-child(5) { animation-delay: 0.7s; }
.home-link:nth-child(6) { animation-delay: 0.2s; }
.home-link:nth-child(7) { animation-delay: 0.1s; }



@keyframes slideInLeft {
  0% {
    transform: translateX(-100vw);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


@media (max-width: 600px) {
    .home-item { font-size: 8rem; }
    .name-text-ch { font-size: 5rem; margin: 0 2rem 0;}
    .description-text { filter: none; }
    .description-text-ch { margin: 0.8rem 3.6rem 0; filter: none; }
}

@media (max-width: 480px) {
    .artist-img {
        top: 18rem;
        right: 6rem;
        width: 35vw;
        height: auto;
    }
    .home-item { font-size: 5.6rem; filter: none; line-height: 1.1;}
    .description-text { margin-top: -1.8rem; }
    .name-text-ch { font-size: 4.5rem; margin: 0 2rem 0; }
    .description-text-ch { margin: -1.6rem 3.6rem 0; }
    #projects { color: rgb(233, 190, 195); }
}

@media (max-width: 440px) {
    .home-item { font-size: 5.6rem; filter: none; line-height: 1.1;}
    .description-text { margin-top: -1.8rem; }
}

@media (max-width: 420px) {
    .home-item { font-size: 5.2rem;}
    .description-text { margin-top: -1.8rem; }
}

@media (max-width: 400px) {
    .home-item { font-size: 5rem;}
}

@media (max-width: 380px) {
    .artist-img {
        top: 16rem;
        right: 5rem;
        width: 36vw;
        height: auto;
    }
    .home-item { font-size: 4.8rem;}
    .description-text { margin-top: -1.6rem; }
    .name-text-ch { font-size: 4.8rem; margin: -0.2rem 1.8rem 0; }
    .description-text-ch { margin: -1.6rem 3.2rem 0; }
}

@media (max-width: 360px) {
    .home-item { font-size: 4.5rem;}
    .name-text-ch { font-size: 4.2rem;}
}

@media (max-width: 346px) {
    .home-item { font-size: 4.2rem;}
}
