* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 글자 폰트랑 배경색 지정하는 부분, color는 기본 글자 색상 */
body {
    font-family: 'Pretendard', sans-serif;
    background-color: #FFFFFF;
    color: #000;
    overflow-x: hidden;
    /* 이건 가로 스크롤바 숨기는 옵션 */
}

header {
    position: relative;
    width: 100%;
}


@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 배경 이미지 */
header .header-background {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* 상단 로고 */
header .top-logo {
    position: absolute;
    top: 30px;
    left: 46px;
    width: 201px;
    height: auto;
    z-index: 10;
}

main {
    text-align: center;
    /* 중앙 정렬, 건들지 않길 권장 */
    position: relative;
    padding: 40px 20px 10px;
    /* 패딩값 */
}

/* VIDEO 제목과 이미지 */
.title-container {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 40px;
    margin-bottom: 159px;
    margin-top: 84px;
    margin-left: 30px;

    opacity: 0;
    transform: translateY(80px);
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.5s;
}

.title-container img {
    width: 431px;
    height: auto;
    /* transform: rotate(37deg); */
}

.title {
    font-size: 189px;
    font-weight: 600;
    letter-spacing: 2px;
}

@keyframes fadeUp {
    0% {
      opacity: 0;
      transform: translateY(80px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
/* 갤러리 (3행 고정) */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 51px;
    justify-items: center;
    margin: 0 auto;
    margin: 50px 247px 0px;
}

.gallery-item {
    text-align: center;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.gallery-item.visible {
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }

.gallery-item img {
    width: 422px;
    height: 422px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
    /* margin-bottom: 10px; */
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-item p {
    margin-top: 33px;
        font-size: 25px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 65px;
}

.gallery-item p strong {
    font-weight: 600;
}

footer {
    position: relative;
    width: 100%;
    height: 150px;
    text-align: center;
    padding: 40px 40px 20px;
    font-size: 16px;
    color: #000;
    background: linear-gradient(to bottom,
            #FFFFFF 30%,
            #2DBFFF 100%);
    align-content: end;
    margin-top: 60px;

    z-index: 1;
}

/* 하단 그라디언트 이미지 배경임 안건드는게 좋음 */
footer img.gradient {
    /* position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    object-fit: cover;
    z-index: -1; */
    display: none;
}

/* 건들지 말자 */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
    width: 100%;
    margin-bottom: 10px;

}

.footer-logo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 40px;
}

/* 하단 로고 이미지 */
.footer-logo img {
    width: 218px;
    /* 가로 크기 */
    /* 최대 가로 너비를 지정해줌, 없어도 됌 */
}

@media (max-width: 768px) {
    .header-info {
        left: 20px;
        top: 20px;
        font-size: 10px;
    }

    header .header-background {
        height: 150px;
    }

    header .top-logo {
            top: 22px;
    left: 33px;
        width: 67px;
    }

    main {
        padding: 20px 10px 10px;
    }

    .buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3개씩 가로 정렬 */
        grid-auto-rows: auto;
        gap: 12px;
        margin: 0px 15px;
    }

    .buttons a {
        width: 100%;
        /* 칸에 맞게 자동 확장 */
        height: 30px;
        /* 모바일 버튼 크기 줄이기 */
        font-size: 14px;
        padding: 6px 5px;
            border: 1px solid #000;
    }

    .buttons a img.arrow-icon {
        width: 12px;
        height: 12px;
    }

    .buttons a:nth-child(1) {
        order: 1;
    }

    .buttons a:nth-child(3) {
        order: 2;
    }

    .buttons a:nth-child(5) {
        order: 3;
    }

    .buttons a:nth-child(2) {
        order: 4;
    }

    .buttons a:nth-child(4) {
        order: 5;
    }

    .buttons a:nth-child(6) {
        order: 6;
    }

    .title-container {
        margin-top: 0px;
        margin-left: 5px;
        margin-bottom: 20px;
        gap: 10px;
    }

    .title-container img {
        width: 60px;
    }

    .title {
        font-size: 41px;
    }



    .gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 25px;
        justify-items: center;
        margin: 55px auto 0;
    }

    .gallery-item {
        text-align: center;
    }

    .gallery-item img {
        width: 151px;
        height: 151px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #000;
        transition: transform 0.3s ease;
    }

    .gallery-item img:hover {
        transform: scale(1.05);
    }

.gallery-item p {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 21px;
}

.gallery-item p strong {
    font-weight: 600;
}


    /* ✅ 3) footer가 모바일에서도 수평 유지 */
    .footer-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 0;
                margin-bottom: 18px;
    }

    footer {
        height: 70px;
        padding: 0px 20px;
    }

    /* ✅ 3개의 요소를 각각 33% 너비로 강제 */
    .footer-content>p,
    .footer-content>.footer-logo {
        width: 33.33%;
        text-align: center;
        overflow: hidden;
        /* 혹시 모를 넘침 방지 */
        white-space: nowrap;
        /* 줄바꿈 금지 */
        margin: 0px;
    }

    /* ✅ 로고 이미지 크기 축소 */
    .footer-logo img {
        width: 90px;
        height: auto;
    }

    /* ✅ 글자 크기도 모바일 사이즈로 줄이기 */
    .footer-content p {
        font-size: 7px;
        line-height: 1.2;
    }
}