/* =============================================
   Mobil 1 Lube Express — Custom Styles
   ============================================= */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #f0fdfa;
}

/* =============================================
   Hero Animations
   ============================================= */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Scroll Reveal (progressive enhancement)
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   Navbar
   ============================================= */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#navbar.scrolled {
    background: rgba(8, 14, 26, 0.92);
    box-shadow: 0 1px 0 rgba(13, 148, 136, 0.1);
}

/* =============================================
   Mobile Menu
   ============================================= */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-line.active:nth-child(2) {
    opacity: 0;
}
.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* =============================================
   Service Card Hover
   ============================================= */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================
   Button Ripple Effect
   ============================================= */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-ripple:hover::after {
    opacity: 1;
}

/* =============================================
   Teal accent line
   ============================================= */
.accent-line {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    border-radius: 2px;
}

/* =============================================
   Map dark mode adjustments
   ============================================= */
.map-container iframe {
    border-radius: 12px;
}

/* =============================================
   Form focus states
   ============================================= */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* =============================================
   Testimonial card hover
   ============================================= */
.testimonial-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* =============================================
   Floating animation for decorative elements
   ============================================= */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.float-slow {
    animation: float 6s ease-in-out infinite;
}
.float-medium {
    animation: float 4s ease-in-out infinite;
}

/* =============================================
   Gradient text utility
   ============================================= */
.text-gradient {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
