/* ===== Custom Styles for Amazonas Express ===== */

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

body {
    overflow-x: hidden;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== Floating Animation ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.7;
    }
}

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

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(28, 25, 23, 0.95);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(63, 63, 70, 0.3);
}

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

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

::-webkit-scrollbar-track {
    background: #1c1917;
}

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

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

/* ===== Selection ===== */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f5f0e8;
}

/* ===== Focus Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-float {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 2.75rem);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .font-serif {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
}
