/* Custom styles for Black Squirrels Tattoos & Piercings */

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

/* Selection color */
::selection {
    background-color: #3e6630;
    color: #FAFAF7;
}

/* Hero animations - above the fold, no JS dependency for visibility */
.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image-wrapper {
    animation: fadeIn 1s ease-out forwards;
}

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

@keyframes fadeIn {
    from {
        opacity: 1;
    }
    to {
        opacity: 1;
    }
}

/* Scroll reveal animations - progressive enhancement, below fold only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

/* Section header animation */
.section-header {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .section-header {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .section-header.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .service-card:nth-child(1) { transition-delay: 0s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.2s; }
    .service-card:nth-child(4) { transition-delay: 0.3s; }
    .service-card:nth-child(5) { transition-delay: 0.4s; }
    .service-card:nth-child(6) { transition-delay: 0.5s; }
}

/* Gallery items */
.gallery-item {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .gallery-item {
        opacity: 0;
        transform: scale(0.95);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .gallery-item.revealed {
        opacity: 1;
        transform: scale(1);
    }
    
    .gallery-item:nth-child(1) { transition-delay: 0s; }
    .gallery-item:nth-child(2) { transition-delay: 0.05s; }
    .gallery-item:nth-child(3) { transition-delay: 0.1s; }
    .gallery-item:nth-child(4) { transition-delay: 0.15s; }
    .gallery-item:nth-child(5) { transition-delay: 0.2s; }
    .gallery-item:nth-child(6) { transition-delay: 0.25s; }
    .gallery-item:nth-child(7) { transition-delay: 0.3s; }
    .gallery-item:nth-child(8) { transition-delay: 0.35s; }
}

/* About image */
.about-image-wrapper {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .about-image-wrapper {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .about-image-wrapper.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navbar scroll behavior */
.navbar-scrolled {
    background-color: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(49, 80, 39, 0.08);
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
}

/* Hamburger animation */
.hamburger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Custom select styling */
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='%2354833e' 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 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Thin scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #c7dbb7;
    border-radius: 3px;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #54833e;
    outline-offset: 2px;
}

/* Image aspect ratios */
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

/* Subtle hover underline for links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #54833e;
    transition: width 0.3s ease;
}

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

.nav-link {
    position: relative;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #54833e !important;
    box-shadow: 0 0 0 3px rgba(84, 131, 62, 0.1);
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
