/* Custom styles for Jansen's Custom Cut */

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

/* Prevent scroll on mobile menu open */
body.menu-open {
    overflow: hidden;
}

/* Navbar transitions */
.nav-link {
    position: relative;
}

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

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

/* Hero blob animations */
.hero-blob {
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-1 {
    animation-delay: 0s;
}

.hero-blob-2 {
    animation-delay: -3s;
}

.hero-blob-3 {
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* Service card stagger animation */
.service-card {
    opacity: 1;
}

/* Gallery hover */
.gallery-item {
    cursor: pointer;
}

/* Mobile menu */
#mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
}

#mobile-menu.collapsed {
    max-height: 0 !important;
    opacity: 0;
}

#mobile-menu.expanded {
    max-height: 400px;
    opacity: 1;
}

.mobile-menu-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(13, 110, 63, 0.08);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Scroll reveal base state (visible by default for progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 110, 63, 0.1);
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D6E3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Selection color */
::selection {
    background: rgba(13, 110, 63, 0.2);
    color: #0D6E3F;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #0D6E3F;
    outline-offset: 2px;
}

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .hero-blob, iframe {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
