/* Custom styles for The Traveling Designer */

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

/* Scroll reveal base styles - content is visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Scroll reveal active state - applied via JS */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(10, 29, 58, 0.08);
    backdrop-filter: blur(12px);
}

.navbar-scrolled .font-serif,
.navbar-scrolled .text-navy-900 {
    color: #0A1D3A !important;
}

.navbar-scrolled a:not(.bg-navy-900):not(.bg-gold-400) {
    color: #15366A !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F7FA;
}
::-webkit-scrollbar-thumb {
    background: #0A1D3A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15366A;
}

/* Selection color */
::selection {
    background: #C8A45E;
    color: #0A1D3A;
}

/* Form select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Hero card float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotation, 0deg)); }
}

/* Ensure all text has proper contrast */
.text-navy-900 { color: #0A1D3A; }
.text-navy-800 { color: #0F2A52; }
.text-navy-700 { color: #15366A; }
.text-navy-600 { color: #1B4380; }
.text-navy-500 { color: #3D5A80; }
.text-navy-400 { color: #6B8AB5; }
.text-navy-300 { color: #9BB5D0; }
.text-navy-200 { color: #C5D5E8; }
.text-navy-100 { color: #E8F0F8; }
.text-navy-50 { color: #F5F7FA; }

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}
