/* 1. 기본 초기화 및 프리텐다드 전체 적용 */
html { scroll-behavior: smooth; }
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
}
body { background-color: #000; color: white; overflow-x: hidden; }

/* 2. 상단바 (메뉴 및 로고) */
.navbar {
    position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between;
    padding: 30px 50px; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); z-index: 1000;
}
.nav-logo { font-weight: 800; letter-spacing: 2px; font-size: 1.2rem; }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: white; font-size: 0.85rem; font-weight: 700; transition: 0.3s; }
.nav-links a:hover { color: #888; }

/* 3. 메인 대문 (중앙 로고 디자인) */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('home.jpg');
    background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center; text-align: center;
}
.brand-logo { 
    font-size: 6rem; font-weight: 900;
    letter-spacing: 15px; text-transform: uppercase; margin-bottom: 15px; 
}
.brand-logo span { font-weight: 900; }
.hero-sub { font-size: 1.2rem; letter-spacing: 5px; color: #ccc; font-weight: 500; }

/* 4. ABOUT 섹션 */
.about-section {
    padding: 150px 50px; background-color: #0a0a0a; min-height: 80vh;
    display: flex; justify-content: center; align-items: center;
}
.about-container { max-width: 1200px; display: flex; gap: 100px; }
.about-title { flex: 1; }
.about-title h2 { font-size: 4rem; line-height: 1.1; font-weight: 900; letter-spacing: -1px; }
.highlight { color: #444; }

.about-desc { flex: 1.2; }
.main-p { font-size: 1.8rem; font-weight: 700; margin-bottom: 30px; line-height: 1.4; }
.sub-p { font-size: 1.1rem; color: #888; line-height: 1.8; margin-bottom: 40px; }

.process-list { display: flex; gap: 30px; }
.p-item { font-weight: 700; font-size: 0.9rem; color: #555; letter-spacing: 1px; }
.p-item span { color: #fff; margin-right: 8px; }

/* 5. 공통 섹션 */
.common-section { padding: 100px 50px; text-align: center; min-height: 100vh; }
.section-title { font-size: 3rem; font-weight: 900; margin-bottom: 60px; letter-spacing: 5px; }

/* 6. SERVICE 섹션 */
.service-bg {
    background-color: #000;
    padding-top: 150px; padding-bottom: 150px;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}
.service-item {
    padding: 30px 20px; 
    background: #0a0a0a; border: 1px solid #1a1a1a;
    transition: all 0.4s ease;
}
.service-item:hover {
    background: #111; border-color: #444;
    transform: translateY(-10px);
}
.service-icon {
    font-size: 1.1rem; font-weight: 900; color: #444;
    margin-bottom: 20px; border-bottom: 1px solid #222;
    display: inline-block; padding-bottom: 5px;
}
.service-item h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; letter-spacing: 0.5px; }
.service-item p { font-size: 0.9rem; color: #888; line-height: 1.6; word-break: keep-all; }

/* 7. PORTFOLIO 그리드 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; max-width: 1200px; margin: 0 auto;
}
.work-item { 
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: #111; cursor: pointer; overflow: hidden; border: 1px solid #1a1a1a;
}
.work-thumb { width: 100%; height: 100%; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.work-item:hover .work-thumb img { transform: scale(1.1); }
.work-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); display: flex; flex-direction: column;
    justify-content: center; align-items: center; opacity: 0; transition: 0.4s;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-title { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 5px; text-align: center; padding: 0 10px; }
.work-category { font-size: 0.7rem; color: #666; letter-spacing: 2px; }

/* 8. MORE 버튼 및 모달 */
.more-btn-container { margin-top: 80px; text-align: center; width: 100%; }
.more-btn {
    background: transparent; color: #fff; border: 1px solid #333;
    padding: 22px 80px; font-size: 1rem; font-weight: 800;
    cursor: pointer; transition: 0.4s; letter-spacing: 4px; text-transform: uppercase;
}
.more-btn:hover { background: #fff; color: #000; transform: translateY(-5px); }

.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); }
.modal-content { position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 1000px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.close-modal { position: absolute; top: -50px; right: 0; color: #fff; font-size: 3rem; cursor: pointer; }

/* 9. CONTACT 섹션 (New Minimal Edition) */
.contact-bg { background-color: #000; padding: 200px 50px 100px; border-top: 1px solid #111; }
.contact-container { max-width: 1200px; margin: 0 auto; text-align: left; }

/* 메인 문구: 굵기 대비를 통한 세련미 */
.contact-top-wrapper { margin-bottom: 80px; }
.new-contact-headline { 
    font-size: 4.5rem; font-weight: 900; line-height: 1.1; letter-spacing: -2px; 
    color: #fff; text-transform: uppercase; margin-bottom: 40px;
}
.new-contact-headline .thin-text { font-weight: 300; color: #444; } /* 대조 효과 */
.horizontal-line { width: 100%; height: 1px; background: #1a1a1a; }

/* 정보 리스트: 얇은 선과 여백 활용 */
.contact-info-list { margin-bottom: 120px; }
.info-row { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 30px 0; border-bottom: 1px solid #111;
}
.info-row:last-child { border-bottom: none; }

.info-label { color: #333; font-size: 0.8rem; font-weight: 800; letter-spacing: 3px; }
.info-data { color: #888; font-size: 1.2rem; font-weight: 600; text-decoration: none; transition: 0.3s; }
a.info-data:hover { color: #fff; transform: translateX(-10px); }

/* 소셜 그리드: 기존 마음에 들어하신 디자인 복구 */
.contact-social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 80px; }
.social-box {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding: 40px 30px; background: #080808; border: 1px solid #151515;
    text-decoration: none; color: #fff; height: 160px; transition: 0.5s;
}
.social-info { display: flex; flex-direction: column; }
.social-tag { font-size: 1.1rem; font-weight: 800; }
.social-sub { font-size: 0.7rem; color: #555; font-weight: 700; margin-top: 5px; }
.social-arrow { font-size: 1.2rem; opacity: 0.3; transition: 0.3s; }
.social-box:hover { background: #fff; color: #000; transform: translateY(-5px); }

/* 푸터 */
.contact-footer { color: #222; font-weight: 700; font-size: 0.8rem; text-align: center; }

/* 모바일 대응 */
@media (max-width: 768px) {
    .contact-bg { padding: 100px 20px; }
    .new-contact-headline { font-size: 2.2rem; }
    .info-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .info-data { font-size: 1rem; }
    .contact-social-grid { grid-template-columns: 1fr; }
}


/* 10. 반응형 최적화 (모바일 및 태블릿) */
@media (max-width: 1100px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-logo { font-size: 4.5rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 20px; }
    .nav-links { display: none; }
    .brand-logo { font-size: 2.8rem; letter-spacing: 5px; }
    .hero-sub { font-size: 0.9rem; letter-spacing: 2px; }
    .about-container { flex-direction: column; gap: 40px; padding: 0 20px; }
    .about-title h2 { font-size: 2.5rem; }
    .main-p { font-size: 1.4rem; }
    .service-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    
    .contact-headline { font-size: 2.5rem; margin-bottom: 50px; }
    .contact-email { font-size: 1.4rem; word-break: break-all; }
    .contact-social-grid { grid-template-columns: 1fr; }
    .social-box { height: auto; padding: 30px 20px; }
    .contact-footer { flex-direction: column; gap: 10px; text-align: center; }
}