/* Custom styles for 8th Street Oil */

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2d2d2d;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #FF6B6B;
    color: white;
}

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.88) 0%, rgba(45, 45, 45, 0.72) 100%);
}

/* Thin accent line */
.thin-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 107, 107, 0.6);
    transition: width 0.3s ease;
}

.thin-line:hover {
    width: 80px;
}

/* Navigation link underline effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF6B6B;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #FF6B6B;
}

.nav-link:hover::after {
    width: 100%;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover .service-icon {
    color: #FF6B6B;
    transform: scale(1.1);
}

.service-icon {
    transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
    color: #FF6B6B;
    padding-left: 8px;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

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

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: white;
    }
    
    .hero-overlay {
        background: rgba(255, 255, 255, 0.9) !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .thin-line {
        width: 40px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Loading state for form submission */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}
