/* Custom styles for Easy Tee's */

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

/* Floating card animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

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

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px -2px rgba(16, 42, 67, 0.1);
}

.nav-scrolled .nav-link {
    color: rgb(51, 78, 104) !important;
}

.nav-scrolled .nav-link:hover {
    color: rgb(13, 148, 136) !important;
}

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

::-webkit-scrollbar-track {
    background: rgb(240, 244, 248);
}

::-webkit-scrollbar-thumb {
    background: rgb(188, 204, 220);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(13, 148, 136);
}

/* Selection color */
::selection {
    background: rgb(45, 212, 191);
    color: rgb(16, 42, 67);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image hover zoom container */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid rgb(45, 212, 191);
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
