/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #1C1C1C;        /* 어두운 배경 */
    --color-text: #ffffff;       /* 흰색 텍스트 */
    --color-text-light: #b0b0b0; /* 연한 회색 텍스트 */
    --color-border: #3a3a3a;     /* 어두운 테두리 */
    --color-hover: #ffffff;      /* 호버 시 흰색 */
    --spacing-xs: clamp(6px, 0.5vw, 8px);
    --spacing-sm: clamp(12px, 1vw, 16px);
    --spacing-md: clamp(16px, 1.5vw, 24px);
    --spacing-lg: clamp(32px, 3vw, 48px);
    --spacing-xl: clamp(60px, 5vw, 80px);
    --max-width: none;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: clamp(14px, 1vw, 16px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(20px, 2vw, 60px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(60px, 5vw, 80px);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: clamp(28px, 2.5vw, 37px);
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-hover);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-hover);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 16px;
    height: 2.5px;
    background-color: var(--color-text);
    transition: var(--transition);
    border-radius: 2.5px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md) 0;
}

.mobile-nav-link {
    color: var(--color-text);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background-color: #f5f5f5;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    margin-top: 80px;
    height: calc((100vw - 120px) / 3 * 4 / 3 * 1.2); /* 썸네일 높이의 1.2배 */
    min-height: 500px;
    max-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* 오버레이 제거 - 원본 색감 유지 */
    z-index: 1;
    display: none; /* 완전히 숨김 */
}

/* 모바일에서 오버레이 제거 - 원본 색감 유지 */
@media (max-width: 768px) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0);
        display: none;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    display: none; /* 제목과 부제목 숨김 */
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 100; /* 300 → 100: 가장 얇은 서체 (Thin) */
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase; /* 대문자 변환 */
}

