/* ===== Fred's Lounge — Custom Styles ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1d23;
}
::-webkit-scrollbar-thumb {
    background: #43474f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6b42;
}

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

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
    animation-duration: 5s;
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
    animation-duration: 4.5s;
}

.floating-card:nth-child(4) {
    animation-delay: 1.5s;
    animation-duration: 5.5s;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion */
@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 {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar Active State ===== */
.nav-scrolled {
    background: rgba(13, 15, 19, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(67, 71, 79, 0.5) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ===== Geometric Shape Decorations ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* ===== Mobile Menu Transitions ===== */
#mobile-menu.open {
    max-height: 400px;
}

/* ===== Button Ripple Effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Image Loading Placeholder ===== */
img {
    background: linear-gradient(135deg, #2a2d35 0%, #1a1d23 100%);
    min-height: 4rem;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(255, 107, 66, 0.3);
    color: #f6f6f7;
}

/* ===== Focus Visible ===== */
:focus-visible {
    outline: 2px solid #ff6b42;
    outline-offset: 2px;
}

/* ===== Mobile-specific adjustments ===== */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }
    
    section {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}
