/* Custom styles for La Michoacana Ice Cream Parlor */

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

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

/* Decorative background shapes */
.bg-shapes {
    z-index: 0;
}

.shape-circle-1 {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    position: absolute;
    bottom: 20%;
    left: 3%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(196, 62, 62, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 212, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.shape-triangle {
    position: absolute;
    top: 30%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(196, 62, 62, 0.06);
    animation: spin-slow 15s linear infinite;
    transform-origin: center;
}

.shape-dots {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(196, 62, 62, 0.1) 2px, transparent 2px);
    background-size: 16px 16px;
    animation: float 7s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Navbar scroll effect */
header.scrolled {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(153, 34, 34, 0.1);
}

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

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

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

/* Flavor card hover */
.flavor-card {
    position: relative;
    overflow: hidden;
}

.flavor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c43e3e, #ff6b6b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.flavor-card:hover::before {
    transform: scaleX(1);
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #c43e3e;
    border-radius: 5px;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-circle-3 {
        width: 200px;
        height: 200px;
    }
    
    .shape-triangle {
        display: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #c43e3e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 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;
    }
}
