/* Freedom Vape FL — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #065F46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background-color: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Fade-in for loaded state */
html.loaded body {
    animation: fadeInPage 0.5s ease forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Subtle float animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-8px) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: no-preference) {
    .absolute.top-0.right-0 > div,
    .absolute.top-32.left-0 > div,
    .absolute.bottom-8.right-8 > div,
    .absolute.bottom-20.left-4 > div {
        animation: float 4s ease-in-out infinite;
    }
    .absolute.top-32.left-0 > div { animation-delay: -1s; }
    .absolute.bottom-8.right-8 > div { animation-delay: -2s; }
    .absolute.bottom-20.left-4 > div { animation-delay: -3s; }
}

/* Selection color */
::selection {
    background-color: #065F46;
    color: #FDF9F3;
}
