/* Halloween Container */
#festive-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* Halloween Ambiance */
body.halloween-theme {
    background:
        radial-gradient(ellipse at 15% 20%, rgba(255, 140, 0, 0.08) 0%, rgba(255, 140, 0, 0.02) 40%, transparent 70%),
        radial-gradient(ellipse at 85% 80%, rgba(139, 69, 19, 0.06) 0%, rgba(139, 69, 19, 0.01) 40%, transparent 70%),
        linear-gradient(135deg, rgba(255, 140, 0, 0.01) 0%, transparent 50%, rgba(139, 69, 19, 0.02) 100%);
    background-attachment: fixed;
}

/* Navigation Enhancements */
body.halloween-theme .navbar-brand {
    transition: filter 0.4s ease;
}

body.halloween-theme .navbar-brand:hover {
    filter:
        drop-shadow(0 2px 8px rgba(255, 140, 0, 0.6))
        drop-shadow(0 0 12px rgba(255, 140, 0, 0.3));
}

body.halloween-theme .navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.halloween-theme .navbar-nav .nav-link:hover {
    text-shadow: 0 1px 3px rgba(255, 140, 0, 0.5);
    transform: translateY(-1px);
}

body.halloween-theme .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 140, 0, 0.8) 20%,
        rgba(255, 140, 0, 1) 50%,
        rgba(255, 140, 0, 0.8) 80%,
        transparent);
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
    transition: width 0.3s ease;
}

body.halloween-theme .navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #festive-container {
        display: none;
    }

    body.halloween-theme .navbar-nav .nav-link,
    body.halloween-theme .navbar-brand {
        transition: none;
    }

    body.halloween-theme .navbar-nav .nav-link:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    #festive-container canvas {
        filter: contrast(2) brightness(1.5);
    }
}
