/* ===== Custom Styles for Pumpkin and Bugg's Bake Shop ===== */

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

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

/* --- Navbar --- */
.nav-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #500724;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(80, 7, 36, 0.08);
}

#navbar:not(.scrolled) .nav-link {
    color: #500724;
}

#navbar:not(.scrolled) .nav-text {
    color: #500724;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #9d174d, #be185d);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 23, 77, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 23, 77, 0.4);
    background: linear-gradient(135deg, #831443, #9d174d);
}

.btn-secondary {
    background: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(251, 207, 232, 0.3);
}

/* --- Decorative Blobs --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.blob-plum {
    background: rgba(244, 168, 212, 0.3);
    width: 400px;
    height: 400px;
}

.blob-amber {
    background: rgba(251, 191, 36, 0.25);
    width: 350px;
    height: 350px;
}

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

@keyframes float-delay {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite 1s;
}

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

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* --- Feature Cards --- */
.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* --- Menu Tabs --- */
.menu-tab {
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #fbcfe8;
    background: transparent;
    color: #9d174d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    background: #fce7f3;
    border-color: #f9a8d4;
}

.menu-tab.active {
    background: linear-gradient(135deg, #9d174d, #be185d);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(157, 23, 77, 0.3);
}

/* --- Menu Items --- */
.menu-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-item.hidden-item {
    opacity: 0;
    transform: translateY(20px);
    position: absolute;
    pointer-events: none;
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
}

.gallery-item:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(80, 7, 36, 0.15);
    border-radius: inherit;
    transition: background 0.3s ease;
}

.gallery-item {
    position: relative;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #fce7f3;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:hover {
    transform: translateY(-3px);
    background: #be185d;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .blob {
        display: none;
    }
}

/* --- Focus Styles --- */
*:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* --- Selection --- */
::selection {
    background: #fbcfe8;
    color: #500724;
}