/* 모바일에서 텍스트 그림자 강화 - 밝은 배경에서 가독성 확보 */
@media (max-width: 768px) {
    .hero-title {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 
                     0 4px 16px rgba(0, 0, 0, 0.4);
    }
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: #ffffff;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* 모바일에서 서브타이틀 그림자 강화 */
@media (max-width: 768px) {
    .hero-subtitle {
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5), 
                     0 2px 12px rgba(0, 0, 0, 0.4);
    }
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-media {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.hero-media-image,
.hero-media-video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.hero-media-video {
    background: #000;
}

/* Filter Section */
.filter-section {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px; position: relative; z-index: 3;
}

.filter-buttons {
    display: flex;
    gap: clamp(8px, 0.8vw, 12px);
    flex-wrap: wrap;
    justify-content: flex-start;
    flex: 1;
}

/* 검색창 스타일 */
.search-box {
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 14px;
    color: var(--color-text);
    font-family: 'Jost', sans-serif;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    font-size: 14px;
}

.filter-btn {
    padding: clamp(8px, 0.7vw, 10px) clamp(16px, 1.5vw, 20px);
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: clamp(13px, 1vw, 14px);
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Jost', sans-serif;
}

.filter-btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.filter-btn.active {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* Work Grid */
.work-grid {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
    max-width: 100%;
    gap: clamp(16px, 1.5vw, 22px);
}

@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    cursor: pointer;
    transition: var(--transition);
    opacity: 1;
}

.project-card.hidden {
    display: none;
    opacity: 0;
}

.project-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.project-card.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* 세로형 비율 (Portrait) */
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
}

.project-image img,
.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.placeholder-video {
    position: static; /* 또는 relative */
    width: 100%;
    height: auto;     /* 또는 원하는 고정값 */
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.project-card:hover .placeholder-img,
.project-card:hover .placeholder-video {
    transform: scale(1.05);
}

.project-number {
    display: none;
    font-size: 64px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0;
}

.project-info {
    padding: 16px 0 0 0; /* 8px → 16px: 황금비율 기반 여백 */
}

.project-title {
    font-size: clamp(18px, 1.4vw, 20px);
    font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    font-weight: 300;
    margin-bottom: 6px;
    letter-spacing: 0;
    opacity: 0.7;
}

.project-category {
    font-size: clamp(12px, 0.9vw, 13px);
    color: var(--color-text-light);
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0.5;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: #242424; /* 약간 밝은 어두운 회색 */
}

.about-content {
    max-width: 100%;
    margin: 0;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0;
}

.about-text {
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.3;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.stat-item-link:hover {
    /* transform: translateY(-5px); */
    opacity: 0.8;
}

.stat-item-link:hover .stat-number {
    color: rgba(255, 255, 255, 0.9);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.stat-number {
    font-size: clamp(36px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 2px;
    font-family: 'Futura Lt BT', 'Futura', 'Century Gothic', 'Jost', sans-serif;
    display: inline-flex;
    gap: 4px;
}

.stat-number .digit {
    display: inline-block;
    background: linear-gradient(180deg, #2a2a2a 0%, #2a2a2a 50%, #1a1a1a 50%, #1a1a1a 100%);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    position: relative;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-number .digit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #000;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.stat-number .digit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    border-radius: 4px;
    pointer-events: none;
}

.stat-label {
    font-size: clamp(12px, 1vw, 14px);
    color: var(--color-text-light);
    margin-top: 8px;
}

/* Clients Logo Carousel Section */
.clients-carousel-section {
    padding: 0; /* 패딩 제거 */
    background: #ffffff; /* 화이트 배경 */
    border: none; /* 구분선 제거 */
    overflow: hidden;
    position: relative;
    height: 300px; /* 섹션 높이 고정 */
}

.clients-carousel-container {
    width: 100%;
    height: 100%; /* 높이 100% */
    overflow: hidden;
    position: relative;
}

.clients-carousel-track {
    display: flex;
    height: 100%;
    /* animation 제거 - JavaScript로 제어 */
    will-change: transform;
    gap: 0;
}

.clients-carousel-slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* padding 제거 */
    margin: 0;
    height: 300px;
    width: auto;
}

.clients-carousel-image {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    max-width: none;
}

/* 무한 스크롤 애니메이션 - 50% 이동 (2세트 구조) */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* 전체의 절반만큼 이동 */
    }
}

/* 호버 시 애니메이션 일시정지 */
.clients-carousel-section:hover .clients-carousel-track {
    animation-play-state: paused;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .clients-carousel-section {
        padding: 0; /* 패딩 제거 */
        height: 180px; /* Mobile 높이 */
    }
    
    .clients-carousel-slide {
        height: 180px; /* Mobile: 180px */
    }
    
    .clients-carousel-image {
        height: 100%; /* 세로 폭에 맞춤 */
    }
    
    .clients-carousel-track {
        animation-duration: 6.67s; /* 10s → 6.67s (1.5배 빠르게) */
    }
}

/* Services Section */
.services-section {
    padding: var(--spacing-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-item {
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-item h3 {
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0;
}

.service-item p {
    font-size: clamp(14px, 1.1vw, 15px);
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: #0a0a0a; /* 메인보다 더 어두운 배경 */
    color: var(--color-text);
}

.contact-intro {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.contact-intro p {
    font-size: 24px;
    line-height: 1.4;
    color: var(--color-text-light);
    max-width: 100%;
    margin: 0;
}

.contact-content {
    max-width: 100%;
    margin: 0;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    text-align: left;
}

.info-item h4 {
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: var(--spacing-sm);
    opacity: 0.6;
}

.info-item p {
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.6;
}

.location-item {
    max-width: 350px;
}

.location-contact {
    font-weight: 500;
    margin-bottom: 8px;
}

.location-detail {
    font-size: clamp(13px, 1vw, 14px);
    margin-bottom: 6px;
}

.location-detail a {
    color: var(--color-text); /* 흰색 링크 */
    text-decoration: none;
    transition: var(--transition);
}

/* 메일 주소만 자간 넓히기 + 폰트 크기 1px 증가 */
.location-detail a[href^="mailto:"] {
    letter-spacing: 0.5px;
    font-size: clamp(14px, 1.05vw, 15px);
}

.location-detail a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.location-address {
    font-size: clamp(13px, 1vw, 14px);
    line-height: 1.7;
    margin-top: 12px;
    opacity: 0.85;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 12px; /* Instagram과 Behance 사이 간격 */
    align-items: center;
}

.social-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: clamp(40px, 3.5vw, 48px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: clamp(56px, 4.5vw, 64px);
    height: clamp(56px, 4.5vw, 64px);
}

.social-links a:first-child {
    /* Behance */
    font-size: clamp(38px, 3.3vw, 46px);
    width: clamp(54px, 4.3vw, 62px);
    height: clamp(54px, 4.3vw, 62px);
    padding-left: 0;
}

.social-links a:nth-child(2) {
    /* Instagram */
    font-size: clamp(40px, 3.5vw, 48px);
    width: clamp(56px, 4.5vw, 64px);
    height: clamp(56px, 4.5vw, 64px);
}

.social-links a:last-child {
    /* Naver Blog */
    width: clamp(56px, 4.5vw, 64px);
    height: clamp(56px, 4.5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 왼쪽으로 이동 (인스타그램 쪽) */
    padding: 0;
    margin-left: -8px; /* 인스타그램 쪽으로 8px 이동 */
}

.naver-blog-icon {
    width: clamp(34px, 3vw, 42px); /* 40-48px → 34-42px (약 15% 축소) */
    height: clamp(34px, 3vw, 42px);
    object-fit: contain;
}

.social-links a:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-content p {
    font-size: clamp(12px, 1vw, 14px);
    color: var(--color-text-light);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    font-size: clamp(12px, 1vw, 14px);
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header {
        border-bottom: none; /* 테두리 제거 */
    }
    
    .header-content {
        height: 68px !important; /* 65px → 68px */
    }
    
    .logo {
        gap: 15px;
        margin-left: 3px; /* 1px → 3px: 추가 2px 이동 */
    }
    
    .logo-image {
        height: 24px !important;
        max-height: 24px !important;
    }
    
    .menu-toggle {
        margin-right: -4px; /* 우측으로 4px 이동 */
    }
    
    .menu-toggle span {
        width: 16px !important;
        height: 2.5px !important;
        border-radius: 2.5px !important;
    }

    .hero {
        height: calc((100vw - 80px) / 2 * 4 / 3 * 1.2); /* 태블릿: 2열 기준 썸네일 높이의 1.2배 */
        min-height: 450px;
        max-height: 800px;
    }

    .hero-content {
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

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

    .menu-toggle.active span:nth-child(2) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        height: auto; /* 모바일: 비디오 비율에 맞춰 자동 높이 */
        min-height: unset;
        max-height: unset;
        aspect-ratio: 9 / 16; /* 세로형 비디오 비율 */
    }
    
    .hero-background-video {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        transform: none;
        object-fit: contain; /* cover → contain: 전체 영상 표시 */
    }

    /* 필터 및 검색 모바일 */
    .filter-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .search-box {
        width: 100%;
        min-width: 100%;
    }

    .filter-buttons {
        width: 100%;
        overflow-x: visible; /* auto → visible */
        flex-wrap: wrap; /* nowrap → wrap: 줄바꿈 허용 */
        padding-bottom: 0; /* 8px → 0 */
        gap: 8px; /* 간격 명시 */
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 12px; /* 모바일에서 작게 */
        padding: 8px 14px; /* 패딩 조정 */
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px; /* 20px → 16px: 썸네일 간격 줄임 */
    }

    .work-grid .container {
        padding: 0;
    }

    .project-card {
        padding: 0;
    }
    
    .project-info {
        padding: 0 12px 0 14px; /* 좌측 12px → 14px: 우측으로 2px 이동 */
        height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .project-title {
        font-size: 16px !important;
        margin-bottom: 4px !important;
        line-height: 1.3;
    }
    
    .project-category {
        font-size: 11px !important;
        line-height: 1.2;
    }

    .project-image {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        border-radius: 0;
    }

    .filter-buttons {
        overflow-x: auto;
        padding-bottom: var(--spacing-sm);
        -webkit-overflow-scrolling: touch;
        margin-left: 2px; /* 우측으로 2px 이동 */
    }

    .filter-buttons::-webkit-scrollbar {
        height: 4px;
    }

    .filter-buttons::-webkit-scrollbar-thumb {
        background-color: var(--color-border);
        border-radius: 2px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .contact-info {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 30px;
    }

    .location-item {
        max-width: 100%;
    }
    
    .info-item {
        order: 2;
    }
    
    .info-item:last-child {
        order: 1;
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: flex-start; /* 모바일: 좌측 정렬 */
        gap: 12px; /* 간격 유지 */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 32px;
        --spacing-xl: 48px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .header-content {
        height: 64px;
    }

    .hero {
        padding: 100px 0 var(--spacing-lg);
        margin-top: 64px;
    }

    .filter-section {
        padding: var(--spacing-md) 0;
    }

    .work-grid {
        padding: var(--spacing-lg) 0;
    }

    .about-section,
    .services-section,
    .contact-section {
        padding: var(--spacing-lg) 0;
    }
    
    .about-section .container,
    .services-section .container,
    .contact-section .container {
        padding-left: 19px !important; /* 18px → 19px: 1px 바깥쪽 */
        padding-right: 19px !important; /* 18px → 19px: 1px 바깥쪽 */
    }
    
    .contact-intro p {
        font-size: 20px;
    }

    .service-item {
        padding: 18px !important; /* var(--spacing-md) → 18px */
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .project-card,
    .service-item,
    .nav-link,
    .filter-btn {
        transition: var(--transition);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--color-text);
    color: var(--color-bg);
}

::-moz-selection {
    background-color: var(--color-text);
    color: var(--color-bg);
}