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

/* html과 body 모두 스크롤바 숨김 처리 (모든 해상도 대응) */
html {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

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

body {
    font-family: 'Manrope', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background-color: #fafafa;
    color: #000000;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

/* Chrome, Safari, Edge - body 스크롤바 숨김 */
body::-webkit-scrollbar {
    display: none;
}

/* ============================================
   Loading Screen Styles - DISABLED
   ============================================ */

/* 
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.welcome-text {
    font-size: 2.5rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 60px;
    font-family: 'Manrope', sans-serif;
}

.welcome-text .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

.welcome-text .letter.space {
    width: 0.3em;
}

.mobile-break {
    display: none;
}

.desktop-break {
    display: block;
    height: 0;
    margin: 0;
}

.desktop-space {
    display: inline-block;
}

.welcome-line {
    display: inline;
}

.welcome-line.line-3 {
    display: block;
}

@keyframes typeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-text .letter.animate {
    animation: typeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loading-spinner {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-spinner.show {
    opacity: 1;
    transform: translateY(0);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #000000;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1rem;
    color: #666666;
    font-weight: 400;
    letter-spacing: 0.5px;
}
*/

/* Main Content - Always visible (loading disabled) */
.main-content {
    opacity: 1;
    transform: scale(1);
}

/*
.main-content.reveal {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .welcome-text {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .loading-content {
        padding: 0 15px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
    }
    
    .mobile-break {
        display: block;
        height: 0;
        margin: 0;
    }
    
    .desktop-break {
        display: none;
    }
    
    .desktop-space {
        display: none;
    }
    
    .welcome-line {
        display: block;
    }
    
    .welcome-line.line-3 {
        display: block;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        font-size: 1.5rem;
        margin-bottom: 30px;
        line-height: 1.3;
    }
    
    .spinner {
        width: 35px;
        height: 35px;
    }
    
    .loading-text {
        font-size: 13px;
    }
}
*/

/* Reveal Animation Styles */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.hero-section {
    height: 100vh;
    display: flex;
    position: relative;
    transform: translateX(140px); /* 메인 섹션을 오른쪽으로 이동 */
}

.hero-left {
    width: 40%;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 80px 60px 80px; /* 좌우 여백을 동일하게 설정 */
    position: relative;
    z-index: 2;
}

.hero-right {
    width: 60%;
    background-color: #fafafa;
    position: relative;
    z-index: 1;
}

.three-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 스크롤 비활성화 클래스 */
.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* 마우스 호버 시 스크롤 활성화 */
.hero-right:hover {
    overscroll-behavior: auto;
}

.three-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Portfolio Floating Button */
/* .portfolio-floating-btn {
    position: fixed !important;
    bottom: 40px !important;
    right: 40px !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0px) !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: auto !important;
    transform-origin: center !important;
    will-change: transform, opacity !important;
} */

/* Loading Screen - DISABLED
.loading-screen-active .portfolio-floating-btn,
body.loading-screen-active .portfolio-floating-btn,
#loading-screen:not(.fade-out) ~ .portfolio-floating-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(30px) !important;
    pointer-events: none !important;
    display: none !important;
}
*/

/* Loading Screen - DISABLED
body:has(#loading-screen:not(.fade-out)) .portfolio-floating-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(30px) !important;
    pointer-events: none !important;
    display: none !important;
}
*/

/* JavaScript로 추가되는 로딩 숨김 클래스 */
.portfolio-floating-btn.loading-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(30px) !important;
    pointer-events: none !important;
    display: none !important;
}

/* Loading Screen - DISABLED
.loading-screen-active .music-widget,
body.loading-screen-active .music-widget {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
}
*/

.portfolio-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.9); /* 기본 상태를 검정 배경으로 */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* 테두리도 흰색으로 */
    padding: 16px 24px;
    text-decoration: none;
    color: #ffffff; /* 기본 상태를 흰색 텍스트로 */
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.portfolio-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-arrow {
    font-size: 16px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.portfolio-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.logo-section {
    display: flex;
    align-items: center;
    margin-bottom: auto;
}

.logo-square {
    width: 12px;
    height: 12px;
    background-color: #000000;
    margin-right: 12px;
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.location-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
    width: 100%;
}

.location-text {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.location-dash {
    width: 20px;
    height: 1px;
    background-color: #000000;
}

.services-section {
    margin-top: auto;
}

.service-item {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.4;
}

.service-dots {
    display: flex;
    flex-direction: column;
    margin: 16px 0;
}

/* Main Section Dots - 메인섹션 전용 점들 (매우 작게) */
.main-dot {
    width: 1.5px;
    height: 1.5px;
    background-color: #000000;
    margin-bottom: 4px;
    border-radius: 50%;
}

/* About Section Dots - 어바웃섹션 스킬 점들 (기존 크기 유지) */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* About Section Styles */
.about-section {
    min-height: 100vh;
    height: auto;
    display: flex;
    background-color: #fafafa;
    color: #000000;
    align-items: center;
    padding: 80px 80px 80px 80px; /* 좌우 여백을 동일하게 설정 */
    transform: translateX(-50px); /* hero-section과 정렬 맞춤 */
}

.about-left {
    width: 50%;
    display: flex;
    align-items: center;
    padding: 80px 80px; /* 좌우 여백을 동일하게 설정 */
    position: relative;
    justify-content: center;
}

.about-content {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    line-height: 1.1;
}

.about-location {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.location-text {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.about-services {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 50px;
}

.service-text {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.about-description {
    max-width: 500px;
}

.about-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    font-weight: 400;
    margin: 0;
    text-align: left;
}

.about-description-kr {
    margin-top: 30px;
}

/* Profile Image Styles */
.profile-image-container {
    width: 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.profile-image:hover {
    filter: grayscale(0%);
}

/* Hello Section Styles */
.hello-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: -40px; /* 타이틀을 위로 올림 */
}

.hello-title {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -140px; /* 타이틀을 위로 올림 */
}

/* Location & Services Styles */
.about-location {
    display: flex;
    flex-direction: column;
    gap: 8px;
    
}

.location-text {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    color: #666;
}

.about-services {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-text {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    color: #666;
}

.about-description-kr p {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.2px;
    text-align: justify;
    opacity: 0.8;
}

.about-right {
    width: 50%;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 100px; /* 좌우 여백 통일 */
    transform: translateX(80px);
}

/* Skills Container - 사진과 똑같은 디자인 */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px; /* 가로, 세로 간격 모두 동일하게 */
    padding: 20px 0;
    max-width: 100%;
    width: 100%;
}

.skills-col {
    display: contents; /* 자식 요소들을 그리드 아이템으로 직접 배치 */
}

/* 첫 번째 컬럼: Frontend, Database (세로로 한 줄) */
.skills-col:nth-child(1) .skills-section:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.skills-col:nth-child(1) .skills-section:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

/* 두 번째 컬럼: Tools (가운데) */
.skills-col:nth-child(1) .skills-section:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
}

/* 세 번째 컬럼: Backend, DevOps (세로로 한 줄) */
.skills-col:nth-child(2) .skills-section:nth-child(1) {
    grid-column: 3;
    grid-row: 1;
}

.skills-col:nth-child(2) .skills-section:nth-child(2) {
    grid-column: 3;
    grid-row: 2;
}

.skills-section {
    margin-bottom: 0;
}

.skills-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Skill Item Styles */
.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.skill-name {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
}

.skill-year {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

.skill-level {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
}

.skill-desc {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}

/* Rating System with Dots */
.skill-rating {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dot.filled {
    background-color: #000;
}

.dot.empty {
    background-color: #e5e5e5;
}

/* Analogue Section - Special Layout */
.analogue-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analogue-item {
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
}

.about-shader-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #fafafa;
    opacity: 1 !important;
    transform: none !important;
    min-height: 420px;
}

.about-shader-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* MASKARITE BROOCH Section */
.maskarite-section {
    background: #fafafa;
    color: #000000;
    padding: 120px 80px; /* 좌우 여백을 동일하게 설정 */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.maskarite-inner {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start; /* center에서 start로 변경하여 자연스러운 정렬 */
    min-height: 60vh; /* 최소 높이 설정으로 수직 공간 확보 */
    transform: translateX(-45px);
}

.maskarite-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start; /* 좌측은 상단 정렬 유지 */
    align-self: start; /* 그리드 내에서 상단 정렬 */
}

.maskarite-number {
    font-family: 'Helvetica Neue', 'Arial Black', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    line-height: 0.8;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
}

.maskarite-title {
    font-family: 'Helvetica Neue', 'Arial Black', sans-serif;
    font-size: 72px;
    font-weight: 500;
    line-height: 0.85;
    color: #000000;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.maskarite-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: end; /* 그리드 내에서 하단 정렬 강화 */
    margin-bottom: -20px; /* 하단 여백 조정으로 더 아래로 배치 */
    transform: translateX(100px);
}

.maskarite-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: right;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-value {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    opacity: 0.8;
}

/* MASKARITE Section Animations */
.maskarite-number {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.maskarite-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.info-item {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:nth-child(1) {
    transition-delay: 0.4s;
}

.info-item:nth-child(2) {
    transition-delay: 0.6s;
}

.info-item:nth-child(3) {
    transition-delay: 0.8s;
}

/* Active state for animations */
.maskarite-section.reveal.active .maskarite-number,
.maskarite-section.reveal.active .maskarite-title,
.maskarite-section.reveal.active .info-item,
.maskarite-section.reveal.active .maskarite-portfolio-image {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Portfolio Image Section - 간격 완전 제거 */
.portfolio-image-section {
    background: #fafafa;
    padding: 0; /* 모든 패딩 제거 */
    margin: 0; /* 모든 마진 제거 */
    min-height: auto; /* 자동 높이로 변경 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    line-height: 0; /* 브라우저 기본 간격 제거 */
}

.portfolio-image-container {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; /* 마진 제거 */
    padding: 0; /* 패딩 제거 */
    line-height: 0; /* 브라우저 기본 간격 제거 */
}

.portfolio-main-image {
    width: 100%;
    max-width: 95vw;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    /* 모든 간격 완전 제거 */
    margin: 0 !important;
    padding: 0 !important;
    border: none;
}

/* 애니메이션 활성화 */
.portfolio-image-section .reveal.active .portfolio-main-image {
    opacity: 1;
    transform: translateY(0);
}

/* 연속된 포트폴리오 이미지 섹션 간격 제거 */
.portfolio-image-section + .portfolio-image-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 포트폴리오 이미지 섹션과 다른 섹션 간의 간격 제거 */
.maskarite-section + .portfolio-image-section,
.portfolio-image-section + .contact-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 반응형 디자인 */
/* 맥북 에어 13인치 전용 (1024px ~ 1600px) */
@media (min-width: 1025px) and (max-width: 1600px) {
    .hero-section { transform: translateX(65px); } /* 13인치 맥북 에어 */
    .about-section { transform: translateX(-15px); } /* 13인치 맥북 에어 */
    .about-right { transform: translateX(40px); } /* 13인치 맥북 에어 */
    .maskarite-section.reveal.active { transform: translateX(110px); } /* 13인치 맥북 에어 */
    .maskarite-title {font-size: 62px;}
    .maskarite-right { transform: translateX(-140px); } /* 13인치 맥북 에어 */
    .portfolio-grid-section { transform: translateX(0px); } /* 13인치 맥북 에어 */
    .contact-section { transform: translateX(10px); } /* 13인치 맥북 에어 */
    .contact-title.reveal.reveal-delay-1 { transform: translateX(60px); } /* 13인치 맥북 에어 */
    .contact-title.reveal.reveal-delay-1 { margin-top: -120px; } /* 13인치 맥북 에어 */
    .contact-subtitle.reveal.reveal-delay-2.lang-content { transform: translateX(60px); } /* 13인치 맥북 에어 */
    .contact-subtitle.reveal.reveal-delay-2.lang-content { margin-top: -0px; } /* 13인치 맥북 에어 */
    .contact-right { transform: translateX(-40px); } /* 13인치 맥북 에어 */
}

@media (max-width: 1024px) {
    .hero-section { transform: translateX(10px); } /* 태블릿에서는 조금 덜 이동 */
    .about-section { transform: translateX(10px); } /* 태블릿 정렬 맞춤 */
    .contact-section { transform: translateX(10px); } /* 태블릿 정렬 맞춤 */
    .hero-left {
        padding: 40px 60px 40px 60px; /* 좌우 여백을 동일하게 설정 */
    }
    
    .location-text {
        font-size: 16px;
    }
    
    .service-item {
        font-size: 14px;
    }

    .about-left {
        padding: 60px 60px; /* 좌우 여백을 동일하게 설정 */
    }

    .profile-image-container {
        width: 250px;
        height: 320px;
    }

    .hello-title {
        font-size: 2.5rem;
    }
    
    .location-text,
    .service-text {
        font-size: 14px;
    }

    .about-description p {
        font-size: 0.9rem;
    }


    .maskarite-inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        min-height: auto; /* 모바일에서는 최소 높이 해제 */
    }
    
    .maskarite-left {
        align-self: center; /* 모바일에서는 중앙 정렬 */
    }
    
    .maskarite-number {
        font-size: 6rem;
    }
    
    .maskarite-title {
        font-size: 2.5rem; /* hello-title과 동일 */
    }
    
    .maskarite-right {
        justify-content: center;
        align-self: center; /* 모바일에서는 중앙 정렬 */
        margin-bottom: 0; /* 모바일에서는 여백 초기화 */
    }
    
    .maskarite-info {
        text-align: center;
        gap: 30px;
    }
    
    /* Portfolio Image Section 1024px 반응형 - 간격 완전 제거 */
    .portfolio-image-section {
        padding: 0; /* 모든 패딩 제거 */
        margin: 0; /* 모든 마진 제거 */
        min-height: auto; /* 자동 높이 */
    }
    
    .portfolio-main-image {
        max-width: 96vw;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        transform: none; /* 모바일에서는 이동 제거 */
    }
    
    .about-section {
        transform: none; /* 모바일에서는 이동 제거 */
    }
    
    .contact-section {
        transform: none; /* 모바일에서는 이동 제거 */
    }
    
    .hero-left {
        width: 100%;
        height: 50vh;
        padding: 40px 40px; /* 좌우 여백을 동일하게 설정 */
    }
    
    .hero-right {
        width: 100%;
        height: 50vh;
    }
    
    .location-section {
        margin: 20px 0;
    }

    .portfolio-floating-btn {
        bottom: 20px;
        right: 20px;
    }

    .portfolio-btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .about-section {
        flex-direction: column;
        height: auto; /* 고정 높이 해제하여 텍스트 잘림 방지 */
    }

    .about-left {
        width: 100%;
        height: auto; /* 고정 높이 해제 */
        padding: 40px 40px; /* 좌우 여백을 동일하게 설정 */
    }

    .about-right {
        width: 100%;
        height: auto; /* 고정 높이 해제 */
        padding: 40px 40px; /* about-left와 동일한 좌우 여백 */
    }

    /* Skills Mobile Responsive - 2열로 표시 */
    .skills-container { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px 16px; /* 세로 20px, 가로 16px */
        max-width: 100%;
        padding: 0; /* 컨테이너 자체 패딩 제거 (about-right에서 패딩 처리) */
    }
    
    .skills-col { 
        display: contents; /* 그리드 아이템으로 직접 배치 */
    }
    
    /* 모바일에서 2열로 배치 */
    .skills-col:nth-child(1) .skills-section:nth-child(1),
    .skills-col:nth-child(1) .skills-section:nth-child(2),
    .skills-col:nth-child(1) .skills-section:nth-child(3),
    .skills-col:nth-child(2) .skills-section:nth-child(1),
    .skills-col:nth-child(2) .skills-section:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
    }
    
    .skills-section {
        margin-bottom: 0;
    }
    
    .skills-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .skill-item {
        gap: 6px;
    }
    
    .skill-name {
        font-size: 0.85rem;
    }
    
    .skill-year,
    .skill-level {
        font-size: 0.75rem;
    }
    
    .skill-desc {
        font-size: 0.75rem;
    }
    
    .analogue-item {
        font-size: 0.85rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }

    .about-shader-container { min-height: 300px; }

    .about-title {
        font-size: 36px;
    }

    .about-description p {
        font-size: 12px;
    }


    .maskarite-section { 
        padding: 80px 20px 80px 20px; /* 좌우 여백을 동일하게 설정 */
        min-height: auto;
    }
    
    .maskarite-inner {
        min-height: auto; /* 768px에서도 최소 높이 해제 */
    }
    
    .maskarite-left {
        align-self: center; /* 768px에서도 중앙 정렬 */
    }
    
    .maskarite-right {
        align-self: center; /* 768px에서도 중앙 정렬 */
        margin-bottom: 0; /* 768px에서도 여백 초기화 */
    }
    
    .maskarite-number {
        font-size: 4.5rem;
    }
    
    .maskarite-title {
        font-size: 2rem; /* hello-title과 동일 */
    }
    
    .maskarite-info {
        gap: 25px;
    }
    
    .info-label {
        font-size: 0.9rem;
    }
    
    .info-value {
        font-size: 0.8rem;
    }
    
    /* Portfolio Image Section 768px 반응형 - 간격 완전 제거 */
    .portfolio-image-section {
        padding: 0; /* 모든 패딩 제거 */
        margin: 0; /* 모든 마진 제거 */
        min-height: auto; /* 자동 높이 */
    }
    
    .portfolio-main-image {
        max-width: 97vw;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Mobile section spacing to avoid overlap */
    .hero-section { margin-bottom: 150px; }
    .about-section { margin-top: 300px; margin-bottom: 300px; }
}

@media (max-width: 480px) {
    .hero-left {
        padding: 30px 20px 30px 20px; /* 좌우 여백을 동일하게 설정 */
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .location-text {
        font-size: 14px;
    }
    
    .service-item {
        font-size: 12px;
    }

    .portfolio-floating-btn {
        bottom: 1000px !important;
        right: 60px !important;
    }

    .portfolio-btn {
        padding: 10px 16px;
        font-size: 12px;
        gap: 8px;
    }

    .btn-text {
        font-size: 12px;
    }

    .btn-arrow {
        font-size: 14px;
    }
    
    /* 스킬 섹션 480px 이하 - 2열 유지하되 더 작게 */
    .skills-container { 
        gap: 16px 12px; /* 세로 16px, 가로 12px */
    }
    
    .skills-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .skill-item {
        gap: 5px;
    }
    
    .skill-name {
        font-size: 0.75rem;
    }
    
    .skill-rating {
        gap: 4px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
    }

    .about-left {
        padding: 30px 20px 30px 20px; /* 좌우 여백을 동일하게 설정 */
    }
    
    .about-right {
        padding: 30px 20px 30px 20px; /* about-left와 동일한 좌우 여백 */
    }

    .profile-image-container {
        width: 200px;
        height: 260px;
    }

    .hello-title {
        font-size: 2rem;
    }
    
    .location-text,
    .service-text {
        font-size: 12px;
    }

    .about-description p {
        font-size: 0.85rem;
    }


    .maskarite-number {
        font-size: 3.5rem;
    }
    
    .maskarite-title {
        font-size: 2rem; /* hello-title과 동일 */
    }
    
    .maskarite-section {
        padding: 60px 15px 60px 15px; /* 좌우 여백을 동일하게 설정 */
    }
    
    .maskarite-inner {
        gap: 40px;
        min-height: auto; /* 480px에서도 최소 높이 해제 */
    }
    
    .maskarite-left {
        align-self: center; /* 480px에서도 중앙 정렬 */
    }
    
    .maskarite-right {
        align-self: center; /* 480px에서도 중앙 정렬 */
        margin-bottom: 0; /* 480px에서도 여백 초기화 */
    }
    
    /* Portfolio Image Section 480px 반응형 - 간격 완전 제거 */
    .portfolio-image-section {
        padding: 0; /* 모든 패딩 제거 */
        margin: 0; /* 모든 마진 제거 */
        min-height: auto; /* 자동 높이 */
    }
    
    .portfolio-main-image {
        max-width: 98vw;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Pricing Section */
.pricing-section {
    background: #fafafa;
    color: #000000;
    padding: 120px 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pricing-inner {
    max-width: 1400px;
    width: 100%;
}

.pricing-header {
    text-align: center;
    margin-bottom: 80px;
}

.pricing-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #000000;
}

.pricing-subtitle {
    font-size: 16px;
    color: #666666;
    font-weight: 400;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #000000;
}

.pricing-card.selected {
    border: 2px solid #000000;
    transform: scale(1.02);
}

.pricing-card.selected:hover {
    transform: scale(1.02) translateY(-8px);
}

.card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #000000;
    border-radius: 6px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.card-badge.popular {
    background: #f5f5f5;
    color: #000000;
}

/* 모든 패키지 클릭 시 검정색으로 변경 */
.pricing-card.selected .card-badge {
    background: #000000;
    color: #ffffff;
}

.card-badge.premium {
    background: #f5f5f5;
    color: #000000;
}

.card-price {
    margin-bottom: 12px;
}

.price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: 4px;
}

.price-vat {
    display: block;
    font-size: 13px;
    color: #999999;
    font-weight: 400;
}

.card-duration {
    font-size: 14px;
    color: #666666;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.card-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-features li {
    font-size: 14px;
    color: #333333;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: 600;
}

.card-suitable {
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.suitable-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #999999;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.suitable-list {
    list-style: none;
}

.suitable-list li {
    font-size: 13px;
    color: #666666;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.suitable-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #999999;
    font-size: 18px;
}

/* Pricing Additional Info */
.pricing-additional {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

.additional-section,
.payment-info {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 32px;
}

.additional-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #000000;
}

.additional-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.additional-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.additional-item {
    padding: 12px 0;
    border-bottom: none;
}

.additional-item:first-child {
    border-bottom: 1px solid #f0f0f0;
}

/* Additional Pages 하단 구분선 제거 */
.additional-row .additional-item:first-child {
    border-bottom: none;
}

.additional-label {
    font-size: 14px;
    color: #333333;
    margin-bottom: 4px;
}

.additional-price {
    font-size: 13px;
    color: #666666;
}

.payment-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-label {
    font-size: 14px;
    color: #333333;
    margin-bottom: 4px;
}

.payment-detail {
    font-size: 13px;
    color: #666666;
}

/* Contact CTA */
.contact-cta {
    background: #000000;
    color: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    grid-column: 1 / -1;
}

.cta-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn.kakao {
    background: #ffffff;
    color: #000000;
}

.cta-btn.kakao:hover {
    background: #f5f5f5;
}

.cta-btn.email {
    background: transparent;
    color: #ffffff;
}

.cta-btn.email:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-time {
    font-size: 13px;
    color: #999999;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-card.selected {
        transform: scale(1);
    }

    .pricing-card.selected:hover {
        transform: translateY(-8px);
    }

    .pricing-additional {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-title {
        font-size: 3rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .pricing-section {
        padding: 80px 20px;
    }

    .pricing-header {
        margin-bottom: 60px;
    }

    .pricing-title {
        font-size: 2.5rem;
    }

    .pricing-subtitle {
        font-size: 14px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .price-amount {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 60px 15px;
    }

    .pricing-title {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 24px 20px;
    }

    .contact-cta {
        padding: 32px 24px;
    }

    .cta-title {
        font-size: 20px;
    }
}

/* Contact Section - MASKARITE 섹션과 완벽한 수직 정렬 */
.contact-section {
    background: #fafafa;
    color: #000000;
    padding: 120px 40px; /* MASKARITE와 동일한 패딩 */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* MASKARITE와 동일한 중앙 정렬 */
    position: relative;
    transform: translateX(15px); /* hero-section과 정렬 맞춤 */
}

.contact-inner {
    max-width: 1400px; /* MASKARITE와 동일한 max-width */
    width: 100%;
    display: grid;
    grid-template-columns: 50% 45%; /* 우측 박스 사이즈 줄임 (55% → 45%) */
    gap: 60px;
}

.contact-left {
    display: flex;
    align-items: center;
}

.contact-content {
    max-width: 500px;
}

.contact-title {
    font-size: 3rem; /* hello-title과 동일 (48px) */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -120px;
    line-height: 1.1;
}

.contact-subtitle {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.3px;
    opacity: 0.8;
    margin-top: 20px;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #000000;
}

.form-input,
.form-textarea {
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 1px #000000;
}

.form-textarea {
    min-height: 120px;
}

.submit-btn {
    padding: 16px 32px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Status Message */
.status-message {
    display: none;
    margin-top: 15px;
    padding: 12px 20px;
    background-color: #2C3E50;
    color: #fafafa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-left: 4px solid #3498db;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* reveal 기본값(opacity:0)로 인해 버튼이 숨겨지는 문제 방지 */
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    margin-top: 10px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    color: #000000;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.btn-text {
    font-size: 14px;
    font-weight: 500;
}

/* Contact Section Responsive */
@media (max-width: 1024px) {
    .contact-section {
        padding: 80px 40px; /* 1024px 이하에서 MASKARITE와 동일한 패딩 유지 */
    }
    
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-title {
        font-size: 2.5rem; /* hello-title과 동일 */
    }
    
    .contact-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 20px; /* MASKARITE와 동일한 패딩 유지 */
    }
    
    .contact-title {
        font-size: 2rem; /* hello-title과 동일 */
    }
    
    .contact-subtitle {
        font-size: 14px;
    }
    
    .contact-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    
    .contact-btn {
        display: flex !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        min-width: 80px !important;
        padding: 12px 16px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 15px; /* MASKARITE와 동일한 패딩 유지 */
    }
    
    .contact-title {
        font-size: 2rem; /* hello-title과 동일 */
    }
    
    .contact-subtitle {
        font-size: 13px;
    }
    
    .form-input,
    .form-textarea {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 14px 28px;
        font-size: 13px;
    }
    
    .contact-btn {
        display: flex !important;
        padding: 12px 14px !important;
        font-size: 13px !important;
        flex: 0 0 auto !important;
        min-width: 70px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .contact-buttons {
        gap: 8px;
    }
}

/* Music Widget Styles */
/* Language Translator Widget */
.language-widget {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn {
    min-width: 60px;
    height: 44px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0 12px;
    outline: none;
}

.lang-btn:hover {
    background: rgba(23, 104, 79, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 104, 79, 0.3);
    border-color: rgba(23, 104, 79, 0.3);
}

.lang-btn.active {
    background: rgba(23, 104, 79, 1);
    border-color: rgba(23, 104, 79, 0.5);
}

.lang-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffffff;
    white-space: nowrap;
}

/* Google Translate 모든 UI 요소 완전히 숨기기 */
.goog-te-banner-frame,
.goog-te-banner,
.goog-te-balloon-frame,
.goog-te-ftab-frame,
.goog-te-menu-frame,
.goog-te-menu2-frame,
.goog-te-spinner-pos,
.goog-te-combo-loading,
.goog-te-combobox,
.skiptranslate,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.goog-tooltip,
div[id*="goog-gt-"],
div[class*="goog-te-"],
span[id*="goog-gt-"],
span[class*="goog-te-"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    z-index: -1 !important;
}

/* body 태그의 margin-top 제거 (Google Translate가 추가하는 여백) */
body {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 번역 진행 상태 표시도 숨기기 */
.goog-te-spinner {
    display: none !important;
}

/* iframe도 숨기기 */
iframe[id*="goog-gt-"] {
    display: none !important;
}

/* Loading Screen - DISABLED
body.loading-screen-active .language-widget {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
}
*/

.music-widget {
    position: fixed;
    bottom: 30px;
    left: 40px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.music-icon:hover {
    background: rgba(0, 0, 0, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.music-icon-img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    transition: all 0.3s ease;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    opacity: 0;
    transform: translateX(-20px);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

/* 호버 시에만 컨트롤 패널 표시 */
.music-widget:hover .music-controls {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

/* 수동으로 열린 상태에서도 표시 (클릭 시) */
.music-widget.manually-opened .music-controls {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.music-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 16px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.music-toggle.playing {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.9);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.volume-slider {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #ffffff;
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-value {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    min-width: 20px;
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-widget {
        bottom: 20px;
        right: 24px;
        gap: 6px;
    }
    
    .lang-btn {
        min-width: 50px;
        height: 38px;
        padding: 0 8px;
    }
    
    .lang-text {
        font-size: 9px;
    }
    
    .music-widget {
        bottom: 20px;
        left: 24px;
        gap: 10px;
    }
    
    .music-icon {
        width: 40px;
        height: 40px;
    }
    
    .music-icon-img {
        width: 16px;
        height: 16px;
    }
    
    .music-controls {
        padding: 10px 15px;
        gap: 15px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .music-toggle {
        padding: 6px 12px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .language-widget {
        bottom: 15px;
        right: 18px;
        gap: 5px;
    }
    
    .lang-btn {
        min-width: 45px;
        height: 36px;
        padding: 0 6px;
    }
    
    .lang-text {
        font-size: 8px;
    }
    
    .music-widget {
        bottom: 15px;
        left: 18px;
    }
    
    .portfolio-floating-btn {
        bottom: 15px;
        right: 18px; /* 음악 위젯과 동일한 여백으로 맞춤 */
    }
    
    .volume-container {
        gap: 8px;
    }
    
    .volume-slider {
        width: 50px;
    }
}

/* Portfolio Grid Section - 사진과 완벽 일치 */
.portfolio-grid-section {
    padding: 120px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
}

.grid-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    outline: none;
    border-radius: 12px;
    border: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 클릭 시 나타나는 모든 테두리 제거 */
.grid-item:active,
.grid-item:focus:not(:focus-visible) {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 키보드 접근성 (키보드 사용 시에만 포커스 표시) */
.grid-item:focus-visible {
    outline: 3px solid #2C3E50;
    outline-offset: 4px;
}

.grid-item:hover {
    transform: translateY(-8px);
}

.grid-card {
    position: relative;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: none;
    outline: none;
}

.grid-card:active,
.grid-card:focus {
    outline: none !important;
    border: none !important;
}

.grid-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* 카드별 배경색 - 사진과 동일 */
.food-card {
    background: #8B6F47;
}

.fizzly-card {
    background: #E55A2B;
}

.beauty-card {
    background: #E8D5E8;
}

.tech-card {
    background: #4A90E2;
}

.card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    z-index: 3;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.grid-card:hover .project-image {
    transform: scale(1.05);
}

.grid-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.grid-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: rgb(0, 0, 0);
}

.grid-number {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
    color: rgb(0, 0, 0);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .portfolio-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 0 30px;
    }
    
    .grid-card {
        height: 280px;
    }
    
    .grid-title {
        font-size: 15px;
    }
    
    .grid-number {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid-section {
        padding: 80px 0;
    }
    
    .portfolio-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 20px;
    }
    
    .grid-card {
        height: 260px;
    }
    
    .grid-title {
        font-size: 14px;
    }
    
    .grid-number {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid-section {
        padding: 60px 0;
    }
    
    .portfolio-grid-container {
        padding: 0 15px;
        gap: 12px;
    }
    
    .grid-item {
        gap: 12px;
    }
    
    .grid-card {
        height: 240px;
        border-radius: 20px;
    }
    
    .card-tag {
        font-size: 10px;
        padding: 3px 8px;
        top: 12px;
        left: 12px;
    }
    
    .grid-title {
        font-size: 13px;
    }
    
    .grid-number {
        font-size: 11px;
    }
}

/* Portfolio Popup System */
.portfolio-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.portfolio-popup.active {
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(8px);
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: background-color 0.4s ease;
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    margin: 7.5vh auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.portfolio-popup.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10001;
    padding: 20px;
}

.popup-close {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.popup-close:active {
    transform: scale(0.95);
}

.popup-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

.popup-content iframe.loaded {
    opacity: 1;
}

.popup-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    z-index: 1;
    transition: all 0.4s ease;
}

.popup-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.spinner-ring {
    width: 100%;
    height: 100%;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #2C3E50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.popup-loading p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #2C3E50;
}

/* 반응형 팝업 디자인 */
@media (max-width: 1024px) {
    .popup-container {
        width: 95%;
        height: 80vh;
        margin: 10vh auto;
        border-radius: 16px;
    }
    
    .popup-header {
        padding: 16px;
    }
    
    .popup-close {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .popup-container {
        width: 98%;
        height: 85vh;
        margin: 7.5vh auto;
        border-radius: 12px;
    }
    
    .popup-header {
        padding: 12px;
    }
    
    .popup-close {
        width: 36px;
        height: 36px;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .popup-loading p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .popup-header {
        padding: 10px;
    }
    
    .popup-close {
        width: 32px;
        height: 32px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .popup-loading p {
        font-size: 12px;
    }

}

/* 키보드 접근성 */
.popup-close:focus {
    outline: 2px solid #2C3E50;
    outline-offset: 2px;
}

/* 스크롤 방지 */
body.popup-open {
    overflow: hidden;
    /* height: 100vh 제거 - 스크롤 위치 리셋 방지 */
}

/* 모든 그리드 관련 요소의 클릭 테두리 제거 */
.portfolio-grid-section *,
.grid-container *,
.grid-item *,
.grid-card * {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    outline: none !important;
}

.portfolio-grid-section *:active,
.portfolio-grid-section *:focus:not(:focus-visible) {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3D Project Cards System */
.project-cards-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1200px;
    overflow: hidden;
    background: transparent;
}

.main-project-display {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Project Card Base Styles */
.project-card {
    position: absolute;
    width: 320px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

.project-card .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* 3D 인터랙티브 카드 갤러리 (사진과 같은 스타일) */
.carousel-3d-container {
    position: relative;
    width: 100%;
    height: 650px;
    perspective: 1400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d {
    position: relative;
    width: 320px;
    height: 420px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D 공간의 카드들 - 사진과 같은 카드 형태 */
.carousel-card {
    position: absolute;
    width: 320px;
    height: 420px;
    background: #fafafa;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 
                0 15px 30px rgba(0, 0, 0, 0.08),
                0 5px 15px rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backface-visibility: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 카드 배치 - 수평 아치형 */
.carousel-card[data-index="0"] {
    transform: rotateY(0deg) translateZ(250px);
    z-index: 4;
}

.carousel-card[data-index="1"] {
    transform: rotateY(90deg) translateZ(250px);
    z-index: 3;
}

.carousel-card[data-index="2"] {
    transform: rotateY(180deg) translateZ(250px);
    z-index: 2;
}

.carousel-card[data-index="3"] {
    transform: rotateY(270deg) translateZ(250px);
    z-index: 1;
}

/* 메인 카드 포커스 효과 (15% 확대) */
.carousel-card.focused {
    transform: rotateY(0deg) translateZ(250px) scale(1.15);
    z-index: 10;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2), 
                0 20px 40px rgba(0, 0, 0, 0.12),
                0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 카드 내용 */
.card-content {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fafafa;
    border-radius: 20px;
}

.card-thumbnail {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    position: absolute;
    top: 35px;
    right: 35px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 상세 정보 패널 */
.project-info-panel {
    position: absolute;
    right: -350px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-info-panel.show {
    opacity: 1;
    right: -280px;
}

/* 상세 정보 텍스트 리빌 애니메이션 */
.info-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.info-specs {
    margin-bottom: 30px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-row:nth-child(1) {
    transition-delay: 0.2s;
}

.spec-row:nth-child(2) {
    transition-delay: 0.3s;
}

.spec-label {
    color: #666;
    font-size: 0.9rem;
}

.spec-value {
    color: #000;
    font-weight: 500;
}

.info-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.info-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* 텍스트 리빌 상태 */
.project-info-panel.show .info-title,
.project-info-panel.show .info-meta,
.project-info-panel.show .spec-row,
.project-info-panel.show .info-actions {
    opacity: 1;
    transform: translateY(0);
}

/* 카드 호버 효과 - 사진과 같은 스타일 */
.carousel-card:hover {
    transform: rotateY(0deg) translateZ(270px) scale(1.05);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18), 
                0 18px 35px rgba(0, 0, 0, 0.1),
                0 6px 18px rgba(0, 0, 0, 0.06);
}

.carousel-card.focused:hover {
    transform: rotateY(0deg) translateZ(270px) scale(1.2);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.25), 
                0 25px 50px rgba(0, 0, 0, 0.15),
                0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .carousel-3d-container {
        height: 500px;
    }
    
    .carousel-card {
        width: 240px;
        height: 320px;
    }
    
    .project-info-panel {
        position: static;
        transform: none;
        margin-top: 30px;
        width: 100%;
        right: auto;
    }
    
    .project-info-panel.show {
        right: auto;
    }
}

/* Album-style Card Entrance Animation */
@keyframes cardEntrance {
    0% {
        transform: translateX(300px) translateZ(-100px) scale(0.3) rotateY(45deg);
        opacity: 0;
    }
    100% {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }
}

.project-card.main-card.animate-entrance {
    animation: cardEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes bgCardEntrance {
    0% {
        opacity: 0;
        transform: translateX(200px) scale(0.5);
    }
    100% {
        opacity: 0.8;
        transform: translateX(15px) translateY(5px) translateZ(-10px) scale(0.98) rotateY(-3deg) rotateZ(-1deg);
    }
}

.project-card.bg-card.animate-entrance:nth-child(1) {
    animation: bgCardEntrance 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.project-card.bg-card.animate-entrance:nth-child(2) {
    animation: bgCardEntrance 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.project-card.bg-card.animate-entrance:nth-child(3) {
    animation: bgCardEntrance 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

/* Project Details Panel */
.project-details {
    position: absolute;
    top: 50%;
    right: -350px;
    transform: translateY(-50%);
    width: 300px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-details.show {
    right: -280px;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-meta {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.project-date {
    color: #666;
    font-size: 0.9rem;
}

.project-specs {
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-item:nth-child(1) {
    transition-delay: 0.2s;
}

.spec-item:nth-child(2) {
    transition-delay: 0.3s;
}

.spec-label {
    color: #666;
    font-size: 0.9rem;
}

.spec-value {
    color: #000;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.action-btn:nth-child(1) {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.action-btn:nth-child(2) {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.action-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.action-btn small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Show Details Animation */
.project-details.show .project-title,
.project-details.show .project-meta,
.project-details.show .spec-item,
.project-details.show .action-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Project Navigation */
.project-navigation {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    height: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-navigation::-webkit-scrollbar {
    display: none;
}

.nav-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    height: 100%;
    align-items: center;
    min-width: max-content;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.nav-thumb {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
}

.nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-title {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Album-style Card Transition Effects */
.project-card.move-to-back {
    animation: moveToBack 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.project-card.bring-to-front {
    animation: bringToFront 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes moveToBack {
    0% {
        transform: translateZ(0) scale(1) rotateY(-2deg) rotateZ(-1deg);
        z-index: 10;
    }
    100% {
        transform: translateX(15px) translateY(5px) translateZ(-10px) scale(0.98) rotateY(-3deg) rotateZ(-1deg);
        z-index: 9;
        opacity: 0.8;
    }
}

@keyframes bringToFront {
    0% {
        transform: translateX(15px) translateY(5px) translateZ(-10px) scale(0.98) rotateY(-3deg) rotateZ(-1deg);
        z-index: 9;
        opacity: 0.8;
    }
    100% {
        transform: translateZ(0) scale(1) rotateY(-2deg) rotateZ(-1deg);
        z-index: 10;
        opacity: 1;
    }
}

/* 2번 사진처럼 배경 카드 호버 효과 */
.project-card.bg-card:hover {
    opacity: 0.9;
    transform: scale(1.05) !important;
    z-index: 15 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .project-cards-container {
        height: 400px;
    }
    
    .project-card {
        width: 250px;
        height: 350px;
    }
    
    .project-details {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%;
        right: auto;
    }
    
    .project-details.show {
        right: auto;
    }
    
    .project-navigation {
        bottom: -60px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - UNIFIED MEDIA QUERIES
   ============================================ */

/* ============================================
   1. Desktop Large: 1600px+
   ============================================ */
/* 기본 스타일이 Desktop Large에 적용됨 */


/* ============================================
   2. Desktop: 1200px ~ 1599px
   ============================================ */
@media (min-width: 1200px) and (max-width: 1599px) {
    /* Hero Section */
    .hero-section { 
        transform: translateX(65px); 
    }
    
    /* About Section */
    .about-section { 
        transform: translateX(-15px); 
    }
    
    .about-right { 
        transform: translateX(40px); 
    }
    
    /* Maskarite Section */
    .maskarite-section.reveal.active { 
        transform: translateX(110px); 
    }
    
    .maskarite-title {
        font-size: 62px;
    }
    
    .maskarite-right { 
        transform: translateX(-140px); 
    }
    
    /* Portfolio Section */
    .portfolio-grid-section { 
        transform: translateX(0px); 
    }
    
    /* Contact Section */
    .contact-section { 
        transform: translateX(10px); 
    }
    
    .contact-title.reveal.reveal-delay-1 { 
        transform: translateX(60px);
        margin-top: -120px;
    }
    
    .contact-subtitle.reveal.reveal-delay-2.lang-content { 
        transform: translateX(60px);
        margin-top: -0px;
    }
    
    .contact-right { 
        transform: translateX(-40px); 
    }
}


/* ============================================
   3. Laptop: 1024px ~ 1199px
   ============================================ */
@media (min-width: 1024px) and (max-width: 1199px) {
    /* Hero Section */
    .hero-section { 
        transform: translateX(0px); 
    }
    
    /* About Section */
    .about-section { 
        transform: translateX(-80px); 
    }
    
    .about-right { 
        transform: translateX(0px); 
    }
    
    /* Maskarite Section */
    .maskarite-section.reveal.active { 
        transform: translateX(110px); 
    }
    
    .maskarite-title {
        font-size: 52px;
    }

    .maskarite-left {
        transform: translateX(-50px);
    }
    
    .maskarite-right { 
        transform: translateX(-60px); 
    }
    
    /* Portfolio Section */
    .portfolio-grid-section { 
        transform: translateX(0px); 
    }
    
    .portfolio-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* Contact Section */
    .contact-section { 
        transform: translateX(0px);
    }
    
    .contact-title.reveal.reveal-delay-1 { 
        transform: translateX(350px);
        margin-top: -120px;
    }
    
    .contact-subtitle.reveal.reveal-delay-2.lang-content { 
        transform: translateX(225px);
        margin-bottom: 40px;
    }
    
    /* Popup */
    .popup-container {
        width: 90%;
        max-width: 800px;
        padding: 50px;
    }
    
    .popup-close {
        top: 30px;
        right: 30px;
        font-size: 32px;
    }
}


/* ============================================
   4. Tablet: 768px ~ 1023px
   우선순위 기반 반응형 디자인
   - 유연한 박스 시스템 (Flexible Box System)
   - 우선순위에 따른 재배열
   - 요소 찌그러짐 방지
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    
    /* ========================================
       System of Boxes: 모든 섹션 중앙 정렬
       ======================================== */
    .hero-section,
    .about-section,
    .contact-section,
    .pricing-section,
    .portfolio-grid-section {
        /* 중앙 정렬을 위한 유연한 박스 시스템 */
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        transform: translateX(0); /* 중앙 배치 */
        box-sizing: border-box;
    }
    
    /* ========================================
       Hero Section - 우선순위 1
       ======================================== */
    .hero-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    
    .hero-left {
        width: 100%;
        max-width: 100%;
        padding: 40px 60px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    
    .location-text {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-top: 24px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.8;
        margin-top: 32px;
    }
    
    /* Stats를 유연한 박스로 재구성 */
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 48px;
        gap: 32px;
        width: 100%;
    }
    
    .stat-item {
        flex: 1 1 calc(33.333% - 22px); /* 3열 배치, 찌그러짐 방지 */
        min-width: 120px; /* 최소 너비 보장 */
        box-sizing: border-box;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* ========================================
       About Section - 우선순위 2
       ======================================== */
    .about-section {
        padding: 80px 40px;
    }
    
    .about-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 60px;
        width: 100%;
        max-width: 100%;
    }
    
    .about-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-title {
        font-size: 2.5rem;
    }

    .maskarite-section.reveal.active {
        transform: translateX(-40px);
    }
    .maskarite-left {
        transform: translateX(100px);
    }
    .maskarite-title {
        font-size: 42px;
    }
    
    /* Skills Grid - 찌그러짐 방지 */
    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        width: 100%;
    }
    
    .skills-section {
        min-width: 200px; /* 최소 너비 보장 */
    }
    
    /* ========================================
       Pricing Section - 우선순위 3
       ======================================== */
    .pricing-section {
        padding: 80px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-inner {
        width: 100%;
        max-width: 100%;
    }
    
    .pricing-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        max-width: 600px; /* 카드 최대 너비 제한 */
        margin: 0 auto;
    }
    
    .pricing-card {
        /* 카드 찌그러짐 방지 */
        min-height: 400px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 30px;
    }
    
    .pricing-card.selected {
        transform: scale(1);
    }
    
    .pricing-card.selected:hover {
        transform: translateY(-8px);
    }
    
    .pricing-title {
        font-size: 3rem;
        text-align: center;
    }
    
    .pricing-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .card-price {
        margin: 20px 0;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    /* Additional Options - Payment Methods와 대칭 유지 */
    .additional-grid,
    .payment-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* ========================================
       Contact Section - 우선순위 4
       ======================================== */
    .contact-section {
        display: grid;
        grid-template-columns: 1fr;
        padding: 80px 40px;
        max-width: 100%;
        margin: 0 auto;
        transform: translateX(0px); /* 중앙 배치 */
        box-sizing: border-box;
    }
    
    .contact-inner {
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-left {
        padding-right: 0;
        margin-bottom: 60px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 60px;
        transform: translateX(0px);
    }

    .contact-title.reveal.reveal-delay-1 {
        transform: translateX(220px);
    }
    .contact-subtitle.reveal.reveal-delay-2.lang-content {
        transform: translateX(120px);
    }
    
    .contact-title {
        font-size: 3rem;
    }
    
    .contact-subtitle {
        font-size: 0.95rem;
    }
    
    /* Form - 찌그러짐 방지 */
    .contact-form {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .form-input,
    .form-textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* ========================================
       Widgets - 우선순위 5 (항상 접근 가능)
       ======================================== */
    .language-widget {
        position: fixed;
        right: 30px;
        bottom: 30px;
        z-index: 9999;
    }
    
    .lang-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 60px; /* 버튼 찌그러짐 방지 */
    }
    
    .music-widget {
        position: fixed;
        left: 30px;
        bottom: 30px;
        z-index: 9999;
    }
    
    /* ========================================
       Portfolio Grid - 우선순위 6
       ======================================== */
    .portfolio-grid-section {
        padding: 80px 40px;
    }
    
    .portfolio-grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 유연한 그리드 */
        gap: 30px;
        width: 100%;
        max-width: 100%;
    }
    
    .grid-item {
        min-height: 300px; /* 카드 찌그러짐 방지 */
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    
    .grid-title {
        font-size: 1.1rem;
    }
    
    .grid-tags {
        font-size: 0.75rem;
    }
    
    /* ========================================
       Popup - 중앙 정렬 및 찌그러짐 방지
       ======================================== */
    .popup-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .popup-container {
        width: 90%;
        max-width: 800px;
        max-height: 90vh;
        padding: 40px;
        box-sizing: border-box;
        overflow-y: auto;
        margin: 0 auto;
    }
    
    .popup-title {
        font-size: 2rem;
    }
    
    /* ========================================
       Carousel - 유연한 높이
       ======================================== */
    .carousel-3d-container {
        height: 400px;
        min-height: 350px; /* 최소 높이 보장 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-card {
        min-width: 250px; /* 카드 찌그러짐 방지 */
    }
}


/* ============================================
   5. Mobile Large: 480px ~ 767px
   ============================================ */
@media (min-width: 480px) and (max-width: 767px) {
    /* General Adjustments */
    .hero-section,
    .about-section,
    .contact-section {
        transform: translateX(0);
    }
    
    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
    }
    
    .hero-left {
        padding: 40px 30px;
    }
    
    .logo-section {
        margin-bottom: 40px;
    }
    
    .logo-square {
        width: 12px;
        height: 12px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .location-text {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-top: 20px;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.7;
        margin-top: 24px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 40px;
        gap: 24px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* About Section */
    .about-section {
        padding: 80px 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-description {
        font-size: 0.85rem;
    }
    
    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /*maskarite section*/
    .maskarite-section.reveal.active {
        transform: translateX(-40px);
    }
    .maskarite-left {
        transform: translateX(100px);
    }
    .maskarite-title {
        font-size: 42px;
    }
    
    /* Pricing Section */
    .pricing-section {
        padding: 80px 30px;
    }
    
    .pricing-title {
        font-size: 2.5rem;
    }
    
    .pricing-subtitle {
        font-size: 0.9rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 30px 25px;
    }
    
    .card-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
    
    .price-vat {
        font-size: 0.75rem;
    }
    
    .card-duration {
        font-size: 0.8rem;
    }
    
    .card-features {
        font-size: 0.85rem;
    }
    
    .suitable-title {
        font-size: 0.8rem;
    }
    
    .suitable-list {
        font-size: 0.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-btn {
        width: 100%;
    }
    
    /* Contact Section */
    .contact-section {
        grid-template-columns: 1fr;
        padding: 60px 30px;
    }
    
    .contact-left {
        padding-right: 0;
        margin-bottom: 50px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 50px;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 0.85rem;
    }

    .contact-title.reveal.reveal-delay-1 {
        transform: translateX(250px);
    }
    .contact-subtitle.reveal.reveal-delay-2.lang-content {
        transform: translateX(150px);
    }
    
    /* Language Widget */
    .language-widget {
        right: 20px;
        bottom: 20px;
    }
    
    .lang-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    /* Portfolio Grid */
    .portfolio-grid-section {
        padding: 80px 30px;
    }
    
    .portfolio-grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .grid-item {
        height: 300px;
    }
    
    .grid-title {
        font-size: 1rem;
    }
    
    .grid-tags {
        font-size: 0.7rem;
    }
    
    /* Popup */
    .popup-container {
        width: 95%;
        max-width: none;
        padding: 30px 20px;
        margin: 20px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .popup-subtitle {
        font-size: 0.85rem;
    }
    
    /* Carousel */
    .carousel-3d-container {
        height: 300px;
    }
}


/* ============================================
   6. Mobile Small: ~479px
   ============================================ */
@media (max-width: 479px) {
    /* General Adjustments */
    .hero-section,
    .about-section,
    .contact-section {
        transform: translateX(0);
    }
    
    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
    }
    
    .hero-left {
        padding: 30px 20px;
    }
    
    .logo-section {
        margin-bottom: 30px;
    }
    
    .logo-square {
        width: 12px;
        height: 12px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .location-text {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-top: 16px;
    }
    
    .hero-description {
        font-size: 0.8rem;
        line-height: 1.6;
        margin-top: 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 30px;
        gap: 20px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* About Section */
    .about-section {
        padding: 60px 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-description {
        font-size: 0.8rem;
        line-height: 1.7;
    }
    .about-right {
        transform: translateX(30px); /* 스킬 부분만 왼쪽으로 10px 이동 */
    }
    
    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skills-title {
        font-size: 0.9rem;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }

   /* maskarite section */
   .maskarite-section .maskarite-title,
   .maskarite-section.reveal.active .maskarite-title {
       transform: translateX(40px) !important;
   }
   .maskarite-right {
       transform: translateX(40px);
   }
    
    /* Pricing Section */
    .pricing-section {
        padding: 60px 20px;
    }
    
    .pricing-title {
        font-size: 2rem;
    }
    
    .pricing-subtitle {
        font-size: 0.85rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .card-badge {
        font-size: 9px;
        padding: 4px 8px;
    }
    
    .price-amount {
        font-size: 1.4rem;
    }
    
    .price-vat {
        font-size: 0.7rem;
    }
    
    .card-duration {
        font-size: 0.75rem;
    }
    
    .card-features {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .suitable-title {
        font-size: 0.75rem;
    }
    
    .suitable-list {
        font-size: 0.75rem;
    }
    
    .additional-title {
        font-size: 1rem;
    }
    
    .additional-label,
    .additional-price,
    .payment-label,
    .payment-detail {
        font-size: 0.8rem;
    }
    
    .cta-title {
        font-size: 1.2rem;
    }
    
    .cta-text {
        font-size: 0.8rem;
    }
    
    .cta-time {
        font-size: 0.75rem;
    }
    
    /* Contact Section */
    .contact-section {
        grid-template-columns: 1fr;
        padding: 50px 20px;
    }
    
    .contact-left {
        padding-right: 0;
        margin-bottom: 40px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 40px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 0.8rem;
    }

    .contact-title.reveal.reveal-delay-1 {
        transform: translateX(110px);
    }
    .contact-subtitle.reveal.reveal-delay-2.lang-content {
        transform: translateX(0px);
    }
    
    .form-label {
        font-size: 0.7rem;
    }
    
    .form-input,
    .form-textarea {
        font-size: 0.85rem;
        padding: 12px 16px;
    }
    
    .form-button {
        font-size: 0.85rem;
        padding: 14px 32px;
    }
    
    /* Language Widget */
    .language-widget {
        right: 15px;
        bottom: 15px;
    }
    
    .lang-btn {
        padding: 5px 12px;
        font-size: 10px;
    }
    
    /* Music Widget */
    .music-widget {
        left: 15px;
        bottom: 15px;
    }
    
    /* Portfolio Grid */
    .portfolio-grid-section {
        padding: 60px 20px;
    }
    
    .portfolio-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grid-item {
        height: 250px;
    }
    
    .grid-title {
        font-size: 0.9rem;
    }
    
    .grid-tags {
        font-size: 0.65rem;
    }
    
    /* Popup */
    .popup-container {
        width: 95%;
        max-width: none;
        padding: 25px 15px;
        margin: 15px;
        max-height: 90vh;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
    
    .popup-subtitle {
        font-size: 0.8rem;
    }
    
    .popup-description {
        font-size: 0.8rem;
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }
    
    /* Carousel */
    .carousel-3d-container {
        height: 250px;
    }
    
    .carousel-card {
        width: 200px;
        height: 150px;
    }
}

@media (max-width: 375px) {
    .contact-title.reveal.reveal-delay-1 {
        transform: translateX(80px);
    }
    .contact-subtitle.reveal.reveal-delay-2.lang-content {
        transform: translateX(0px);
    }
}

