/* Custom styles for Bergen Restoration */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #34d399;
    transition: width 0.2s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Geometric pattern overlay */
.hero-pattern {
    background-image: 
        linear-gradient(135deg, rgba(5, 150, 105, 0.05) 25%, transparent 25%),
        linear-gradient(225deg, rgba(5, 150, 105, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, rgba(5, 150, 105, 0.05) 25%, transparent 25%),
        linear-gradient(315deg, rgba(5, 150, 105, 0.05) 25%, transparent 25%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Pulse animation for emergency badge */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Selection color */
::selection {
    background: #059669;
    color: white;
}

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

/* Service card hover tilt effect */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-4px);
    }
}

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(2, 44, 34, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Geometric accent shapes */
.geo-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

/* Ensure images don't shift layout */
img {
    max-width: 100%;
    height: auto;
}

/* Aspect ratio utilities */
.aspect-card {
    aspect-ratio: 4/3;
}

/* Subtle gradient text */
.gradient-text {
    background: linear-gradient(135deg, #059669, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
