/* Custom styles and overrides */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal base styles */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Header scroll state */
#site-header.scrolled {
    background: rgba(43, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero reveal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    opacity: 0;
}

.reveal-up.visible {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered delays for hero */
.hero .reveal-up:nth-child(1) { animation-delay: 0.1s; }
.hero .reveal-up:nth-child(2) { animation-delay: 0.25s; }
.hero .reveal-up:nth-child(3) { animation-delay: 0.4s; }
.hero .reveal-up:nth-child(4) { animation-delay: 0.55s; }

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgb(63, 32, 43) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2b1117;
}
::-webkit-scrollbar-thumb {
    background: #8c3f52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a65468;
}

/* Selection color */
::selection {
    background: #ffd135;
    color: #2b1117;
}
