/* Base styles and custom animations */
:root {
    --clay: #C05640;
    --clay-dark: #A04030;
    --sand: #F5F0E8;
    --sand-light: #FAF7F2;
    --bark: #3D2B1F;
    --bark-light: #5C4033;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', system-ui, sans-serif;
    color: var(--bark);
    background-color: var(--sand-light);
    line-height: 1.6;
}

/* Text reveal animation */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar scroll effect */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(192, 86, 64, 0.1);
}

#navbar.scrolled #nav-logo {
    color: var(--bark);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Smooth hover transitions */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(192, 86, 64, 0.2);
}

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

::-webkit-scrollbar-track {
    background: var(--sand);
}

::-webkit-scrollbar-thumb {
    background: var(--clay);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clay-dark);
}

/* Selection color */
::selection {
    background: var(--clay);
    color: var(--sand);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}
