/* ==================== GLOBAL STYLES ==================== */
:root {
    --pink-soft: #ffdde1;
    --purple-soft: #ee9ca7;
    --purple-deep: #6a11cb;
    --pink-accent: #f77062;
    --primary-gradient: linear-gradient(135deg, #9c88c6 0%, #ee9ca7 50%, #ffdde1 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif !important;
    background-color: #fcf8ff;
    color: #444;
    scroll-behavior: smooth;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 3rem 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 1rem;
}

.hero-section .display-3 {
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.05;
}

/* Decorative circles animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-section > div:nth-child(2) {
    animation: float 6s ease-in-out infinite;
}

.hero-section > div:nth-child(3) {
    animation: float 8s ease-in-out infinite 1s;
}

.hero-section > div:nth-child(4) {
    animation: float 7s ease-in-out infinite 2s;
}

/* ==================== BUTTON STYLES ==================== */
.btn-circle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-circle:hover {
    background-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.btn-circle:active {
    transform: scale(0.95) !important;
}

/* ==================== CARD STYLES ==================== */
.card-kategori {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    background: #ffffff;
    border: none;
    cursor: pointer;
}

.card-kategori:hover {
    transform: translateY(-15px);
    background: linear-gradient(135deg, #ffffff 0%, #fef1f2 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border: 2px solid var(--purple-soft) !important;
}

.card-kategori .icon-box {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.card-kategori:hover .icon-box {
    transform: scale(1.2) rotate(5deg);
}

.card-kategori h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--purple-deep);
    transition: color 0.3s ease;
}

.card-kategori:hover h5 {
    color: var(--pink-accent);
}

/* ==================== NAVBAR STYLES ==================== */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand span {
    background: linear-gradient(to right, #6a11cb, #f77062);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--purple-deep) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-deep);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ==================== FOOTER STYLES ==================== */
footer {
    background: linear-gradient(135deg, var(--pink-soft), var(--purple-soft)) !important;
    margin-top: auto;
}

footer h5 {
    color: var(--purple-deep);
    font-weight: 700;
}

footer p {
    color: #666;
    transition: color 0.3s ease;
}

/* ==================== SECTION STYLES ==================== */
#kategori {
    background: #f8f9ff;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#kategori h2 {
    color: var(--purple-deep);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#kategori::before {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--purple-soft);
    border-radius: 2px;
    margin: 0 auto;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--purple-deep);
}

p {
    line-height: 1.6;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes celebrate {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes tilt-left {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-5deg);
    }
}

@keyframes tilt-right {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.animate__fadeInLeft {
    animation: slideInFromLeft 0.8s ease-out;
}

.animate__zoomIn {
    animation: slideInFromRight 0.8s ease-out;
}

/* SVG Podium Animation */
.illustration-podium {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.illustration-podium #person-1st {
    animation: podium-jump 2s ease-in-out infinite;
    transform-origin: 210px 215px;
}

.illustration-podium #person-2nd {
    animation: podium-bounce 2.5s ease-in-out infinite 0.3s;
    transform-origin: 90px 249px;
}

.illustration-podium #person-3rd {
    animation: podium-bounce 2.5s ease-in-out infinite 0.6s;
    transform-origin: 330px 279px;
}

.illustration-podium #podium-1st {
    animation: podium-shine 2s ease-in-out infinite;
}

.illustration-podium #confetti {
    animation: confetti-float 3s ease-in-out infinite;
}

@keyframes podium-jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-25px);
    }
}

@keyframes podium-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes podium-shine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

@keyframes confetti-float {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 992px) {
    .hero-section .col-lg-6 {
        text-align: center;
    }

    .hero-section .d-flex.align-items-center {
        justify-content: center;
    }

    .hero-section .illustration-podium {
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        padding: 2.5rem 0;
    }

    .hero-section .row {
        gap: 2rem;
    }

    .hero-section .btn-circle {
        margin: 1.5rem auto 0;
    }

    .hero-section .d-flex.align-items-center {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-section .illustration-podium {
        max-width: 100%;
    }

    .display-3 {
        font-size: 2.4rem !important;
    }

    #kategori h2 {
        font-size: 1.8rem;
    }

    .card-kategori {
        border-radius: 15px;
    }

    .btn-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .d-none {
        display: none !important;
    }

    .hero-section > div:nth-child(2),
    .hero-section > div:nth-child(3),
    .hero-section > div:nth-child(4) {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    #kategori h2 {
        font-size: 1.5rem;
    }

    .row.g-4 {
        gap: 1rem !important;
    }

    .card-kategori {
        padding: 2rem 1rem !important;
    }

    .btn-circle {
        width: 50px !important;
        height: 50px !important;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #6a11cb, #f77062);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg-custom {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ==================== SMOOTH SCROLLING ==================== */
html {
    scroll-behavior: smooth;
}

/* Remove default link underline */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--purple-deep);
    outline-offset: 2px;
}
