/* Custom styles complementing Tailwind */

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

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

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #2dd4bf, #5eead4, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Noise texture overlay for depth */
.noise-overlay {
    position: relative;
}
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Ensure form inputs are readable */
input, select, textarea {
    font-family: 'Lato', sans-serif;
}

/* Mobile menu overlay */
#mobile-menu {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

/* Parallax-like subtle movement for hero blobs */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -10px) scale(1.02); }
    66% { transform: translate(-5px, 5px) scale(0.98); }
}
.hero-gradient .absolute div:nth-child(1) {
    animation: float 8s ease-in-out infinite;
}
.hero-gradient .absolute div:nth-child(2) {
    animation: float 10s ease-in-out infinite reverse;
}
.hero-gradient .absolute div:nth-child(3) {
    animation: float 12s ease-in-out infinite;
}

/* Reduced motion */
@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; }
}
