/* Custom styles that complement Tailwind */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0B1D3A;
}
::-webkit-scrollbar-thumb {
    background: #2DD4BF;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14B8A6;
}

/* Selection color */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #0B1D3A;
}

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

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

/* Subtle pattern overlay for dark sections */
.bg-midnight::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(45, 212, 191, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}
