/* Custom styles for Gabriel's Auto Sales & Service */

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.5rem;
}

/* Scroll reveal animations (below the fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card stagger */
.service-card {
    transition: background-color 0.5s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero text animation - only for below-fold elements */
.hero-sub {
    opacity: 1;
}

/* Gold accent hover effects */
a:hover {
    transition: color 0.3s ease;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 67, 0.3);
    color: #0a1628;
}

/* Image lazy loading fade */
img {
    transition: opacity 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 67, 0.6);
}

/* Contact form styles */
.contact-form input,
.contact-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(15, 33, 64, 0.15);
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #0a1628;
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #c9952e;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(10, 22, 40, 0.35);
    font-weight: 300;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(10, 22, 40, 0.5);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form .submit-btn {
    background: #0a1628;
    color: white;
    border: none;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form .submit-btn:hover {
    background: #c9952e;
    color: #0a1628;
}

.contact-form .success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.contact-form .success-message.show {
    display: block;
}

.contact-form .success-message svg {
    margin: 0 auto 16px;
}

.contact-form .success-message p {
    font-size: 1rem;
    color: #0a1628;
    font-weight: 300;
}
