/* Custom styles for Eastside Dental Laboratory */

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #486581;
}

/* Navigation scroll state */
#navbar.scrolled {
    background: rgba(10, 26, 46, 0.95);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(51, 78, 104, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Nav links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu */
.mobile-link {
    display: block;
}

/* Menu animation */
.menu-line {
    display: block;
}
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Service cards */
.service-card {
    position: relative;
}

/* Process steps */
.process-step {
    position: relative;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .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; }
}

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

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #f0f4f8;
}

/* Hero image hover effect */
.hero-image-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hero-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Gold accent pulse */
@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
}

.animate-gold-pulse {
    animation: goldPulse 2s ease-in-out infinite;
}

/* Geometric shape hover */
.geo-shape {
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.geo-shape:hover {
    transform: rotate(45deg) scale(1.1);
}

/* Map filter override for light mode */
.map-light {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1) !important;
}

/* Print styles */
@media print {
    #navbar, .animate-float-slow, .animate-float-medium, .animate-float-fast, .animate-float-reverse {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
