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

body {
    overflow-x: hidden;
}

/* Floating Card Animation */
@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: -1.3s;
    animation-duration: 4.5s;
}

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

/* Scroll Reveal */
.scroll-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);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 45, 66, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #151F30 !important;
}

.nav-scrolled .nav-tag {
    color: #B85C38 !important;
}

/* Mobile Menu Transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobileMenu.open {
    max-height: 400px;
}

/* Smooth Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #F9F4ED;
}

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

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

/* Selection */
::selection {
    background: #ECCEC3;
    color: #3A1A11;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #B85C38;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button ripple effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Form styles */
input, textarea, select {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #E8D5BA;
    background: #FDFCFA;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #151F30;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #B85C38;
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #C9A473;
}

/* Success message */
.form-success {
    display: none;
    background: #ECCEC3;
    color: #3A1A11;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 500;
    margin-top: 1rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-success.show {
    display: block;
}
