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

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: y mandatory;
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    line-height: 1.6;
    scrollbar-width: none;
    overscroll-behavior: none;
    position: relative;
}

body::-webkit-scrollbar {
    display: none;
}

/* 모든 섹션을 100vh로 설정 */
section {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
}

p {
    white-space: pre-line;
}

img {
    display: block;
}

.description {
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%; /* 32px */
    letter-spacing: -0.4px;
}

/* Container */
.container {
    margin: 0 auto;
    text-align: center;
    align-items: center;
}
.cta-button {
    margin-top: 28px;
    display: inline-block;
    border-radius: 100px;
    background: #01172e;
    font-family: Montserrat;
    font-size: 18px;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 20px;
    min-width: 150px;
    max-height: 56px;
    width: fit-content;
    color: white;
    outline: none;
    border: none;
}

.section-title {
    padding-left: 100px;
    color: #030406;
    font-size: 34px;
    font-style: normal;
    line-height: 100%;
    letter-spacing: -2.08px;
    text-align: left;
    margin: 30px auto;
    text-align: left;
    font-weight: 400;
    width: 100%;
    font-family: "DM Serif Display", serif;
    font-style: italic;
}

/* Hero Section */
.intro-section {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;

    .intro-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        z-index: 1;
    }

    .intro-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;

        h1.title {
            font-size: 100px;
            font-weight: 500;
            font-family: "DM Serif Display", serif;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
            animation: fadeInUp 2s ease;
        }
        p {
            font-size: 28px;
            animation: fadeInUp 2s ease 0.2s both;
            letter-spacing: 5px;
        }
    }
}

/* Features Section */
.features-section {
    align-items: center;

    /* 패럴렉스 애니메이션을 위한 초기 상태 */
    .features-logo,
    .features-img,
    p {
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: opacity, transform;
        font-size: 16px;
    }

    .features-logo {
        width: 40vw;
        padding-top: 50px;
        margin: 0 auto 10px auto;
    }
    .features-name {
        font-size: 50px;
        font-weight: 700;
        letter-spacing: -1.2px;
        padding-top: 80px;
        color: #030406;
        span {
            font-size: 80px;
            margin: 0 40px;
            font-weight: 500;
        }
    }
    .features-img {
        width: 50vw;
        margin: 48px auto 0 auto;
    }
    .cta-button:hover {
        background: #17191a;
    }
}

/* About Section */
.brand-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: white;

    /* 패럴렉스 애니메이션을 위한 전환 효과 */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;

    .section-title {
        margin: 30px auto;
        text-align: left;
        width: 100%;
    }
    .brands-grid {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100vw;
    }

    .brands-grid div {
        position: relative;
    }

    .brands-grid div img {
        width: 33.3vw;
        flex: 1;
        height: auto;
        object-fit: cover;
        max-height: 70vh;
    }

    .brands-grid .brand-content {
        position: absolute;
        bottom: 0;
        left: 0;
        font-size: 42px;
        font-weight: 700;
        line-height: 100%;
        letter-spacing: -0.96px;
        color: #fff;
        z-index: 100;
        padding: 0 0 40px 40px;
        width: 100%;
    }
    .brands-grid .brand-content::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.5) 65%,
            rgba(0, 0, 0, 0.3) 75%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    .brands-grid .brand-name {
        text-align: left;
    }

    .brands-grid .brand-description {
        opacity: 0;
        width: 100%;
        font-size: 15px;
        font-weight: 400;
        line-height: 160%;
        letter-spacing: -0.3px;
        text-align: left;
        color: #fff;
        white-space: pre-line;
        height: 0;
    }
    .brands-grid > div:hover .brand-description {
        display: block;
        animation: fadeInUp 1s ease 0.2s both;
        min-height: 200px;
        /* background-color: rgba(255, 255, 255, 0.3); */
    }
}

/* Team Section */
.team-section {
    align-items: center;
    background: white;
    overflow: scroll;
    /* 초기 상태: 투명도 0으로 숨김 */
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;

    /* 패럴렉스 애니메이션을 위한 전환 효과 */
    .team-content,
    .vision-content {
        /* 초기 상태: 살짝 아래에서 투명하게 시작 */
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: opacity, transform;
    }

    /* 보이는 상태로 변경될 때 적용되는 클래스 */
    &.visible {
        opacity: 1;
        transform: translateY(0);

        /* team-content와 vision-content의 연쇄 애니메이션 */
        .team-content {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.2s;
        }

        .vision-content {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 2s;
        }
    }

    .section-title {
        padding-top: 30px;
    }

    .team-content,
    .vision-content {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 2rem;
        margin: 30px;

        img {
            max-width: 580px;
            height: auto;
            object-fit: cover;
            aspect-ratio: 1.4/1;
        }

        p {
            display: inline-block;
            text-align: left;
            min-width: 40%;
            margin: 0;
            span.description-title {
                display: inline-block;
                margin-bottom: 25px;
                font-size: 34px;
                font-weight: 600;
                line-height: 140%;
                letter-spacing: -0.8px;
            }
            span.highlight {
                color: #fff;
                background-color: #4c32d4;
                padding: 4px;
            }
        }
    }

    .vision-content {
        margin-top: 100px;
        p {
            text-align: right;
        }
    }
}

