/* Custom styles for Rusty Bent Nail */

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

/* Ensure hero animations start immediately */
.fade-in {
    opacity: 1;
    animation: fadeInUp 0.7s ease-out forwards;
    animation-play-state: running;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal — only for below-fold sections */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in,
    .scroll-reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu animations */
.menu-line {
    display: block;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Nav link hover underline */
.nav-link {
    position: relative;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9b9ba2;
}

/* Selection color */
::selection {
    background: #ffd4c7;
    color: #2d2d34;
}

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}
