/* Custom styles for Endless Pointe */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F7;
}
::-webkit-scrollbar-thumb {
    background: #EABDC1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5D1A26;
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 248, 247, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(93, 26, 38, 0.08);
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
#menu-line-1.open {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-line-2.open {
    opacity: 0;
}
#menu-line-3.open {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-scroll-indicator {
        animation: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5D1A26;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background-color: #F5D5D8;
}
