/* Custom styles for Pali Motor Auto Group */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background-color: rgba(15, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Hero parallax effect */
.hero {
    background-attachment: fixed;
}

/* Vehicle card hover effect */
.vehicle-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vehicle-card:hover {
    transform: translateY(-8px);
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Testimonial card hover effect */
.testimonial-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Gold accent line animation */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #c9a84c;
    transition: width 0.3s ease;
}

.gold-line:hover::after {
    width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a2744;
}

::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af62;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Fade in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 168, 76, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
    
    .font-serif {
        font-size: 2rem !important;
    }
    
    .font-serif.text-4xl {
        font-size: 2.5rem !important;
    }
}

/* Loading state for buttons */
button:disabled,
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero .animate-bounce,
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
