body{
    scroll-behavior: smooth;
    background: transparent;
}

html {
    background: transparent;
}

/* Memastikan button profile dapat diklik */
button[type="button"] {
    cursor: pointer;
    pointer-events: auto;
}

/* Memastikan dropdown menu dapat diinteraksi */
.dropdown-menu {
    pointer-events: auto;
    z-index: 1000;
}

/* Memastikan Alpine.js berfungsi dengan baik */
[x-cloak] {
    display: none !important;
}

/* Memastikan transisi berfungsi */
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Memastikan hover effects berfungsi */
.hover\:bg-gray-100:hover {
    background-color: rgb(243 244 246);
}

.hover\:bg-gray-700:hover {
    background-color: rgb(55 65 81);
}

.hover\:text-white:hover {
    color: rgb(255 255 255);
}

/* Smooth scrolling untuk semua elemen */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Memberikan padding untuk navbar fixed */
}

/* Navbar styling dan efek */
.navbar-sticky {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.navbar-sticky.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar links styling */
nav a[href^="#"] {
    position: relative;
    transition: all 0.3s ease;
}

nav a[href^="#"]::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #1d4ed8;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a[href^="#"]:hover::after,
nav a[href^="#"].active::after {
    width: 100%;
}

nav a[href^="#"]:hover {
    transform: translateY(-2px);
}

/* Active state styling */
nav a[href^="#"].active {
    color: #1e40af !important;
    font-weight: 700;
}

/* Smooth scroll untuk anchor links */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* Responsive scroll padding untuk mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }
    
    .navbar-sticky {
        backdrop-filter: blur(5px);
    }
}

/* Enhanced Card Shadows */
/* Berita cards */
.group.bg-white.rounded-2xl.shadow-xl {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.group.bg-white.rounded-2xl.shadow-xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Tentang cards */
.bg-white.rounded-2xl.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.bg-white.rounded-2xl.shadow-lg:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Kategori cards */
.relative.group.transition-all.duration-500.hover\:scale-105.w-full.max-w-xs.rounded-xl.overflow-hidden.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.relative.group.transition-all.duration-500.hover\:scale-105.w-full.max-w-xs.rounded-xl.overflow-hidden.shadow-lg:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Persyaratan cards */
.persyaratan-section .bg-white.rounded-2xl.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.persyaratan-section .bg-white.rounded-2xl.shadow-lg:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Testimonial cards */
.testimonial-section .bg-white\/80.rounded-xl.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.testimonial-section .bg-white\/80.rounded-xl.shadow-lg:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Cara Mendaftar circle shadow */
.w-16.h-16.sm\:w-18.sm\:h-18.md\:w-20.md\:h-20.lg\:w-22.lg\:h-22.xl\:w-24.xl\:h-24.bg-blue-700.text-white.rounded-full.flex.items-center.justify-center.text-lg.sm\:text-xl.md\:text-2xl.lg\:text-3xl.xl\:text-4xl.font-bold.shadow-lg.z-10 {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.w-16.h-16.sm\:w-18.sm\:h-18.md\:w-20.md\:h-20.lg\:w-22.lg\:h-22.xl\:w-24.xl\:h-24.bg-blue-700.text-white.rounded-full.flex.items-center.justify-center.text-lg.sm\:text-xl.md\:text-2xl.lg\:text-3xl.xl\:text-4xl.font-bold.shadow-lg.z-10:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Custom CSS for animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in-down {
    animation: fade-in-down 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

.animation-delay-800 {
    animation-delay: 800ms;
}

/* Intersection Observer for scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Image Animation Styles */
.hero-image {
    transition: all 0.5s ease-in-out;
    transform: scale(1);
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease-in-out;
    z-index: 1;
}

.hero-image-container:hover::before {
    left: 100%;
}

/* Loading animation */
.hero-image.loading {
    opacity: 0;
    transform: scale(0.95);
}

.hero-image.loaded {
    opacity: 1;
    transform: scale(1);
    animation: imageFadeIn 0.8s ease-out;
}

@keyframes imageFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Pulse animation for placeholder */
.hero-placeholder {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Footer styling - basic */
footer {
    position: relative;
}

footer iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}