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

html {
    overflow-x: hidden;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 38px 56px;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1808px;
    margin: 0 auto;
}

.logo {
    width: 170px;
    height: 38px;
}

/* FIX #2: nav-menu는 이제 클래스(.open)로 토글합니다.
   데스크탑에서는 !important로 인라인/클래스 상태와 무관하게 항상 보이도록 강제합니다. */
.nav-menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    flex-basis: 100%;
    order: 3;
    margin-top: 48px;
    padding: 0 16px 12px 16px;
}

.nav-row {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.nav-menu.open {
    display: flex;
}

.nav-item {
    font-size: 10px;
    font-weight: 600;
    line-height: 13px;
    letter-spacing: 1px;
    text-align: center;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #666;
}

.nav-menu.open .nav-item {
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-image: url('images/img_screen_shot_20250407_at_14438_pm_1_914x1920.png');
    background-size: cover;
    background-position: center;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#video1 {
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(55, 55, 55, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 16px;
}

.hero-line {
    width: 86px;
    height: 2px;
    background-color: #ffffff;
    margin: 0 auto 8px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 6px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    font-family: 'Unna', serif;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 36px;
}

.play-button {
    width: 66px;
    height: 66px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.play-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    letter-spacing: 1px;
    text-align: center;
    color: #ffffff;
}

/* About Section */
.about {
    background-image: url('images/img_shutterstock1701424516_1.png');
    background-size: cover;
    background-position: center;
    padding: 60px 16px;
    text-align: center;
    color: #ffffff;
}

.about-content {
    max-width: 760px;
    margin: 0 auto;
}

.about-subtitle {
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    margin-bottom: 22px;
}

.about-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 44px;
    letter-spacing: 7px;
    margin-bottom: 22px;
}

.about-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    text-wrap: pretty;
}

/* Services Section */
.services {
    background-image: url('images/img_what_we_dolong_1.png');
    background-size: cover;
    background-position: center;
    padding: 100px 16px 60px 16px;
    position: relative;
}

.services-content {
    max-width: 1214px;
    margin: 0 auto;
    text-align: center;
}

.services-subtitle {
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.services-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 44px;
    letter-spacing: 7px;
    margin-bottom: 78px;
}

.services-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 18px;
    margin-bottom: 146px;
    padding: 0 10% 8px 10%; 
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
    scrollbar-width: none; /* Firefox 스크롤바 숨김 */
}

.services-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari 스크롤바 숨김 */
}

.service-card {
    background-color: #f7f7f7;
    padding: 62px 16px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    flex: 0 0 100%;           /* 카드 하나가 화면의 80% 차지 → 다음 카드가 살짝 보임 */
    scroll-snap-align: center;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.service-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    margin-bottom: 18px;
}

.service-details {
    font-size: 12px;
    font-weight: 300;
    line-height: 24px;
    text-align: center;
    text-wrap: pretty; 
}

.why-choose-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 44px;
    letter-spacing: 7px;
    text-align: center;
    margin-bottom: 58px;
}

.features-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 32px;
    margin-bottom: 0;
    padding: 0 10% 8px 10%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.features-list::-webkit-scrollbar {
    display: none;
}

.feature-item {
    text-align: center;
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.feature-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    margin-bottom: 16px;
}

.feature-text {
    font-size: 12px;
    font-weight: 300;
    line-height: 17px;
    text-wrap: pretty; 
}

/* Portfolio Section */
.portfolio {
    background-color: #ffffff;
    padding: 80px 16px 40px 16px;
}

.portfolio-content {
    max-width: 1808px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-line {
    width: 2px;
    height: 34px;
    background-color: #eaeaea;
    margin: 0 auto 30px;
}

.portfolio-subtitle {
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.portfolio-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 44px;
    letter-spacing: 7px;
    margin-bottom: 40px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 34px;
}

.filter-btn {
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 500;
    line-height: 13px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #000000;
    color: #ffffff;
}

.filter-btn:not(.active) {
    background-color: #ffffff;
    color: #afafaf;
    border: 1px solid #f7f7f7;
}

.portfolio-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    max-width: 1138px;
    margin: 0 auto;
    padding: 0 10% 8px 10%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.portfolio-grid::-webkit-scrollbar {
    display: none;
}

.portfolio-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    scroll-snap-align: center;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 18px;
}

