/* Custom styles for Imagine And More */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transition */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover scale for images */
.hover\\:scale-102:hover {
    transform: scale(1.02);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6aad6b;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #448a47;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #c5dfc3;
    color: #1f4322;
}

/* Image aspect ratio helpers */
.img-contain {
    object-fit: contain;
}

/* Print styles */
@media print {
    .animate-marquee {
        animation: none;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
