/* Custom styles to complement Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #780000;
    color: white;
}

/* Image loading placeholder */
img {
    background-color: #f5f5f4;
}

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

/* Smooth transitions for interactive elements */
button,
a {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Print styles */
@media print {
    nav,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
