/* Custom styles for Cakes by Juanice */

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

/* Custom selection color */
::selection {
    background-color: #be2654;
    color: white;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(110, 24, 55, 0.08);
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll reveal base styles — content is VISIBLE by default */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate on devices that prefer motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Image loading placeholder */
img {
    background-color: #fce7eb;
}

/* Subtle gradient on hero decorative shapes */
.rounded-\[120px\] {
    border-radius: 120px;
}

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

/* Mobile link hover */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}
.mobile-link:hover {
    color: #be2654;
    transform: scale(1.05);
}
