/* Custom styles for CSI Research Inc. */

/* Base styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0a0a14;
    color: #e5e7eb;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a14;
}
::-webkit-scrollbar-thumb {
    background: #22223a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d1552;
}

/* Selection */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 10, 20, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34, 34, 58, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.08);
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Mobile menu links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(34, 34, 58, 0.5);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Subtle pulse for the status dot */
@keyframes pulse-gold {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }
}

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