/* Custom styles beyond Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1A1D23;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(26, 29, 35, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 66, 76, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1D23;
}
::-webkit-scrollbar-thumb {
    background: #3D424C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8634B;
}

/* Selection color */
::selection {
    background-color: rgba(232, 99, 75, 0.3);
    color: #fff;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

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

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.float-1 { animation: float 4s ease-in-out infinite; }
.float-2 { animation: float 5s ease-in-out infinite 0.5s; }
.float-3 { animation: float 4.5s ease-in-out infinite 1s; }

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #2C3038 inset !important;
    -webkit-text-fill-color: #fff !important;
}
