/* HNT Company Website - Main Stylesheet */

/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
}

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 76px; /* Fixed navbar height */
}

/* Typography */
.section-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Deprecated: Logo placeholder styles - replaced with actual logo images
.logo-placeholder {
    width: 40px;
    height: 40px;
    border: 2px dashed #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #ffffff;
    text-align: center;
}
*/

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px dashed rgba(255,255,255,0.3);
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    text-align: center;
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Counter Cards */
.counter-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
}

.counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.counter-unit {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-left: 0.2rem;
}

.quality-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warning-color);
}

/* Company Introduction */
.company-image-placeholder {
    min-height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    font-size: 1rem;
    text-align: center;
}

.feature-item {
    padding: 0.5rem 0;
}

.feature-icon {
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vision Section */
.vision-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.product-image-placeholder {
    height: 200px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.product-card:hover .product-image-placeholder {
    background: rgba(0, 102, 204, 0.1);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-card .list-unstyled li {
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

/* Deprecated: Footer logo placeholder - replaced with actual logo image
.footer-logo {
    width: 80px;
    height: 40px;
    border: 2px dashed #6c757d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #6c757d;
    text-align: center;
    margin-top: 1rem;
}
*/

.footer-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

footer h5 {
    color: white;
    font-weight: 600;
}

footer .text-muted {
    color: #adb5bd !important;
}

footer a.text-muted:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .counter-unit {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .counter-number {
        font-size: 1.8rem;
    }
    
    .product-image-placeholder {
        height: 150px;
        font-size: 0.8rem;
    }
    
    .company-image-placeholder {
        min-height: 200px;
        font-size: 0.9rem;
    }
    
    .vision-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    .counter-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
}

/* Utility Classes */
.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.border-radius-lg {
    border-radius: 15px !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Loading Spinner for Images */
.placeholder-loading {
    position: relative;
    overflow: hidden;
}

.placeholder-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Timeline Styles - 타임라인 그래픽 디자인 */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* 타임라인 중앙 세로선 */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--success-color) 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
    border-radius: 2px;
    animation: drawLine 2s ease-out forwards;
    transform-origin: top;
}

/* 타임라인 라인 그리기 애니메이션 */
@keyframes drawLine {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 100%;
        opacity: 1;
    }
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    opacity: 0;
    animation: slideInTimeline 0.8s ease-out forwards;
    animation-delay: calc(var(--timeline-delay, 0) * 0.2s);
}

.timeline-item:nth-child(1) { --timeline-delay: 1; }
.timeline-item:nth-child(2) { --timeline-delay: 2; }
.timeline-item:nth-child(3) { --timeline-delay: 3; }
.timeline-item:nth-child(4) { --timeline-delay: 4; }
.timeline-item:nth-child(5) { --timeline-delay: 5; }

/* 타임라인 포인트 (동그라미) */
.timeline-point {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
}

.timeline-item:hover .timeline-point {
    transform: translate(-50%, -50%) scale(1.3);
    border-color: var(--success-color);
    animation: pulse 1.5s infinite;
}

.timeline-item.current .timeline-point {
    background: var(--warning-color);
    border-color: var(--warning-color);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}

/* 타임라인 연도 배지 */
.timeline-date {
    position: absolute;
    top: 50%;
    width: 120px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    font-weight: 600;
}

/* 짝수 번째 아이템은 왼쪽에 배치 */
.timeline-item:nth-child(even) .timeline-date {
    right: 60%;
}

/* 홀수 번째 아이템은 오른쪽에 배치 */
.timeline-item:nth-child(odd) .timeline-date {
    left: 60%;
}

.timeline-date .year {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.timeline-date .month {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/* 타임라인 콘텐츠 카드 */
.timeline-content {
    width: 45%;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

/* 말풍선 화살표 */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    transform: translateY(-50%);
}

/* 짝수 번째 아이템 (왼쪽 콘텐츠) */
.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -15px;
    border-left: 15px solid white;
}

/* 홀수 번째 아이템 (오른쪽 콘텐츠) */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -15px;
    border-right: 15px solid white;
}

/* 호버 효과 */
.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.timeline-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content p {
    margin-bottom: 1rem;
    color: var(--gray-color);
    line-height: 1.6;
}

.timeline-content ul {
    margin-bottom: 0;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}

/* 현재 아이템 강조 */
.timeline-item.current .timeline-content {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    border-color: var(--warning-color);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}

.timeline-item.current .timeline-content h4 {
    color: var(--warning-color);
}

/* 애니메이션 */
@keyframes slideInTimeline {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        margin: 2rem 0;
    }
    
    .timeline-point {
        left: 30px;
    }
    
    .timeline-date {
        left: 70px !important;
        right: auto !important;
        width: 100px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 70px !important;
        margin-right: 0 !important;
    }
    
    .timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-right: 15px solid white !important;
        border-left: none !important;
    }
    
    .timeline-date .year {
        font-size: 1rem;
    }
    
    .timeline-date .month {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .timeline-date {
        width: 80px;
        padding: 0.3rem 0.5rem;
    }
    
    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 60px !important;
        padding: 1rem;
    }
    
    .timeline-date .year {
        font-size: 0.9rem;
    }
    
    .timeline-date .month {
        font-size: 0.6rem;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
}ent: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    body {
        padding-top: 0;
    }
}
