/* Custom styles for Busted Lift */

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

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Navbar glass effect when scrolled */
header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(13, 27, 42, 0.06), 0 8px 30px rgba(13, 27, 42, 0.06);
}

header.scrolled .font-display {
    color: #0D1B2A !important;
}

/* Nav link hover effect */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00C9A7;
    transition: width 0.3s ease;
    margin-top: 2px;
}

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

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

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

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

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #00C9A7, #33d7a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button ripple on click */
button:active, a:active {
    transform: scale(0.98);
}

/* Custom selection color */
::selection {
    background: rgba(0, 201, 167, 0.2);
    color: #0D1B2A;
}

/* Input autofill style */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: white !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    img {
        transition: none;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #00C9A7;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #e8edf5;
}
::-webkit-scrollbar-thumb {
    background: #9db4db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7597ce;
}
