/* ===== Custom Styles for La Pina Fruteria ===== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Hero Animations ===== */
.hero-text {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-text.animated {
    transform: translateY(0);
}

.hero-image.animated {
    transform: scale(1);
}

/* Stagger delays for hero text */
.hero-text:nth-child(1) { transition-delay: 0.1s; }
.hero-text:nth-child(2) { transition-delay: 0.25s; }
.hero-text:nth-child(3) { transition-delay: 0.4s; }
.hero-text:nth-child(4) { transition-delay: 0.55s; }
.hero-text:nth-child(5) { transition-delay: 0.7s; }

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

#mobile-menu .mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

#mobile-menu .mobile-link:hover {
    color: #FF6B6B;
    transform: translateX(8px);
}

/* Line animations for mobile menu */
#menu-btn.active #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active #line2 {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Image Hover Effects ===== */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Button Hover ===== */
a[href="#location"] {
    position: relative;
    overflow: hidden;
}

a[href="#location"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FF6B6B;
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

a[href="#location"]:hover::after {
    transform: translateX(0);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #D64545;
}

/* ===== Selection ===== */
::selection {
    background: #FF6B6B;
    color: white;
}

/* ===== 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 360px) {
    .font-serif.text-5xl {
        font-size: 2.75rem;
    }
}
