/* Custom styles for Drift Away */

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

/* Floating card animations */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -1s;
    animation-duration: 5s;
}

.floating-card:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 4.5s;
}

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

/* Menu card hover effect */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-transparent {
    background: transparent;
}

/* Gallery image hover */
.rounded-2xl.overflow-hidden {
    transition: transform 0.3s ease;
}

.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .rounded-2xl.overflow-hidden img {
        transition: none;
    }
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom selection color */
::selection {
    background: rgba(77, 145, 77, 0.2);
    color: #1a3a1a;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4d914d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0f7f0 0%, #dcefdc 100%);
}
