/* Custom styles for G&S Welding */

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

/* Base font adjustments */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero animations */
.hero-title {
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.1s;
}

.hero-desc {
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-ctas {
    animation: heroFadeUp 1s ease forwards;
    animation-delay: 0.7s;
}

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

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Service card hover */
.service-card {
    transition: border-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224, 122, 95, 0.1);
}

.nav-scrolled #navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Mobile menu */
#mobile-menu {
    animation: menuSlide 0.3s ease forwards;
}

@keyframes menuSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery image hover */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0);
    transition: background 0.5s ease;
    pointer-events: none;
}

.overflow-hidden:hover::after {
    background: rgba(26, 26, 26, 0.1);
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(224, 122, 95, 0.3);
}

/* Selection color */
::selection {
    background: rgba(224, 122, 95, 0.3);
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}

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

/* Reduced motion */
@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;
    }
    
    .animate-bounce {
        animation: none;
    }
}
