/* Custom styles beyond Tailwind */

/* Smooth reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Navbar glass effect when scrolled */
.nav-scrolled {
    background: rgba(4, 13, 26, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 54, 93, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040d1a;
}
::-webkit-scrollbar-thumb {
    background: #1a365d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #234880;
}

/* Selection color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #fff;
}

/* Image hover zoom */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover {
    transform: scale(1.03);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #34d399 0%, #86efac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for the dot */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.animate-soft-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* Form input autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a1628 inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobileMenu.open {
    max-height: 400px;
}
