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

body {
    background-color: #fafafa;
    color: #0f172a;
}

/* Custom Typography Utilities */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

.writing-vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

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

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

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

/* Scroll Reveal Classes (Progressive Enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.5s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Form Focus States */
input:focus, select:focus {
    background-color: #fff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
