/* Custom styles for Direct Injection Engineering */

/* Ensure smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #3a0c14;
}

/* Editorial serif for headings */
.font-serif {
    letter-spacing: -0.02em;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(58, 12, 20, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover lift */
#services .rounded-xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#services .rounded-xl:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* CTA strip hover effects */
#contact a.bg-plum-950:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu backdrop */
#mobile-menu {
    background: rgba(58, 12, 20, 0.98);
}

/* Ensure form inputs have proper focus states */
input:focus, textarea:focus {
    outline: none;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Scrollbar for webkit */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #3a0c14;
}
::-webkit-scrollbar-thumb {
    background: #d44560;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #fbbf24;
}
