/* Custom Typography & Layout */
:root {
    --ave-gold: #D4AF37;
    --ave-forest: #1A2D23;
    --ave-charcoal: #121212;
    --off-white: #F9FAFB;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: white;
    color: var(--ave-charcoal);
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes reveal {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.animate-reveal {
    animation: reveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Three.js Container */
#three-container {
    background: radial-gradient(circle at center, #ffffff 0%, #f0f0f0 100%);
}

/* Navigation Blur */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Custom Utilities */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tightest { letter-spacing: -0.07em; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animate-reveal {
        animation-duration: 0.8s;
    }
}

/* Ensure no horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Smooth Image Hover */
.group:hover img {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--ave-forest);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ave-gold);
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--ave-gold);
    outline-offset: 4px;
}