/* Buccl Section */
.buccl-section {
    align-items: center;
    h2.section-title {
        padding-top: 140px;
        margin-bottom: 100px;
        font-size: 35px;
        font-weight: 600;
        line-height: 100%;
        letter-spacing: -0.8px;
        text-align: center;
        font-family: unset;
        font-style: unset;
    }
    .features-grid {
        padding: 30px 40px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .feature-card {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: #f7f8ff;
        box-shadow: 1px 0px 5px 1px rgb(183 183 183 / 31%);
        padding: 40px;
        border-radius: 10px;
        font-size: 16px;
        /* max-width: 24%; */

        img {
            margin-bottom: 18px;
            width: 35px;
        }

        .feature-number span {
            font-size: 30px;
        }
        h3 {
            font-size: 21px;
            font-style: normal;
            font-weight: 600;
            line-height: 100%;
            letter-spacing: -0.56px;
        }
        p {
            margin-top: 15px;
            white-space: pre-line;
        }
        p strong {
            color: #4c32d4;
        }
    }
}

/* Review Carousel */
.review-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to bottom, #5085ea 0%, #030406 100%);
    /* background: linear-gradient(to bottom, rgb(3, 106, 144) 0%, #030406 100%); */
    color: white;

    .review-title {
        padding-right: 100px;
        p.section-title {
            padding-left: 0;
        }
    }

    .review-title p.section-title {
        margin-top: 0;
        color: white;
        text-align: left;
    }

    .review-title p.description {
        text-align: left;
        margin-left: 0;
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 130%;
        margin-top: 20px;
        color: white;
    }

    .review-carousel {
        width: 60%;
        position: relative;
        max-width: 1200px;
        margin: 0;
    }
}

.review-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    .carousel-container {
        overflow: hidden;
        border-radius: 15px;
        position: relative;
    }

    .carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }
    .carousel-slide {
        display: flex;
        gap: 1rem;
        min-width: 100%;
        padding: 0 1rem;
    }

    .carousel-slide img {
        flex: 1;
        width: 0;
        height: 300px;
        object-fit: cover;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }

    .carousel-slide img:hover {
        transform: scale(1.05);
    }
    .carousel-controls {
        margin: 20px;
        float: right;
    }

    .carousel-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    .carousel-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    .carousel-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .carousel-dots {
        display: flex;
        /* gap: 0.5rem; */
    }

    .dot {
        width: 15px;
        height: 2px;
        /* border-radius: 50%; */
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background: white;
        /* transform: scale(1.2); */
    }

    .dot:hover {
        background: rgba(255, 255, 255, 0.6);
    }
}

/* CTA Section */
.cta-section {
    position: relative;
    background-image: url(./images/final.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    text-align: center;

    .description {
        color: white;
        padding-top: 38vh;
        letter-spacing: 5px;
    }
    .section-title {
        text-align: center;
        padding-left: 0;
        font-size: 100px;
        font-weight: 400;
        line-height: 100%;
        letter-spacing: -6px;
        color: white;
        font-family: "DM Serif Display", serif;
    }
    .cta-button {
        padding: 15px 40px;
        background: rgb(3, 32, 43);
    }
    .cta-button:hover {
        background: rgb(1, 25, 34);
    }
}

/* Footer */
.footer {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    /* padding: 10px 40px; */
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-family: "Orbitron", "Noto Sans KR", sans-serif;
    .footer-container {
        display: flex;
        justify-content: space-around;
    }
    li {
        list-style: none;
        line-height: 1.2;
    }
    li:hover {
        text-decoration: underline;
        cursor: pointer;
    }
    .copyright {
        text-align: center;
        font-size: 10px;
        font-family: "Noto Sans KR", sans-serif;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.contact-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-modal.show .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.contact-modal h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.contact-modal p {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.6;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-info p {
    text-align: left;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-email-btn {
    display: inline-block;
    background-color: #01172e;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin-top: 16px;
}

.contact-email-btn:hover {
    background-color: #002a5a;
}

/* 모바일 반응형 */

@media (max-width: 768px) {
    .intro-section .container .title {
        line-height: 1.2;
        padding: 0 10px;
    }
    .intro-section .container p {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .features-section {
        .features-name {
            font-size: 2rem;
        }
    }
    .features-section .features-name + p span {
        display: block;
    }
    .features-section .features-img {
        width: 100vw;
        margin-top: 100px;
    }
    .brand-section {
        overflow: scroll;
    }
    .brand-section .brands-grid {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100vw;
        margin-top: 0;
        & div img {
            width: 100vw;
            max-height: 45vh;
        }
        .brand-name {
            font-size: 2rem;
        }
        .brand-description {
            font-size: 1rem;
        }
    }
    .team-section {
        & .team-content {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 20px;
            width: 100vw;
            margin: 0;
        }
        & .vision-content {
            flex-direction: column-reverse;
            align-items: center;
            justify-content: center;
            gap: 20px;
            width: 100vw;
            margin: 0;
            margin-top: 60px;
        }
    }
    .team-section .description {
        font-size: 1rem;
    }
    .team-section {
        max-height: 100vh;
        & .team-content,
        & .vision-content {
            & p {
                max-width: 100vw;
                font-size: 0.9rem;
                span.description-title {
                    font-size: 1.5rem;
                }
            }
            & img {
                max-width: 100vw;
            }
        }
    }

    .buccl-section {
        overflow: scroll;
        h2.section-title {
            padding-top: 40px;
            margin-bottom: 20px;
            font-size: 1.5rem;
            text-align: left;
            padding-left: 40px;
        }
    }
    .buccl-section {
        & .features-grid {
            grid-template-columns: repeat(1, 1fr);
        }
        & .feature-card {
            padding: 30px;
            gap: 0px;
        }
    }
    .review-section {
        flex-direction: column;
        & .review-carousel {
            width: 100vw;
        }
        & .review-title {
            padding-right: 0;
        }
        & .review-title p.section-title {
            padding-left: 40px;
        }
    }
    .cta-section {
        .description {
            padding-top: 30vh;
            font-size: 1rem;
            letter-spacing: 2px;
        }
        .section-title {
            margin-top: 0;
        }
    }
}
