/* Custom styles for Hydraesthetics */

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

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

/* Navigation styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Mobile menu link styles */
.mobile-menu-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.mobile-menu-link:hover {
    padding-left: 12px;
    color: #4fa07c;
}

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

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

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

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

/* Scroll reveal hidden state - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #0d2030 !important;
}

.navbar-scrolled .nav-link {
    color: #0d2030 !important;
}

.navbar-scrolled .mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Hero decorative elements animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #74bc9e;
}

/* Selection color */
::selection {
    background: #a8d6c4;
    color: #0d2030;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #74bc9e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

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

/* Reduced motion support */
@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 {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .animate-bounce {
        animation: none !important;
    }
}
