/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Popup Animation */
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.popup-active {
    display: flex !important;
    animation: fadeIn 0.3s forwards;
}

.popup-content-active {
    animation: popupFadeIn 0.3s forwards;
}

/* Kakao Floating Button Styles */
.kakao-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #FEE500; /* Kakao Yellow */
    color: #3c1e1e; /* Kakao Brown */
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(254, 229, 0, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    border: 2px solid transparent;
}

.kakao-floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(254, 229, 0, 0.6);
    background-color: #FFEB00;
}

.kakao-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kakao-text {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
}

.kakao-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    animation: pulse-badge 2s infinite;
}

/* Mobile Responsiveness for Button */
@media (max-width: 768px) {
    .kakao-floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }
    .kakao-text {
        font-size: 12px;
    }
}

/* Animations */
@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6; /* Primary Color */
}