/* Base Styles */
html {
    scroll-behavior: smooth;
}

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

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

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

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

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

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

.nav-scrolled .nav-text {
    color: #1a2744 !important;
}

/* Scroll Indicator Animation */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 24px;
        opacity: 0;
    }
}

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

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

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

/* Image Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Selection Color */
::selection {
    background: #fce4da;
    color: #7a3e29;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-line {
        animation: none;
    }
    
    .group:hover .group-hover\:scale-110,
    img:hover {
        transform: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid #c0603a;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, .scroll-indicator, #contactForm, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
