/**
 * style-index.css
 * 메인(인덱스) 페이지 전용 스타일
 * 새로운 CSS 모듈 가이드 준수
 */

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    min-height: 600px;
}

.hero-carousel {
    height: 100%;
}

.hero-slide {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.8) 0%, rgba(196, 69, 105, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    text-align: center;
    color: var(--white);
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Swiper Customization */
.hero-carousel .swiper-pagination {
    bottom: 30px;
}

.hero-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.6;
    transition: var(--transition-base);
}

.hero-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.hero-carousel .swiper-button-next,
.hero-carousel .swiper-button-prev {
    color: var(--white);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.hero-carousel .swiper-button-next:hover,
.hero-carousel .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-carousel .swiper-button-next::after,
.hero-carousel .swiper-button-prev::after {
    font-size: 1.5rem;
}

/* ===================================
   Quick Links Section
   =================================== */
.quick-links-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* ===================================
   Upcoming Expos Section
   =================================== */
.upcoming-expos-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    position: relative;
    overflow: hidden;
}

.upcoming-expos-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.03) 0%, transparent 50%);
    animation: floating 8s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.expo-timeline {
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.timeline-item {
    display: flex;
    align-items: stretch;
    margin-bottom: 3rem;
    background: var(--white);
    border-radius: var(--radius-large);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-romantic);
}

.timeline-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.timeline-date {
    min-width: 140px;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--gradient-romantic);
    color: var(--white);
    text-align: center;
    position: relative;
}

.timeline-date::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--primary-color);
}

.date-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.date-month {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.date-year {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

.timeline-content {
    flex: 1;
    padding: 2rem 2.5rem;
    position: relative;
}

.expo-badge {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: linear-gradient(135deg, #ff6b9d, #e8b4b8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.expo-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.expo-location i {
    color: var(--primary-color);
    font-size: 1rem;
}

.expo-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.expo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(232, 180, 184, 0.1));
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 157, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.timeline-content .btn {
    background: var(--gradient-romantic);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.timeline-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    background: linear-gradient(135deg, #e55a89, #d1a0a4);
}

/* Responsive Styles for Timeline */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        width: 100%;
        height: 4px;
    }
    
    .timeline-date {
        min-width: unset;
        max-width: unset;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .timeline-date::after {
        display: none;
    }
    
    .date-day {
        font-size: 2rem;
    }
    
    .expo-badge {
        position: static;
        align-self: flex-start;
        margin-bottom: 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
        margin-top: 0;
    }
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.features-grid {
    margin-top: 3rem;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-romantic);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Hero 3D Wrapper
   =================================== */
.hero-3d-wrapper {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, var(--cream) 0%, #fff 50%, var(--rose-gold-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-3d-wrapper .hero-content {
    width: 100%;
}

.floating-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--rose-gold-light);
    transform: rotate(45deg);
    animation: float-heart 6s ease-in-out infinite;
    opacity: 0.3;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: inherit;
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    top: 0;
    left: -10px;
}

.heart-1 { top: 20%; left: 10%; animation-delay: 0s; }
.heart-2 { top: 60%; left: 5%; animation-delay: 1s; }
.heart-3 { top: 30%; right: 15%; animation-delay: 2s; }
.heart-4 { top: 70%; right: 10%; animation-delay: 3s; }
.heart-5 { top: 50%; left: 50%; animation-delay: 4s; }

@keyframes float-heart {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-20px); }
}

.hero-text-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Hero 3D Wrapper Typography */
.hero-3d-wrapper .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark, #333);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: none;
}

.hero-3d-wrapper .title-line-1,
.hero-3d-wrapper .title-line-2 {
    display: block;
}

.hero-3d-wrapper .highlight {
    color: var(--rose-gold, #e8b4b8);
    position: relative;
}

.hero-3d-wrapper .hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary, #666);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-romantic);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.hero-3d-element {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.wedding-ring-3d {
    width: 200px;
    height: 200px;
    position: relative;
    animation: ring-rotate 10s linear infinite;
}

@keyframes ring-rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* ===================================
   Feature Cards Section
   =================================== */
.feature-cards-section {
    padding: 5rem 0;
    background: #fff;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card-3d {
    position: relative;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.6s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-front {
    background: #fff;
    border: 1px solid var(--border-color);
}

.card-back {
    background: var(--gradient-romantic);
    color: #fff;
    transform: rotateY(180deg);
}

.feature-card-3d:hover .card-front {
    transform: rotateY(180deg);
}

.feature-card-3d:hover .card-back {
    transform: rotateY(360deg);
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-romantic);
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #fff;
}

.feature-card-3d h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-card-3d p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    text-align: left;
}

.feature-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '✓ ';
}

/* ===================================
   Benefits Section
   =================================== */
.benefits-section {
    padding: 5rem 0;
    background: var(--cream);
}

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

.benefit-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--rose-gold);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-romantic);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: #fff;
}

.benefit-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   Responsive Styles - 992px
   =================================== */
@media (max-width: 992px) {
    .hero-3d-wrapper {
        min-height: 500px;
    }

    .hero-3d-element {
        display: none;
    }

    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .upcoming-expos-section {
        padding: 4rem 0;
    }
}

/* ===================================
   Responsive Styles - 768px
   =================================== */
@media (max-width: 768px) {
    .hero-3d-wrapper {
        min-height: 450px;
        padding: 2rem 0;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
    }

    .hero-slide {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .title-line-1,
    .title-line-2 {
        display: block;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-description br {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-cards-section {
        padding: 3rem 0;
    }

    .feature-card-3d {
        height: 240px;
    }

    .card-face {
        padding: 1.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-card-3d h3 {
        font-size: 1.1rem;
    }

    .benefits-section {
        padding: 3rem 0;
    }

    .benefits-grid {
        gap: 1rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .benefit-card h3 {
        font-size: 1.1rem;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-title br {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .floating-hearts {
        display: none;
    }
}

/* ===================================
   Responsive Styles - 576px
   =================================== */
@media (max-width: 576px) {
    .hero-3d-wrapper {
        min-height: 400px;
    }

    .hero-slide {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card-3d {
        height: 220px;
    }

    /* 모바일에서는 3D 플립 효과 비활성화 */
    .feature-card-3d:hover .card-front {
        transform: none;
    }

    .feature-card-3d:hover .card-back {
        transform: rotateY(180deg);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-card {
        padding: 1.25rem;
    }

    .benefit-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .benefit-card h3 {
        font-size: 1rem;
    }

    .benefit-card p {
        font-size: 0.85rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .section-header {
        padding: 0 1rem;
    }

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

    .section-description {
        font-size: 0.95rem;
    }
}
