/* Custom Scrollbar for a Techie Vibe */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; /* Matches your Slate 900 background */
}
::-webkit-scrollbar-thumb {
    background: #3b82f6; /* Your Electric Blue brand color */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2563eb; 
}

/* Scroll Reveal Base Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* Smooth snap-into-place curve */
}

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

/* Advanced Glowing Border for Cards */
.tech-card {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

/* The gradient border mask */
.tech-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px; /* Thickness of the glowing border */
    background: linear-gradient(45deg, transparent, #3b82f6, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.tech-card:hover::before {
    opacity: 1;
}
