/* Patterson Precision Fabrication Co. — Custom Styles */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #040d1a;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: rgba(15, 184, 130, 0.3);
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #040d1a;
}

::-webkit-scrollbar-thumb {
    background: #1a4a82;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d6aa0;
}

/* Scroll reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

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

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

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

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

/* Project card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Accent bar animation */
.accent-bar {
    background: linear-gradient(90deg, #0fb882, #2dd4a0, #5fe8be);
    height: 4px;
    width: 0;
    transition: width 1s ease;
}

.accent-bar.animate {
    width: 100%;
}

/* Geometric pattern overlay */
.pattern-overlay {
    background-image: 
        linear-gradient(135deg, rgba(15, 184, 130, 0.06) 25%, transparent 25%),
        linear-gradient(225deg, rgba(15, 184, 130, 0.06) 25%, transparent 25%),
        linear-gradient(45deg, rgba(15, 184, 130, 0.06) 25%, transparent 25%),
        linear-gradient(315deg, rgba(15, 184, 130, 0.06) 25%, transparent 25%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Mint gradient text */
.text-mint-gradient {
    background: linear-gradient(135deg, #0fb882, #2dd4a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar glass */
.nav-glass {
    background: rgba(4, 13, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
