/* Custom styles for Standard Alloys & Mfg. Co. */

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

/* Reduce 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;
    }
}

/* Reveal animations - progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar styles */
#navbar {
    background: rgba(255, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(198, 45, 83, 0.1);
}

#navbar.scrolled {
    background: rgba(255, 248, 245, 0.95);
    box-shadow: 0 4px 20px rgba(131, 24, 61, 0.08);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Geometric pattern overlay for dark sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c62d53;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d84564;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #6e1739;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #fff1ea 100%);
}

/* Service card hover glow */
.group:hover .w-14 {
    box-shadow: 0 8px 25px rgba(131, 24, 61, 0.3);
}

/* Project card image zoom */
.group:hover img {
    filter: brightness(1.05);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #d84564 !important;
    box-shadow: 0 0 0 4px rgba(216, 69, 100, 0.1) !important;
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
    .font-display {
        font-feature-settings: 'cv01', 'cv02', 'cv03';
    }
}
