*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(110, 231, 183, 0.3);
    color: #f0fdf4;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050A18;
}

::-webkit-scrollbar-thumb {
    background: rgba(110, 231, 183, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 231, 183, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

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

.animate-float-delay {
    animation: float-delay 10s ease-in-out infinite;
    animation-delay: 2s;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

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

/* Image lazy load fade-in */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Subtle gold shimmer on hover for cards */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}
