/* Custom styles to complement Tailwind */

/* Custom Selection */
::selection {
    background-color: #4f46e5;
    color: #ffffff;
}

/* Base Custom Cursor (Hide default on non-touch devices) */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    a, button, input {
        cursor: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Word Reveal Effect for Hero */
.word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.5s ease-out forwards;
}

/* We let JS handle the staggering delays, or we can use nth-child if static, but JS is more robust for split text */

/* Glow Button Effect */
.btn-glow {
    position: relative;
    box-shadow: 0 0 0 rgba(79, 70, 229, 0);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Scroll Reveal Initial States */
.scroll-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content Card Hover Tilt (Base classes, JS does the 3D rotation) */
.content-card {
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.content-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(79, 70, 229, 0.15);
}

/* Form Autofill Overrides (Dark theme friendly) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    transition: background-color 5000s ease-in-out 0s;
}
