/**
 * 나노피아 메인 페이지 스타일시트
 * 버전: 1.1.0
 * 독립적인 CSS 클래스 네임 사용 (다른 페이지와 중복 방지)
 * 주의: 헤더와 푸터 스타일은 css/common.css에 있습니다.
 */

/* 히어로 섹션 */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    background-image: url('/img/mainimage.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 제품 섹션 */
.product-section {
    padding: 5rem 0;
    background: #ffffff;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0056b3);
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* 회사 정보 섹션 */
.info-section {
    padding: 5rem 0;
}

.info-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.info-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.info-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2c3e50;
}

/* 고객 문의 섹션 */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.contact-card,
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon,
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
}

.service-icon {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.contact-card h3,
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-card p,
.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-info {
    text-align: left;
}

.phone-number,
.email-address {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.phone-number i,
.email-address i {
    margin-right: 0.5rem;
    color: #0d6efd;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-card,
    .service-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-icon,
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

