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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

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

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

/* Hero animations */
.hero-subtitle {
    animation: fadeUp 0.8s 0.2s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title {
    animation: fadeUp 0.8s 0.4s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-desc {
    animation: fadeUp 0.8s 0.6s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-cta {
    animation: fadeUp 0.8s 0.8s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Navbar transitions */
.navbar-scrolled {
    background-color: rgba(250, 247, 244, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-logo {
    color: #1c1917 !important;
}

.navbar-scrolled .mobile-link {
    color: #1c1917 !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Image loading */
img {
    display: block;
    max-width: 100%;
}

/* Selection color */
::selection {
    background-color: #C4745B;
    color: #FAF7F4;
}

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

/* Smooth image hover */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

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

/* Print styles */
@media print {
    nav, .animate-bounce, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #1c1917;
        background: white;
    }
}
