html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1681c2;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f5f8c;
}

/* Straight Line Divider */
.divider-ornament {
    background: linear-gradient(90deg, transparent, #1681c2, transparent);
    height: 2px;
    width: 200px;
    margin: 0 auto;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22, 129, 194, 0.15);
}

/* Image Frame Effect */
.image-frame {
    position: relative;
    overflow: hidden;
}

.image-frame::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    background: linear-gradient(45deg, #1681c2, #f4b518);
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-frame:hover::before {
    opacity: 0.3;
}

.image-frame img {
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

/* Navigation Active Link */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f4b518;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Animated Background */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(22, 129, 194, 0.05) 0%,
        rgba(22, 129, 194, 0.1) 25%,
        rgba(244, 181, 24, 0.05) 50%,
        rgba(22, 129, 194, 0.1) 75%,
        rgba(22, 129, 194, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    z-index: 0;
    pointer-events: none;
}

/* Floating elements */
.float-element {
    animation: float 3s ease-in-out infinite;
}

/* Glowing effect */
.glowing {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Wave lines */
.wave-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #1681c2, transparent);
    animation: wave 8s linear infinite;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1681c2, #0f5f8c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(22, 129, 194, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #f4b518, #e0a500);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(244, 181, 24, 0.4);
}

/* Pendaftaran Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f4b518;
    color: black;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #1681c2;
    color: white;
    transform: rotate(90deg);
}
.card-footer {
    padding: 20px 25px 25px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

.primary-btn {
    flex: 1;
    background: linear-gradient(135deg, #18cbf4, #0a9fc4);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #0a9fc4, #18cbf4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 203, 244, 0.4);
}

.secondary-btn {
    flex: 1;
    background: white;
    color: #18cbf4;
    border: 2px solid #18cbf4;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-btn:hover {
    background: #18cbf4;
    color: white;
    transform: translateY(-2px);
}

/* Animation for active day */
@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(24, 203, 244, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(24, 203, 244, 0.8);
    }
}

.day-card.active {
    animation: pulse-glow 2s infinite;
}
