* {
    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%;
}


/* 배경 이미지 */
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;
    /* 패딩값 */
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 124px;
}

/* 1. 버튼 기본 스타일 수정: position: relative 추가 */
.buttons a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    font-size: 34px;
    font-weight: 600;
    width: 276px;
    height: 65px;
    border: 2px solid #000;
    text-decoration: none;
    transition: 0.2s ease;
    /* ✨ 아이콘 배치를 위해 relative 설정 */
    position: relative;
    /* ✨ 배경색 전환을 위해 background-color에 transition 추가 */
    transition: background-color 0.3s ease, transform 0.2s ease;


    opacity: 0;
    transform: translateY(80px);
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.8s;
}

/* ✨ 1. buttons a:hover 수정: 배경색 변경 제거 */
.buttons a:hover {
    /* transform: translateY(-3px); */
    /* 이전 배경색 변경(#e0e0e0)을 제거하거나 투명하게 유지 */
    /* background-color: #e0e0e0; */
    background-color: #ffffff;
    /* 기존 색상을 유지하는 것이 오버레이 느낌에 더 적합 */
}

/* ✨ 2. 호버 아이콘 컨테이너 (오버레이 레이어 역할) */
.hover-icon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    /* ✨ 초기에는 완전히 투명 (숨김) */
    background-color: transparent;
    opacity: 0;

    pointer-events: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    /* 배경색과 투명도 모두 전환 효과 적용 */
    z-index: 10;
}

/* ✨ 3. 호버 시 오버레이 활성화 */
.buttons a:hover .hover-icon-container {
    /* ✨ 호버 시 반투명한 회색 배경색 적용 (오버레이 효과) */
    background-color: rgba(200, 200, 200, 0.7);
    /* R,G,B (회색) + A(투명도 70%) */
    opacity: 1;
    /* 오버레이가 나타나도록 opacity 1로 설정 */
}

/* 4. 호버 아이콘 크기 설정 (이미지 자체는 계속 중앙에 표시) */
.hover-icon-container .hover-icon {
    /* width: 40px;  */
    height: 35px;
    /* 호버 아이콘은 오버레이 색상 위에서 보여야 하므로 추가적인 스타일은 필요 없음 */
}

/* 텍스트 컨테이너 */
.buttons a span {
    /* 텍스트는 왼쪽에 고정 */
    flex-grow: 0;
    text-align: left;
}

/* 이미지 컨테이너 */
.buttons a img.arrow-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.btn-orange {
    color: black;
    background-color: #FF7B57;
}

.btn-blue {
    color: black;
    background-color: #61D2FF;
}

.btn-cream {
    color: black;
    background-color: #FFFFCE;
}

/* VIDEO 제목과 이미지 */
.title-container {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 40px;
    margin-bottom: 159px;
    margin-top: 159px;
    margin-left: 57px;

    opacity: 0;
    transform: translateY(80px);
    animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 1.3s;
    /* 버튼들 다 뜬 후 등장 */
}

.title-container img {
    width: 215px;
    height: auto;
    /* transform: rotate(37deg); */
}

.title {
    font-size: 190px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 18px;
}


/* 갤러리 (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: 320px;
    height: 320px;
    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: 34px;
    font-size: 25px;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 65px;
}

.gallery-item p strong {
    font-weight: 600;
}

.thumb-circle {
    /* width: 320px;
    height: 320px; */
    /* border-radius: 50%; */
    overflow: visible;
}

.thumb-circle img {
    width: 422px;
    height: 422px;
    object-fit: cover;
}

footer {
    position: relative;
    width: 100%;
    height: 150px;
    text-align: center;
    padding: 40px 40px 20px;
    font-size: 16px;
    color: #000;
    /* background: transparent;*/
    background: linear-gradient(to bottom,
            #FFFFFF 30%,
            #2DBFFF 100%);
    align-content: end;
}

/* 하단 그라디언트 이미지 배경임 안건드는게 좋음 */
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: 20px;
    left: 20px;
        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;
    }

    .hover-icon-container .hover-icon {
    /* width: 40px;  */
    height: 20px;
    /* 호버 아이콘은 오버레이 색상 위에서 보여야 하므로 추가적인 스타일은 필요 없음 */
}

    .title-container {
        margin-top: 0px;
        margin-left: 5px;
        margin-bottom: 20px;
        gap: 10px;
    }

    .title-container img {
        width: 60px;
    }

    .title {
        font-size: 49px;
    }



    .gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 25px;
        justify-items: center;
        margin: 0 auto;
    }

    .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;
    }
}