/* Custom styles and overrides */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #102a43;
}

/* Smooth reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

::-webkit-scrollbar-track {
    background: #102a43;
}

::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2fb89a;
}

/* Selection color */
::selection {
    background-color: rgba(47, 184, 154, 0.3);
    color: #f0f4f8;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a3a5c inset !important;
    -webkit-text-fill-color: #f0f4f8 !important;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Nav active state */
nav a.active {
    color: #2fb89a !important;
}

/* Floating card animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

.absolute.-top-4.-right-4 {
    animation: float 4s ease-in-out infinite 2s;
}

/* Pulse animation for dots */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
