/* Custom Styles for Company Introduction Website */
/* ============================================= */

/* 전역 설정 */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* 네비게이션 스타일 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #2563eb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* 히어로 섹션 애니메이션 */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* 배경 이미지 최적화 */
.hero-section .bg-cover {
    filter: brightness(0.8) contrast(1.1);
}

/* 텍스트 그림자 효과 */
.hero-section h1,
.hero-section p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

/* 서비스 카드 호버 효과 */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: #2563eb;
    transform: translateY(-8px) scale(1.02);
}

.service-card:hover .fas {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 성과 카운터 애니메이션 */
.achievement-item {
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.counter {
    font-variant-numeric: tabular-nums;
}

/* 팀 카드 스타일 */
.team-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: #e5e7eb;
}

.team-card:hover .fas,
.team-card:hover .fab {
    transform: scale(1.1);
}

/* 폼 스타일링 */
#contact-form input:focus,
#contact-form textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#contact-form button:hover {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* 스크롤 진행 바 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* 섹션 애니메이션 */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 그라데이션 텍스트 효과 */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 버튼 효과 */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .service-card,
    .team-card {
        transform: none !important;
    }
    
    .service-card:hover,
    .team-card:hover {
        transform: none !important;
    }
}

/* 로딩 스피너 */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 로고 스타일링 */
.navbar-logo-container {
    transition: all 0.3s ease;
}

.navbar-logo-container:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.navbar-logo-container img {
    transition: all 0.3s ease;
}

/* 푸터 로고 (어두운 배경용) - 투명 배경이므로 흰색으로 표시 */
.footer-logo {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 포커스 표시 개선 */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* 다크모드 지원 준비 */
@media (prefers-color-scheme: dark) {
    /* 추후 다크모드 스타일 추가 예정 */
}

/* 인쇄 스타일 */
@media print {
    .hero-section,
    #contact,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* 고해상도 디스플레이 최적화 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 25px 25px;
    }
}