/* --- CUSTOM UTILITIES & OVERRIDES --- */

/* Smooth Scrolling & Fixes */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
    width: 100%;
}

section {
    scroll-margin-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0056a5; /* Perodua Blue */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003d7a;
}

/* --- COMPONENTS --- */

/* Hero Slider Logic */
.slider-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.7s ease-in-out;
}

.slide {
    transition: opacity 0.5s ease-in-out;
}

.dot.active {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.2);
}

/* Glassmorphism & Overlays */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* --- CUSTOM ANIMATIONS --- */

/* White Pulse for Buttons on Blue Backgrounds */
section.bg-perodua-blue .btn-pulse:hover {
    animation: pulse-white 1.5s infinite;
}

@keyframes pulse-white {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ping-slow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.animate-bounce-subtle {
    animation: bounce-subtle 3s ease-in-out infinite;
}

.animate-ping-slow {
    animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 480px) {
    #whatsapp-sticky {
        bottom: 15px;
        right: 15px;
    }
    #whatsapp-sticky a {
        width: 55px;
        height: 55px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}