@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #57534e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #292524;
}

/* Selection Color */
::selection {
    background-color: #1c1917;
    color: white;
}

/* Hero Image Animation */
.hero-image {
    animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Navigation State */
.nav-scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    height: auto;
}

.nav-scrolled .h-24 {
    height: 5rem;
}

/* Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for child elements */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Image Hover Enhancement */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Form Focus States */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

/* Button Ripple Effect Base */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Responsive Typography Scaling */
@media (max-width: 640px) {
    .font-playfair {
        letter-spacing: -0.02em;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}