/* Custom styles for Advanced Electrolysis */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1d23;
}
::-webkit-scrollbar-thumb {
    background: #3a3f47;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5f6570;
}

/* Selection color */
::selection {
    background: #ff6b2e;
    color: #ffffff;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 17, 21, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(95, 101, 112, 0.2) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 8px 40px rgba(255, 107, 46, 0.08);
}

/* Geometric pattern overlay */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 107, 46, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 107, 46, 0.05) 0%, transparent 50%);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
