/* Custom styles for Whaley's Super Market */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* Floating assets */
.floating-asset {
    position: absolute;
    opacity: 0.6;
}

.floating-1 {
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.floating-2 {
    top: 60%;
    right: 15%;
    animation: floatReverse 7s ease-in-out infinite;
}

.floating-3 {
    top: 40%;
    left: 8%;
    animation: float 8s ease-in-out infinite;
}

/* Decorative circles */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.deco-circle-1 {
    width: 600px;
    height: 600px;
    background: #4ade80;
    top: -200px;
    right: -100px;
    animation: pulse-soft 8s ease-in-out infinite;
}

.deco-circle-2 {
    width: 400px;
    height: 400px;
    background: #86efac;
    bottom: -100px;
    left: -100px;
    animation: pulse-soft 10s ease-in-out infinite;
}

.deco-circle-3 {
    width: 200px;
    height: 200px;
    background: #bbf7d0;
    top: 40%;
    left: 20%;
    animation: pulse-soft 6s ease-in-out infinite;
}

.deco-circle-4 {
    width: 150px;
    height: 150px;
    background: #bbf7d0;
    bottom: 20%;
    right: 25%;
    animation: pulse-soft 7s ease-in-out infinite;
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #0a1525 !important;
}

.navbar-scrolled .nav-link {
    color: #2d4a6b !important;
}

.navbar-scrolled .mobile-link {
    color: #2d4a6b !important;
}

.navbar-scrolled #mobile-menu-btn {
    background: #f0f4f8 !important;
}

.navbar-scrolled #mobile-menu-btn svg {
    stroke: #0a1525 !important;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a3250;
}

/* Selection color */
::selection {
    background: #86efac;
    color: #0a1525;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Image hover effects */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Reduce motion for accessibility */
@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,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .deco-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .deco-circle-2 {
        width: 200px;
        height: 200px;
    }
}

/* Large screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
