/* === Custom Styles for Still Centerfield === */

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

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

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

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

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 63, 0.2);
    color: #1a1b1e;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5f616b;
}

/* Mobile link active state */
.mobile-link.active {
    color: #ff8f6a;
    background: rgba(255, 107, 63, 0.08);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img,
    .group:hover img {
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Tablet breakpoint adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .reveal {
        transition-delay: 0.1s;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    #contact-form,
    #form-success {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-charcoal-950,
    .bg-charcoal-900 {
        background: #f5f5f5 !important;
    }
    
    .text-white,
    .text-charcoal-300,
    .text-charcoal-400 {
        color: #333 !important;
    }
}
