/*
Theme Name: DaHam Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: DaHam 유물운송 웹사이트를 위한 맞춤형 워드프레스 테마입니다.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dahamtheme
*/

/* --- 여기에 Index.html의 모든 CSS 코드를 붙여넣으세요 --- */
body { 
    font-family: 'Spoqa Han Sans Neo', 'sans-serif'; 
    scroll-behavior: smooth; 
}
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #a0aec0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #718096; }
.navbar { transition: background-color 0.9s ease-in-out, box-shadow 0.9s ease-in-out, transform 0.7s ease-out, opacity 0.7s ease-out; background-color: transparent; box-shadow: none; transform: translateY(-100%); opacity: 0; visibility: hidden; }
.navbar-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.navbar-scrolled { background-color: rgba(0, 0, 0, 0.85); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.nav-link { position: relative; transition: color 0.3s ease; padding-top: 2px; padding-bottom: 2px; font-size: 0.8rem; line-height: 1.2; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 1.5px; bottom: 0; left: 50%; transform: translateX(-50%); background-color: #fbbf24; transition: width 0.3s ease; }
.nav-link:hover { color: #fbbf24; }
.nav-link:hover::after { width: 100%; }
.mobile-menu-item { transition: background-color 0.2s ease, color 0.2s ease; }
.mobile-menu-item:hover { background-color: #334155; color: #fbbf24; }
.navbar-logo-img { height: 30px; width: auto; }
@media (min-width: 640px) { .navbar-logo-img { height: 36px; } }
.navbar-kakao-link { display: flex; align-items: center; color: #FAE100; transition: color 0.3s ease, transform 0.3s ease; }
.navbar-kakao-link:hover { color: #FADA00; }
.navbar-kakao-link i { font-size: 1rem; transition: transform 0.3s ease; }
.navbar-kakao-link:hover i { transform: scale(1.1); }
.navbar-kakao-link span { font-size: 0.7rem; margin-left: 0.2rem; color: white; font-weight: 500; line-height: 1.2; }
.navbar-kakao-link:hover span { color: #FADA00; }

/* --- Hero 섹션 스타일 원복 --- */
.hero-section { 
    height: 100vh; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
}
#heroBgVideo { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    min-width: 100%; 
    min-height: 100%; 
    width: auto; 
    height: auto; 
    z-index: -2; 
    transform: translateX(-50%) translateY(-50%); 
    object-fit: cover; 
}
.video-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.2); 
    z-index: -1;
}
.hero-text-container { position: relative; z-index: 10; }
/* --- Hero 섹션 스타일 끝 --- */

.hero-section .animated-text-hero-element { opacity: 0; transform: translateY(30px); animation: fadeInSlideUpHero 1s ease-out forwards; }
.hero-main-title-container { min-height: 70px; margin-bottom: 1rem; }
.hero-main-title-container h1 { font-size: 2.25rem; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); }
@media (min-width: 640px) { .hero-main-title-container { min-height: 90px; } .hero-main-title-container h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero-main-title-container { min-height: 110px; } .hero-main-title-container h1 { font-size: 3.75rem; } }
.typing-cursor::after { content: '|'; animation: blinkCursor 0.7s infinite; font-weight: normal; color: #fbbf24; margin-left: 2px; text-shadow: none; }
@keyframes blinkCursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-sub-title { animation-delay: 0.8s; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); } 
.hero-scroll-indicator { animation-delay: 1.1s; } 
@keyframes fadeInSlideUpHero { to { opacity: 1; transform: translateY(0); } }
.hero-scroll-arrow span { display: block; width: 20px; height: 20px; border-bottom: 2px solid white; border-right: 2px solid white; transform: rotate(45deg); margin: -5px auto 0 auto; animation: scrollAniHero 2s infinite; }
@keyframes scrollAniHero { 0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); } 50% { opacity: 1; } 100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); } }
.section { padding: 5rem 1.5rem; }
.section-title { font-weight: 800; margin-bottom: 3.5rem; color: #1e293b; position: relative; display: inline-block; text-shadow: 1px 1px 3px rgba(0,0,0,0.15), 0 0 5px rgba(251, 191, 36, 0.2); }
.section-title::after { content: ''; position: absolute; width: 60%; height: 4px; background-color: #fbbf24; bottom: -10px; left: 50%; transform: translateX(-50%); border-radius: 2px; }
.service-card { background-color: white; border-radius: 0.75rem; padding: 2.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.07), 0 6px 6px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; border: 1px solid #e2e8f0; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.07); }
.service-icon { font-size: 3.5rem; margin-bottom: 1.5rem; color: #fbbf24; }
.service-card h3 { color: #1e293b; }
.service-card p { color: #475569; }
.process-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; padding: 2rem; background-color: white; border-radius: 0.5rem; box-shadow: 0 8px 15px rgba(0,0,0,0.06); text-align: center; border-left: 4px solid #fbbf24; }
.process-step-number { position: absolute; top: -1.25rem; left: 50%; transform: translateX(-50%); background-color: #fbbf24; color: #1e293b; width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.process-step h3 { color: #1e293b; }
.process-step p { color: #475569; }
.safety-feature-card { background-color: white; color: #1e293b; border-radius: 0.75rem; padding: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.07), 0 6px 6px rgba(0,0,0,0.05); display: flex; align-items: flex-start; gap: 1.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.safety-feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.07); }
.safety-icon-wrapper { flex-shrink: 0; background-color: #fef3c7; color: #d97706; border-radius: 9999px; width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center; }
.safety-icon { font-size: 1.875rem; }
.safety-feature-card h3 { color: #1e293b; }
.safety-feature-card p { color: #475569; }

/* --- 갤러리 & 모달 스타일 시작 --- */
.history-carousel-container { position: relative; overflow: hidden; margin-top: 3rem; }
.history-grid { display: flex; }
.history-card { flex-shrink: 0; box-sizing: border-box; padding: 0 1rem; width: 100%; cursor: pointer; }
@media (min-width: 768px) { .history-card { width: 50%; } }
@media (min-width: 1024px) { .history-card { width: 33.333333%; } }
.history-image-preview-container { width: 100%; height: 300px; }
.history-image-preview { width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; cursor: pointer; background-color: rgba(0, 0, 0, 0.4); color: white; border-radius: 9999px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease; }
.slider-arrow:hover { background-color: rgba(0, 0, 0, 0.7); }
#prev-slide { left: -50px; opacity: 0; transition: left 0.3s ease, opacity 0.3s ease; }
#next-slide { right: -50px; opacity: 0; transition: right 0.3s ease, opacity 0.3s ease; }
.history-carousel-container:hover #prev-slide { left: 1rem; opacity: 1; }
.history-carousel-container:hover #next-slide { right: 1rem; opacity: 1; }

#image-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
#image-modal.show { opacity: 1; visibility: visible; }
#modal-image { max-width: 90%; max-height: 90%; border-radius: 0.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.4s ease, opacity 0.2s ease; transform: scale(0.8); filter: contrast(1.1); }
#image-modal.show #modal-image { transform: scale(1.2); }
#close-modal { position: absolute; top: 2rem; right: 2rem; color: white; font-size: 2.5rem; cursor: pointer; line-height: 1; z-index: 1002; }
.modal-arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.4); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 1.5rem; cursor: pointer; transition: background-color 0.2s ease; z-index: 1001; }
.modal-arrow:hover { background-color: rgba(0, 0, 0, 0.7); }
#modal-prev { left: 2rem; }
#modal-next { right: 2rem; }
/* --- 갤러리 & 모달 스타일 끝 --- */

.footer { background-color: #0f172a; color: #94a3b8; padding: 3rem 1.5rem; }
.footer a { transition: color 0.3s ease; } 
.footer a:hover { color: #fbbf24; }
.footer-logo-img { height: 48px; width: auto; margin-bottom: 1rem; }
.floating-kakao-button { position: fixed; bottom: 2rem; right: 2rem; background-color: #FAE100; color: #3C1E1E; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; transition: transform 0.3s ease, background-color 0.3s ease; animation: floatAnimation 3s ease-in-out infinite; }
.floating-kakao-button:hover { background-color: #FADA00; transform: scale(1.1); animation-play-state: paused; }
.floating-kakao-button i { font-size: 1.75rem; }
@keyframes floatAnimation { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { translateY(0px); } }
@media (max-width: 768px) { .hero-section .hero-sub-title { font-size: 1rem; line-height: 1.5; } .hero-scroll-arrow span { width: 15px; height: 15px; } .floating-kakao-button { bottom: 1.5rem; right: 1.5rem; width: 50px; height: 50px; } .floating-kakao-button i { font-size: 1.5rem; } .history-image-preview-container { height: 220px; } .modal-arrow { width: 40px; height: 40px; font-size: 1.2rem; } #modal-prev { left: 0.5rem; } #modal-next { right: 0.5rem; } }
@media (max-width: 480px) { .hero-section .hero-sub-title { font-size: 0.875rem; } .history-image-preview-container { height: 200px; } }
@media (max-width: 768px) { .section-title { font-size: 2rem; } }
@media (max-width: 480px) { .section-title { font-size: 1.75rem; } .service-card { padding: 1.5rem; } .process-step { padding: 1.5rem; } .safety-feature-card { flex-direction: column; align-items: center; text-align:center; gap: 1rem;} .safety-icon-wrapper { margin-bottom: 0.5rem; } }

/* --- 갤러리 타이핑 효과 스타일 --- */
.history-image-preview-container {
    position: relative;
    overflow: hidden; /* 오버레이가 이미지를 벗어나지 않도록 */
}

.gallery-typing-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 1rem 0.8rem 1rem;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none; /* 오버레이가 이미지 클릭을 방해하지 않도록 */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: center; /* 문구 중앙 정렬 */
}

.history-card:hover .gallery-typing-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-typing-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0;
    line-height: 1.4;
}

.gallery-typing-text .typing-cursor {
    color: #fbbf24;
    font-weight: normal;
}

/* --- 모달창 타이핑 효과 스타일 --- */
#image-modal .modal-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex; /* 이미지가 로드될 때 wrapper 크기를 맞추기 위함 */
    align-items: center;
    justify-content: center;
}

#image-modal .gallery-typing-overlay {
    opacity: 1;
    transform: translateY(0);
    width: 100%;
    text-align: center; /* 문구 중앙 정렬 */
    padding: 4rem 1.5rem 1.2rem 1.5rem;
    box-sizing: border-box; /* 패딩이 width에 포함되도록 */
}

#image-modal .gallery-typing-text {
    text-align: center; /* 문구 중앙 정렬 */
}

@media (max-width: 768px) {
    .gallery-typing-text {
        font-size: 0.8rem;
    }
    #image-modal .gallery-typing-overlay {
        padding: 3rem 1rem 1rem 1rem;
    }
}

/* --- 네비게이션 바 애니메이션 스타일 --- */
.navbar { 
    transition: background-color 0.9s ease-in-out, box-shadow 0.9s ease-in-out, transform 0.7s ease-out, opacity 0.7s ease-out; 
    background-color: transparent; 
    box-shadow: none; 
    transform: translateY(-100%); /* 기본 상태: 화면 위쪽으로 숨김 */
    opacity: 0; 
    visibility: hidden; 
}
.navbar-visible { 
    transform: translateY(0); /* 활성 상태: 제자리로 내려옴 */
    opacity: 1; 
    visibility: visible; 
}
.navbar-scrolled { 
    background-color: rgba(0, 0, 0, 0.85); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
}