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

:root {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 모든 전환 및 애니메이션은 --duration의 배수를 사용합니다. */
html {
    --duration: 0.3s;
    scroll-behavior: smooth;
    font-size: 16px; /* 1rem = 16px 기준 */
}
@media ( prefers-reduced-motion: reduce ) {
    html {
        --duration: 0;
        scroll-behavior: auto;
    }
}

body {
    font-family: "Pretendard Variable", sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

body.white {
    font-family: "Pretendard Variable", sans-serif;
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
}

/* Top Section */
.top-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.overlay-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title{
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-title h1 {
    color: #FFF;
    text-align: center;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 3.125rem;
    font-style: normal;
    font-weight: 800;
    line-height: 150%; /* 4.6875rem */
    letter-spacing: -0.09375rem;
    word-break: keep-all;
}

.hero-title h4 {
    color: #FFF;
    text-align: center;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 1.3125rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 1.96875rem */
    letter-spacing: -0.03938rem;
    word-break: keep-all;
}

.control-button {
    position: absolute;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s;
    bottom: 30px;
}

.sound-toggle-button:hover {
    transform: scale(1.1);
}

.sound-toggle-button:active {
    transform: scale(0.95);
}

.sound-toggle-button.clicked {
    animation: buttonClick 0.3s ease;
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.sound-toggle-button {
    right: 98.5px;
}

.sound-icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.scroll-button {
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-button:hover {
    animation-play-state: paused;
}

/* Content Sections */
.container {
    max-width: 1140px;
    margin: 0 auto;
}

.container-max {
    max-width: 100%;
    margin: 0 auto;
}

/* Bounce Animation - 농구공 튕기는 효과 */
@keyframes bounce {
    0% {
        transform: translateX(-50%) translateY(0);
        animation-timing-function: ease-out;
    }
    15% {
        transform: translateX(-50%) translateY(-20px);
        animation-timing-function: ease-in;
    }
    30% {
        transform: translateX(-50%) translateY(0);
        animation-timing-function: ease-out;
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
        animation-timing-function: ease-in;
    }
    50% {
        transform: translateX(-50%) translateY(0);
        animation-timing-function: ease-out;
    }
    58% {
        transform: translateX(-50%) translateY(-6px);
        animation-timing-function: ease-in;
    }
    65% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* GNB Navigation */
.gnb-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background-color: #ddd;
    width: 0%;
    transition: width 0.1s ease;
    z-index: 1;
}

.gnb-nav.gnb-scrolled {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease;
    pointer-events: auto;
}

/* GNB 뒤 콘텐츠 블러 효과 */
.gnb-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

.gnb-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 60px;
    max-width: 1920px;
    margin: 0 auto;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 40px;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.125rem; /* 18px */
    color: white;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.3s;
    letter-spacing: -0.03375rem; /* -0.54px */
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width:100%;
    min-height: 100vh;
    padding: 100px 20px 40px;
    gap: 30px;
}

.mobile-nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
    letter-spacing: -0.03375rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: #121212;
    border-top: 1px solid #363d48;
    padding: 24px 0;
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 6px 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* margin-bottom: 12px; */
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.75rem; /* 12px */
    line-height: 1.125rem; /* 18px */
    letter-spacing: -0.0225rem; /* -0.36px */
    color: #7b8a9d;
    text-decoration: none;
}

.footer-links a.highlight {
    font-weight: 700;
    color: white;
    text-decoration: underline;
}

.footer-links .divider {
    color: #ededf3;
}

.footer-info {
    /* margin-bottom: 20px; */
}

.company-name {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 0.75rem; /* 12px */
    line-height: 1.0625rem; /* 17px */
    letter-spacing: -0.015rem; /* -0.24px */
    color: #7b8a9d;
    margin-bottom: 8px;
}

.info-group {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.75rem; /* 12px */
    line-height: 1.125rem; /* 18px */
    letter-spacing: -0.0225rem; /* -0.36px */
    color: #7b8a9d;
    margin-bottom: 4px;
}

.info-group .divider {
    margin: 0 8px;
}

.info-group a {
    color: #7b8a9d;
}

.family-site {
    /* margin-top removed, now positioned in footer-top */
}

.site-select {
    background-color: #171717;
    border: 1px solid #38383b;
    border-radius: 4px;
    padding: 6px 12px;
    color: #7b8a9d;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.8125rem; /* 13px */
    width: 230px;
    cursor: pointer;
}

/* Footer White Version */
.footer-white {
    background-color: #ffffff;
    border-top: 1px solid #e0e3eb;
}

.footer-white .footer-links a.highlight {
    color: #21252c;
    text-decoration: underline;
}

.footer-white .site-select {
    background-color: #ffffff;
    border: 1px solid #a3b1c2;
    color: #7b8a9d;
}

/* Responsive Breakpoints */

/* Desktop Large (1920px 이하) - 비디오 컨테이너 반응형 */
@media (max-width: 1920px) {
    .video-container,
    .video-overlay {
        width: 100vw;
    }
}

/* Desktop Medium (1200px 이하) - 컨텐츠 섹션 반응형 및 GNB 햄버거 메뉴 */
@media (max-width: 1200px) {
    /* Content Sections */
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .container-max {
        width: 100%;
    }

    /* GNB Navigation - 햄버거 메뉴 활성화 */
    .gnb-nav {
        /* opacity: 1;
        visibility: visible; */
        pointer-events: auto;
    }

    .gnb-content {
        padding: 0 20px;
        justify-content: flex-start;
        position: relative;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .logo {
        position: absolute;
        left: 30px;
        /* transform: translateX(-50%); */
    }

    .logo svg {
        width: 120px;
        height: auto;
    }

    .hero-title{
        padding: 0 20px;
    }

    .hero-title h1{
        font-size: 2.2rem;
    }

    .hero-title h4 {
        font-size: 1rem;
    }

    .footer-links{
        gap:15px;
    }
}

/* Mobile - Tablet (768px 이하) - 모바일/태블릿 반응형 */
@media (max-width: 768px) {
    .control-button{
        width: 42px;
        height: 42px;
    }

    .control-button svg{
        width: 100%;
        height: 100%;
    }

    .sound-toggle-button{
        right:26px;
    }

    .footer-top{
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
        margin-bottom: 16px;
    }
}