/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
    padding-bottom: 100px; /* 为固定按钮留出空间 */
}

/* Container */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

/* 데스크톱 중앙 정렬 */
@media (min-width: 769px) {
    .container {
        max-width: 450px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .cta-container {
        max-width: 450px;
        padding: 20px 30px;
    }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.animated-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #3498db, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
}

/* Tagline Section */
.tagline-section {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background:url('../images/bgc.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    border: 2px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
    white-space:nowarp;
}

.highlight-text {
    font-size: 14px;
    color: white;
    font-weight: 600;
    white-space:nowarp;
}

/* Features Section */
.features {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background:url('../images/bgc1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Info Section */
.info-section {
    margin-bottom: 30px;
}

.info-item {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.info-item p {
    font-size: 0.9rem;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.feature-item {
    color: white;
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}


.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-item:hover::before {
    height: 6px;
}

.feature-icon {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* 이미지 플레이스홀더 */
.gallery-image::before {
    content: "📊";
}

.gallery-item:nth-child(2) .gallery-image::before {
    content: "📖";
}

.gallery-item:nth-child(3) .gallery-image::before {
    content: "👥";
}

/* CTA Section */
.cta-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.cta-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 15px 20px;
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

.button-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

.button-click-gif {
    width: 24px;
    height: 24px;
    object-fit: contain;
    animation: scaleAnimation 1.5s ease-in-out infinite;
}

@keyframes scaleAnimation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.cta-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.footer p {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animated-pulse {
    animation: pulse 2s infinite;
}

/* Button ripple effect */
.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.cta-button:active::before {
    width: 300px;
    height: 300px;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 15px;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 14px;
    }
    
    .tagline-section {
        padding: 15px;
        background-size: cover;
        background-position: center center;
    }
    
    .features {
        padding: 15px;
        background-size: cover;
        background-position: center center;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .info-item h3 {
        font-size: 1rem;
    }
    
    .info-item p {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 12px 15px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .button-icon {
        width: 20px;
        height: 20px;
    }
    
    .button-click-gif {
        width: 20px;
        height: 20px;
    }
}

/* 태블릿 */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 500px;
        padding: 25px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-container {
        padding: 12px 15px;
    }
    
    .cta-button {
        max-width: 300px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .button-icon {
        width: 22px;
        height: 22px;
    }
    
    .button-click-gif {
        width: 22px;
        height: 22px;
    }
    
    .cta-note {
        font-size: 0.8rem;
        margin-top: 8px;
    }
}

/* Lottie fallback styles */
.lottie-fallback {
    display: none;
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

.feature-icon .lottie-fallback {
    font-size: 2rem;
}

/* 스크롤 애니메이션을 위한 준비 */
.feature-item,
.info-item,
.gallery-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }

.info-item:nth-child(1) { animation-delay: 0.2s; }
.info-item:nth-child(2) { animation-delay: 0.3s; }
.info-item:nth-child(3) { animation-delay: 0.4s; }

.gallery-item:nth-child(1) { animation-delay: 0.5s; }
.gallery-item:nth-child(2) { animation-delay: 0.6s; }
.gallery-item:nth-child(3) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
