/* Base & Utilities */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }

/* Navbar */
.nav-text, .nav-subtext {
    transition: color 0.3s ease;
}

.navbar-scrolled .nav-text,
.navbar-scrolled .nav-subtext {
    color: #3C2415;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d15230;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d15230;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Mobile menu button animation */
#mobile-menu-btn.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-bar:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.4rem;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Selection color */
::selection {
    background: #f5c6b3;
    color: #67261d;
}

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

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

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

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

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #ec977e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(209, 82, 48, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(231, 191, 54, 0.03) 0%, transparent 50%);
}
