/* Custom Styles for LSP Pergadaian */

:root {
    --primary: #01ab4f;
    --secondary: #003983;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Navigation Styles */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Slider Styles */
.slider-container {
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.slide.active {
    position: relative;
    opacity: 1;
    pointer-events: all;
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Dots */
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: white;
    width: 40px;
    border-radius: 6px;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Service Cards */
.service-card {
    transform: translateY(0);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Testimonial Cards */
.testimonial-card {
    transform: scale(1);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: scale(1.05);
}

/* Partners Slider Animation */
.partners-slider {
    position: relative;
}

.partners-track {
    animation: scroll 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex-shrink: 0;
}

/* Scroll to Top Button */
#scrollToTop {
    transition: all 0.3s ease;
}

#scrollToTop.show {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Shadows */
.shadow-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Hover Effects */
a, button {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slide {
        height: 500px !important;
    }

    .slide h2 {
        font-size: 2rem !important;
    }

    .slide p {
        font-size: 1rem !important;
    }

    .partners-track {
        animation: scroll 20s linear infinite;
    }

    .service-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .slide {
        height: 450px !important;
    }

    .slide h2 {
        font-size: 1.5rem !important;
    }

    .slide p {
        font-size: 0.9rem !important;
    }
}

/* Accessibility */
.focus-visible:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, footer, #scrollToTop {
        display: none;
    }
}

/* Additional Utility Classes */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #019642;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(1, 171, 79, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #002a6a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 57, 131, 0.3);
}

/* Card Hover Glow Effect */
.glow-on-hover {
    position: relative;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(1, 171, 79, 0.4);
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Background Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}
