/* Custom styles for Brew-Stirs on 23 */

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

/* Custom selection color */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #f0fdf4;
}

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

/* Menu tab active state */
.menu-tab {
    color: #9fb3c8;
    background: transparent;
}

.menu-tab:hover {
    color: #f0fdf4;
}

.menu-tab.active {
    color: #102a43;
    background: #4ade80;
}

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* Card hover glow effect */
.group:hover .group-hover\:bg-mint-500\/20 {
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.1);
}

/* Image lazy load fade */
img {
    transition: opacity 0.3s ease, transform 0.7s ease;
}

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

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    body.no-js .reveal[data-reveal],
    .no-js .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    nav, #experience, .reveal[data-reveal] {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
