/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Mobile nav toggle animation */
#nav-toggle.active #nav-icon {
    transform: rotate(45deg);
}

#nav-toggle.active #nav-icon path:nth-child(2) {
    opacity: 0;
}

#nav-toggle.active #nav-icon path:nth-child(3) {
    transform: rotate(-90deg);
}

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

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

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

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

/* Selection color */
::selection {
    background: #f3b9a4;
    color: #651d0f;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, footer, .reveal {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
