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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(120deg, #fff 0%, #fafdff 20%, #f4faff 40%, #f8fbff 60%, #eaf6ff 80%, #fff 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease-in-out infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-container {
    perspective: 1000px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.business-card {
    position: relative;
    width: min(540px, 90vw);
    height: min(300px, calc(90vw * 0.556));
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    aspect-ratio: 90/50;
}

.business-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-back {
    transform: rotateY(180deg);
}

.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.flip-btn,
.download-btn {
    background: rgba(30, 58, 138, 0.1);
    border: 2px solid rgba(30, 58, 138, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: #1e3a8a;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.flip-btn:hover,
.download-btn:hover {
    background: rgba(30, 58, 138, 0.2);
    border-color: rgba(30, 58, 138, 0.4);
    transform: scale(1.1);
}

.flip-btn:active,
.download-btn:active {
    transform: scale(0.95);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.flip-btn:hover .btn-icon {
    transform: rotate(180deg);
}

.download-btn:hover .btn-icon {
    transform: scale(1.1);
}

.card-info {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 58, 138, 0.1);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
    margin-bottom: 2rem;
}

.card-info h2 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-list {
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.info-label {
    color: #1e3a8a;
    font-weight: 500;
    min-width: 80px;
    font-size: 0.9rem;
}

.info-value {
    color: #374151;
    font-weight: 400;
    flex: 1;
}

.clickable {
    cursor: pointer;
}

.link {
    color: #1e3a8a;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.qr-section {
    background: none;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    width: auto;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrCode {
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrCode img {
    border-radius: 0;
    box-shadow: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .card-info {
        padding: 1.5rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .info-content {
        width: 100%;
        justify-content: space-between;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .info-value {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .flip-btn,
    .download-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .card-info {
        padding: 1rem;
    }
    
    .card-info h2 {
        font-size: 1.3rem;
    }
    
    .info-label {
        font-size: 0.8rem;
    }
    
    .info-value {
        font-size: 0.9rem;
    }
} 