/* FILE: style.css 
   DESCRIPTION: Custom styles for CV Pustaka Karya (Tailwind Extension)
*/

/* Base Setup */
body {
    font-family: 'Nunito', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Background Animated Blobs */
.blob {
    position: absolute;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.5;
    animation: move 20s infinite alternate;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(20px, 40px) scale(1.1); }
}

/* Floating Animation for Hero Image */
.float {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Wavy Section Divider */
.wavy-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wavy-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wavy-divider .shape-fill {
    fill: #ffffff;
}

/* Interaction Effects (Cards & Hover) */
.card-pop {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-pop:hover {
    transform: scale(1.05) rotate(1deg);
}

/* Navigation Dropdown */
.group:hover .submenu {
    display: block;
}

/* Game Card Special Styling */
.game-card {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    transition: all 0.4s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.4);
}

/* Gallery Overlay Effects */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Back to Top Button Interaction */
#back-to-top {
    transition: all 0.3s ease;
}