/* Custom styles for Shear Joy By Erica */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #95d6b0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #24874d;
}

/* Scroll indicator animation */
@keyframes scrollLine {
    0% { top: -12px; }
    100% { top: 32px; }
}
.scroll-line {
    animation: scrollLine 1.2s ease-in-out infinite;
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(20, 85, 51, 0.08);
}

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

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu button animation */
.menu-line:nth-child(1) {
    transform-origin: center;
}
.menu-line:nth-child(2) {
    transform-origin: center;
}
.menu-line:nth-child(3) {
    transform-origin: center;
}

.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Service card hover */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(20, 85, 51, 0.15);
}

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

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Gallery hover */
.gallery-item {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #186d3e;
    outline-offset: 2px;
    border-radius: 9999px;
}

/* Form styles */
input, textarea {
    background: rgba(253, 252, 250, 0.8);
    border: 1px solid #c3ebd0;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #186d3e;
    background: #fdfcfa;
    box-shadow: 0 0 0 3px rgba(24, 109, 62, 0.1);
}

/* Success message */
.success-message {
    animation: fadeInUp 0.5s ease forwards;
}

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