/* === Custom Styles for Greg's Volcano Pizza === */

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

/* Hide scrollbar on mobile menu */
body.menu-open {
    overflow: hidden;
}

/* === Navigation === */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e85a2e, #f07c52);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

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

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

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

/* Mobile menu button */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero Blobs === */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #fce4d8, #fad0b5);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f3e8d5, #e8d4b0);
    bottom: 5%;
    left: -5%;
    animation-delay: -3s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ffd5c4, #ffb496);
    top: 40%;
    left: 15%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* === Floating Emojis === */
.floating-emoji {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    animation: floatEmoji 6s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

.emoji-1 {
    top: 20%;
    left: 8%;
    animation-delay: 0s;
    font-size: 3rem;
}

.emoji-2 {
    top: 30%;
    right: 10%;
    animation-delay: -1.5s;
    font-size: 2rem;
}

.emoji-3 {
    bottom: 25%;
    left: 12%;
    animation-delay: -3s;
    font-size: 2rem;
}

.emoji-4 {
    bottom: 35%;
    right: 8%;
    animation-delay: -4.5s;
    font-size: 2.5rem;
}

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

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state for reduced motion or no-JS - content always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal.animating {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Card hover effects === */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* === Button focus states === */
a:focus-visible, button:focus-visible {
    outline: 2px solid #e85a2e;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* === Selection color === */
::selection {
    background-color: #fad0b5;
    color: #6c2113;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e8d4b0;
    border-radius: 4px;
}

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

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .hero-blob {
        filter: blur(40px);
        opacity: 0.3;
    }
    
    .blob-1 {
        width: 300px;
        height: 300px;
    }
    
    .blob-2 {
        width: 250px;
        height: 250px;
    }
    
    .blob-3 {
        width: 150px;
        height: 150px;
    }
    
    .floating-emoji {
        font-size: 1.5rem !important;
        opacity: 0.1;
    }
}

/* === Print styles === */
@media print {
    #navbar, .floating-emoji, .hero-blob {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
