/* Base Styles */
* {
    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 */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        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);
    }
    
    .reveal-on-scroll[data-revealed="false"] {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Hero Animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-subtitle {
        animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
    }
    
    .hero-title {
        animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
    }
    
    .hero-desc {
        animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
    }
    
    .hero-cta {
        animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
    }
    
    .hero-image-container {
        animation: fadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

/* Selection */
::selection {
    background: #f5e6de;
    color: #6c3024;
}

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

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Print Styles */
@media print {
    nav,
    #mobile-menu,
    .reveal-on-scroll {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
