/* Custom styles for DeVine Designs Floral and Gifts */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Selection color */
::selection {
    background-color: rgba(212, 154, 10, 0.2);
    color: #0d1c3a;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #b3c2df;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8da4cf;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 28, 58, 0.15);
}

/* Gallery item */
.gallery-item {
    overflow: hidden;
}
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(9, 19, 38, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Staggered mobile link animation */
.mobile-menu-open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

/* Menu toggle animation */
.menu-toggle-active .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-toggle-active .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
.menu-toggle-active .menu-line:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 16px;
}

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

/* Fade-in animation for scroll-reveal elements (below fold only) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure hero is always visible */
#top, #services, #about, #gallery, #contact, footer {
    opacity: 1 !important;
}
