/* Custom styles for Tan It Up */

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

/* Custom selection color */
::selection {
    background-color: #2d5f2d;
    color: #fcfbf8;
}

/* Fade-in-up animation for hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fade-in-up[data-delay="100"] { animation-delay: 0.1s; }
.fade-in-up[data-delay="200"] { animation-delay: 0.2s; }
.fade-in-up[data-delay="300"] { animation-delay: 0.3s; }
.fade-in-up[data-delay="400"] { animation-delay: 0.4s; }
.fade-in-up[data-delay="500"] { animation-delay: 0.5s; }

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

/* Navbar scrolled state */
#navbar.scrolled {
    background-color: rgba(252, 251, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(45, 95, 45, 0.1);
}

/* Image hover zoom */
.hover\:scale-105 {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f7f4ee;
}
::-webkit-scrollbar-thumb {
    background: #b8d1b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb88f;
}

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

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

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

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