.portfolio-item-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    margin-bottom: 4px;
    text-align: center;
}

.portfolio-item-category {
    font-size: 10px;
    font-weight: 400;
    line-height: 13px;
    color: #afafaf;
    text-align: center;
}

/* Awards Section */
.awards {
    background-color: #f7f7f7;
    padding: 106px 16px;
    text-align: center;
}

.awards-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 3px;
    margin-bottom: 56px;
}

.awards-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 34px;
    max-width: 600px;
    margin: 0 auto;
}

/* Clients Section */
.clients {
    background-color: #ffffff;
    padding: 40px 16px 112px 16px;
    text-align: center;
}

.clients-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 3px;
    margin-bottom: 66px;
}

.clients-collage {
    display: block;
    width: 100%;
    max-width: 630px;
    height: auto;
    margin: 0 auto 112px;
}

.partners-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    max-width: 814px;
    margin: 0 auto;
}

.partner-logo {
    max-width: 80px;
    height: auto;
}

@media (min-width: 768px) {
    .partners-grid {
        gap: 40px;
    }

    .partner-logo {
        max-width: 120px;
    }
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 62px 16px;
    text-align: center;
}

.footer-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 8px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
}
.footer-contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.footer-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.footer-icon {
    width: 16px;
    height: 16px;
}

/* ============================================
   Portfolio Sprite Thumbnail (hover-swap image)
   FIX #3: background-repeat: no-repeat 추가,
   px 고정값 대신 %/aspect-ratio로 반응형 대응
   원본 스프라이트 이미지 크기: 260 x 388 (위/아래 절반씩 194px)
   ============================================ */
.sprite-thumb {
    width: 100%;
    aspect-ratio: 260 / 194;
    height: auto;
    position: relative;
    background-position: 0 100%;   /* 아래쪽 절반 = 기본 이미지 */
    background-size: 100% 200%;    /* 컨테이너 너비에 맞춰 자동 스케일 */
    background-repeat: no-repeat;  /* 핵심 버그 수정: 반복 방지 */
    overflow: hidden;
    margin-bottom: 10px;
}

.sprite-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: 100% 200%;
    background-position: 0 0;      /* 위쪽 절반 = hover 이미지 */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.sprite-thumb:hover::after {
    opacity: 1;
}

.zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.sprite-thumb:hover .zoom-btn {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-video {
    max-width: 90%;
    max-height: 90%;
    display: none;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    padding: 12px;
    user-select: none;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

/* Portfolio filter animation */
.portfolio-item {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 1;
    transform: translateY(0);
}

.slide-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .services-title {
        font-size: 28px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    /* FIX #2: 데스크탑에서는 인라인 스타일이나 .open 클래스 유무와 무관하게 항상 보이도록 강제 */
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        flex-basis: auto;
        order: 0;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        width: auto;
        gap: 32px;
    }

    .nav-row {
        display: contents;
    }

    .nav-menu.open .nav-item {
        font-size: 10px;
    }


    .hero-title {
        font-size: 60px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

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

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

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
    }
    .service-card {
        flex: unset;
    }

    .features-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        padding: 0 16px;
    }

    .feature-item {
        flex: unset;
        max-width: 260px;
    }
    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        padding: 0;
    }

    .portfolio-item {
        flex: unset;
    }

     .portfolio-title {
        margin-bottom: 70px;   
     }
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .header {
        padding: 38px 120px;
    }

    .about {
        padding: 166px 56px;
    }

    .services {
        padding: 174px 56px;
    }

    .portfolio {
        padding: 102px 56px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .awards {
        padding: 106px 56px;
    }

    .clients {
        padding: 112px 56px;
    }

    .footer {
        padding: 62px 56px;
    }
}

@media (min-width: 1280px) {
    .why-choose-title {
        font-size: 36px;
    }

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

    .awards-title {
        font-size: 26px;
    }

    .clients-title {
        font-size: 26px;
    }

    .partners-title {
        font-size: 26px;
    }
}


.desktop-break {
    display: none;
}

@media (min-width: 768px) {
    .desktop-break {
        display: inline;
    }
}