/* 홈페이지 전용 스타일 */

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
    max-width: 600px;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
    font-size: 1.125rem;
    padding: 16px 32px;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: white;
    transform: scale(1.2);
}

/* Intro Section */
.intro-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.intro-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.intro-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.intro-item h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.intro-item p {
    color: #666;
    line-height: 1.6;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Product Carousel - 웹 버전 */
.product-carousel-container {
    position: relative;
    margin-top: 2rem;
}

.product-carousel-wrapper {
    overflow: hidden;
    position: relative;
    margin: 0 60px;
}

.product-carousel-scroller {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

.product-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    pointer-events: all;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2E7D32;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #2E7D32;
    color: white;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.3);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 320px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

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

.product-image-wrap {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

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

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

.product-quick-view {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(46, 125, 50, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-quick-view {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-price-wrap {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-price {
    color: #2E7D32;
    font-size: 1.3rem;
    font-weight: 700;
}

.product-discount {
    background: #FF5722;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-review {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.6rem;
}

.review-stars {
    color: #FFC107;
    font-size: 0.95rem;
}

.review-count {
    color: #666;
    font-size: 0.9rem;
}

.product-delivery {
    color: #4CAF50;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Analysis Section */
.analysis-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
}

.analysis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.analysis-text h2 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.analysis-text p {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #333;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.permission-notice,
.login-notice {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #ff9800;
}

.analysis-visual {
    text-align: center;
}

.analysis-demo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.analysis-demo:hover {
    transform: scale(1.02);
}

.analysis-demo img,
.analysis-demo video {
    width: 100%;
    height: auto;
    display: block;
}

.analysis-demo video {
    border-radius: 12px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(76, 175, 80, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(76, 175, 80, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Section */
.video-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
}

.video-container video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.video-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-placeholder img {
    width: 100%;
    height: auto;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button span {
    color: white;
    font-size: 2.5rem;
    margin-left: 5px;
}

/* News Section */
.news-section {
    padding: 5rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.news-date {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-item h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.news-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #4CAF50;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2E7D32;
    text-decoration: underline;
}

/* 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);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .intro-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analysis-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .analysis-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Hero Section - 모바일 최적화 */
    .hero-section {
        height: auto;
        min-height: 360px;
        margin-top: 50px; /* 새로운 헤더 높이 */
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-container {
        flex-direction: column;
        padding: 0 15px;
        gap: 5px;
    }

    .hero-content {
        order: 1;
        padding: 15px 10px 10px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        color: #666;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        display: none; /* 모바일에서 긴 설명 숨김 */
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .hero-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 5px;
    }

    .hero-link {
        min-height: 40px;
        padding: 8px 16px;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-image {
        order: 2;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .hero-slider {
        border-radius: 8px;
        overflow: hidden;
        max-height: 300px;
        aspect-ratio: 16/9;
    }

    .hero-slide {
        height: 100%;
    }

    .hero-slide img,
    .hero-slide video {
        width: 100%;
        height: 100%;
        max-height: 300px;
        object-fit: cover;
        display: block;
    }

    /* 슬라이더 컨트롤 - 모바일 최적화 */
    .hero-slider-controls {
        position: absolute;
        bottom: 10px;
        right: 10px;
        display: flex;
        gap: 8px;
        z-index: 10;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        cursor: pointer;
    }

    .hero-slider-indicators {
        bottom: 60px;
    }

    .slider-indicator {
        width: 8px;
        height: 8px;
        padding: 0;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .slider-indicator.active {
        background: white;
        transform: scale(1.2);
    }

    /* Intro Section */
    .intro-section {
        padding: 0;
        margin: 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 10px 15px;
    }

    .intro-item {
        padding: 1.2rem;
    }

    .intro-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .intro-item p {
        font-size: 0.9rem;
    }

    /* Features Section */
    .features-section {
        padding: 0;
        margin: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 15px;
    }

    .feature-card {
        padding: 1.2rem;
        text-align: center;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    /* Products Section */
    .products-section {
        padding: 0;
        margin: 0;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        margin-bottom: 10px;
        padding: 10px 15px 0;
    }

    .section-title {
        font-size: 1.3rem;
        margin: 0;
    }

    .product-carousel-container {
        margin: 0;
        padding: 0;
    }

    .product-carousel-scroller {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 10px 15px;
    }

    .product-card {
        min-width: 260px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .product-image-wrap {
        height: 220px;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-info h3 {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-price-original {
        font-size: 0.85rem;
    }

    .product-discount {
        font-size: 0.8rem;
        padding: 2px 6px;
    }

    .review-stars {
        font-size: 0.9rem;
    }

    .review-count {
        font-size: 0.85rem;
    }

    .product-delivery {
        font-size: 0.85rem;
    }

    /* About Section */
    .about-section {
        padding: 0;
        margin: 0;
    }

    .about-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }

    .about-text {
        text-align: center;
    }

    .about-text h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .about-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .about-features-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        margin: 10px 0;
    }

    .about-features-mobile span {
        font-size: 0.8rem;
        padding: 5px 10px;
        background: #f0f0f0;
        border-radius: 15px;
    }

    .about-buttons {
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .about-link {
        min-height: 42px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .about-image {
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
    }

    /* News Section */
    .news-section {
        padding: 0;
        margin: 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 10px 15px;
    }

    .news-card {
        padding: 1.2rem;
    }

    .news-title {
        font-size: 0.95rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 0;
        margin: 0;
    }

    .cta-content {
        padding: 15px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .cta-buttons .btn {
        min-height: 44px;
        width: 100%;
        max-width: 280px;
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Video/Analysis Section */
    .analysis-section {
        padding: 0;
        margin: 0;
    }

    .analysis-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 15px;
    }

    .analysis-text {
        text-align: center;
    }

    .analysis-text h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .analysis-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .play-button,
    .video-play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .video-play-button span {
        font-size: 2rem;
    }

    .video-container video {
        height: 250px;
    }
}

/* 초소형 화면 - 필수 조정만 */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .hero-link {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .hero-slider {
        max-height: 250px;
    }

    .product-card {
        min-width: 220px;
    }

    .product-image-wrap {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .cta-content h2,
    .about-text h2,
    .analysis-text h2 {
        font-size: 1.5rem;
    }
}