/* Custom styles supplementing Tailwind */

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

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

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

.geo-circle {
    animation: float 6s ease-in-out infinite;
}

.geo-square {
    animation: float-slow 8s ease-in-out infinite;
}

.geo-triangle {
    animation: float 7s ease-in-out infinite;
}

/* Stagger animation delays for geometric shapes */
.geo-circle:nth-child(1) { animation-delay: 0s; }
.geo-circle:nth-child(2) { animation-delay: 1s; }
.geo-circle:nth-child(3) { animation-delay: 2s; }
.geo-square:nth-child(1) { animation-delay: 0.5s; }
.geo-square:nth-child(2) { animation-delay: 1.5s; }

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #14b8a6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background-color: #14b8a6;
    color: white;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
@media (max-width: 1023px) {
    #mobile-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        z-index: 40;
        padding: 2rem;
    }
}
