/* ===== 공통 기본 스타일 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Pretendard', sans-serif; overflow-x: hidden; }

/* 스크롤바 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0b0b0b; }
::-webkit-scrollbar-thumb { background: #c9a96e; border-radius: 3px; }

/* ===== Pretendard 로컬 폰트 ===== */
@font-face { font-family: 'Pretendard'; src: url('/static/font/Pretendard-Thin.otf') format('opentype'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/static/font/Pretendard-ExtraLight.otf') format('opentype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/static/font/Pretendard-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/static/font/Pretendard-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/static/font/Pretendard-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/static/font/Pretendard-SemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/static/font/Pretendard-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/static/font/Pretendard-ExtraBold.otf') format('opentype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/static/font/Pretendard-Black.otf') format('opentype'); font-weight: 900; font-display: swap; }

/* ===== 공통 애니메이션 ===== */
.fade-up {
    opacity: 1;
    transform: translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-anim { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-anim-delay { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.hero-anim-delay2 { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; }
.hero-anim-v { animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-anim-v-delay { animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; }

/* ===== 네비게이션 ===== */
.nav-scrolled {
    background: rgba(11, 11, 11, 0.97) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ===== 카드 호버 ===== */
.card-hover {
    transition: all 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    border-color: #c9a96e;
}

/* ===== 마키 (푸터 등) ===== */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee-track {
    animation: marquee 40s linear infinite;
}

/* ===== 브랜드 스크롤 ===== */
.brand-card {
    flex-shrink: 0;
    height: 56px;
    background: #fff !important;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-card img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}
@media (min-width: 768px) {
    .brand-card {
        height: 68px;
        padding: 10px 14px;
    }
}
@keyframes brandScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.brand-scroll-track {
    animation: brandScroll 25s linear infinite;
    width: max-content;
}
.brand-scroll-wrapper {
    overflow: hidden;
}

/* ===== 후기 슬라이더 ===== */
.review-slider-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}
.review-slider-bg {
    background: #0b0b0b;
}
.review-card {
    background: #0b0b0b !important;
}
@keyframes reviewScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== 포트폴리오 썸네일 ===== */
.portfolio-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}
.portfolio-thumb-square {
    position: relative;
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.portfolio-thumb-square img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* ===== 포트폴리오 필터 드롭다운 ===== */
.filter-dropdown {
    max-height: 50vh;
    overflow-y: auto;
    position: absolute;
}
@media (max-width: 640px) {
    .filter-dropdown {
        position: static !important;
        left: unset !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        z-index: auto !important;
        max-height: 50vh !important;
        overflow-y: auto !important;
    }

    #pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        overflow-x: hidden;
    }

    #pagination button {
        min-width: 1.75rem !important;
        height: 1.75rem !important;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
        font-size: 0.75rem !important;
        line-height: 1;
    }
}

/* ===== 포트폴리오 로고 애니메이션 ===== */
.usj-logo-3d {
    position: relative;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 600px;
}
.usj-logo-3d img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}

/* ===== Contact 폼 스타일 ===== */
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: #111 !important;
    border: 1px solid #2a2a2a !important;
    color: #fff !important;
    transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #c9a96e !important;
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.3) !important;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #555 !important;
}

/* ===== FAQ 아이템 ===== */
.faq-item {
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: #c9a96e;
}
