/* Custom styles for Tara's Donut Shop */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #f9c5c9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec606a;
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249,197,201,0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(236,96,106,0.15) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
}

.rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(252,228,230,0.5);
    top: 30%;
    right: 42%;
    transform: rotate(45deg);
    border-radius: 16px;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(244,150,157,0.2);
    top: 20%;
    left: 45%;
    transform: rotate(-15deg);
}

.dot-pattern {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, #f9c5c9 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    top: 45%;
    left: 8%;
    opacity: 0.6;
}

/* Marquee animation */
.marquee-track {
    overflow: hidden;
}

.marquee-content {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Mobile menu animations */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(150, 27, 38, 0.08);
}

/* Menu card hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Button hover lift */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Image aspect ratio utilities */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    .geo-shape, .marquee-track, .animate-bounce {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
