
html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    overflow-x: hidden;
}

.text-vintage-brown {
    color: #8b4513;
}

.text-vintage-tan {
    color: #a0522d;
}

.text-vintage-dark {
    color: #5d4037;
}

.bg-vintage-light {
    background-color: rgba(244, 213, 168, 0.7);
}

.bg-vintage-card {
    background-color: rgba(232, 184, 122, 0.6);
}

.border-vintage {
    border-color: #8b4513;
}

.shadow-vintage {
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.4);
}


@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 1);
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Legacy Section Animations */
@keyframes orbit-1 {
    0% {
        transform: translate(-50%, 0) rotate(0deg) translateX(80px) rotate(0deg);
    }
    100% {
        transform: translate(-50%, 0) rotate(360deg) translateX(80px) rotate(-360deg);
    }
}

@keyframes orbit-2 {
    0% {
        transform: translate(0, -50%) rotate(90deg) translateX(80px) rotate(-90deg);
    }
    100% {
        transform: translate(0, -50%) rotate(450deg) translateX(80px) rotate(-450deg);
    }
}

@keyframes orbit-3 {
    0% {
        transform: translate(-50%, 0) rotate(180deg) translateX(80px) rotate(-180deg);
    }
    100% {
        transform: translate(-50%, 0) rotate(540deg) translateX(80px) rotate(-540deg);
    }
}

@keyframes orbit-4 {
    0% {
        transform: translate(0, -50%) rotate(270deg) translateX(80px) rotate(-270deg);
    }
    100% {
        transform: translate(0, -50%) rotate(630deg) translateX(80px) rotate(-630deg);
    }
}

@keyframes ping-slow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

@keyframes swing-slow {
    0%, 100% {
        transform: rotate(-1deg);
    }
    50% {
        transform: rotate(1deg);
    }
}

/* Apply animations */
.animate-orbit-1 {
    animation: orbit-1 8s linear infinite;
}

.animate-orbit-2 {
    animation: orbit-2 10s linear infinite;
}

.animate-orbit-3 {
    animation: orbit-3 12s linear infinite;
}

.animate-orbit-4 {
    animation: orbit-4 9s linear infinite;
}

.animate-ping-slow {
    animation: ping-slow 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-pulse-ring {
    animation: pulse-ring 2s ease-in-out infinite;
}

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

.animate-dash {
    animation: dash 20s linear infinite;
}

.animate-swing-slow {
    animation: swing-slow 4s ease-in-out infinite;
}

.glow-pulse {
    animation: pulse-glow 2s infinite;
}

.animate-float {
    animation: floatAnimation 3s ease-in-out infinite;
}

.smooth-scroll {
    scroll-behavior: smooth;
}


/* Scroll Animation Classes - Bidirectional */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.animated-out {
    opacity: 0;
    transform: translateY(-60px);
}

.scroll-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-left.animated-out {
    opacity: 0;
    transform: translateX(-80px);
}

.scroll-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-right.animated-out {
    opacity: 0;
    transform: translateX(80px);
}

.scale-animate {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-animate.animated {
    opacity: 1;
    transform: scale(1);
}

.scale-animate.animated-out {
    opacity: 0;
    transform: scale(0.7);
}

.rotate-animate {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.rotate-animate.animated {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.rotate-animate.animated-out {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(139, 69, 19, 0.5);
}

.hover-glow {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    transform: scale(1.05);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.1);
}

.hover-rotate {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Legacy Logo Animations */
.legacy-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.legacy-item:hover {
    transform: translateY(-15px) scale(1.05);
}

.legacy-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.legacy-item:hover img {
    transform: scale(1.15) rotate(3deg);
}

/* Mobile Menu Animation */
#mobileMenu {
    backdrop-filter: blur(10px);
}

#mobileMenu a {
    transition: all 0.3s ease;
}

#mobileMenu a:hover {
    transform: translateX(8px);
}

/* Countdown Animation */
.countdown-digit {
    transition: transform 0.3s ease;
}

.countdown-digit:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .scroll-animate,
    .scroll-left,
    .scroll-right {
        transition-duration: 0.5s;
    }
    
    .scroll-animate {
        transform: translateY(30px);
    }
    
    .scroll-animate.animated-out {
        transform: translateY(-30px);
    }
    
    .scroll-left {
        transform: translateX(-40px);
    }
    
    .scroll-left.animated-out {
        transform: translateX(-40px);
    }
    
    .scroll-right {
        transform: translateX(40px);
    }
    
    .scroll-right.animated-out {
        transform: translateX(40px);
    }

    /* Adjust orbit radius for mobile */
    @keyframes orbit-1 {
        0% {
            transform: translate(-50%, 0) rotate(0deg) translateX(50px) rotate(0deg);
        }
        100% {
            transform: translate(-50%, 0) rotate(360deg) translateX(50px) rotate(-360deg);
        }
    }

    @keyframes orbit-2 {
        0% {
            transform: translate(0, -50%) rotate(90deg) translateX(50px) rotate(-90deg);
        }
        100% {
            transform: translate(0, -50%) rotate(450deg) translateX(50px) rotate(-450deg);
        }
    }

    @keyframes orbit-3 {
        0% {
            transform: translate(-50%, 0) rotate(180deg) translateX(50px) rotate(-180deg);
        }
        100% {
            transform: translate(-50%, 0) rotate(540deg) translateX(50px) rotate(-540deg);
        }
    }

    @keyframes orbit-4 {
        0% {
            transform: translate(0, -50%) rotate(270deg) translateX(50px) rotate(-270deg);
        }
        100% {
            transform: translate(0, -50%) rotate(630deg) translateX(50px) rotate(-630deg);
        }
    }
}

/* Smooth transition for all animated elements */
.scroll-animate,
.scroll-left,
.scroll-right,
.scale-animate,
.rotate-animate {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Enhanced scroll direction effects */
body[data-scroll-direction="down"] .scroll-animate.animated {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-scroll-direction="up"] .scroll-animate.animated-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}

/* Stagger Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Parallax Effect Helper */
.parallax {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Loading Effect */
img {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

/* Prevent layout shift */
.aspect-ratio-box {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.aspect-ratio-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Advanced Scroll Effects - Optional */
.parallax-slow {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-fast {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.animated > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.animated > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.animated > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.animated > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.animated > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.animated > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* Blur effect on scroll */
.blur-on-scroll {
    transition: filter 0.3s ease-out;
}

body[data-scroll-direction="down"] .blur-on-scroll.animated-out {
    filter: blur(3px);
}

body[data-scroll-direction="up"] .blur-on-scroll.animated-out {
    filter: blur(3px);
}

.blur-on-scroll.animated {
    filter: blur(0px);
}

/* Fade only effect (no movement) */
.fade-animate {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-animate.animated {
    opacity: 1;
}

.fade-animate.animated-out {
    opacity: 0;
}