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

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #ff000033;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Text Stroke Effect */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* Glow Effects */
.glow-primary {
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.5));
}

/* Section Transitions */
section {
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, black, transparent);
    z-index: 2;
}

/* Animation Utilities */
.reveal-text {
    background: linear-gradient(to right, #ff0000 50%, #ffffff 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 1s ease-out;
    -webkit-background-clip: text;
    background-clip: text;
}

.reveal-text.active {
    background-position: 0 0;
}

/* Navbar Blur on Scroll */
#navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}

/* Custom Cursor Styles */
#cursor {
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-hover #cursor {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.5);
    transform: translate(-50%, -50%);
}

#cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
}

/* Hero Title Glitch Effect (Subtle) */
@keyframes glitch {
    0% { transform: translate(0); text-shadow: -2px 0 red, 2px 0 blue; }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); text-shadow: 2px 0 red, -2px 0 blue; }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); text-shadow: -2px 0 red, 2px 0 blue; }
    100% { transform: translate(0); }
}

.hero-glitch:hover {
    animation: glitch 0.3s infinite linear alternate-reverse;
}

/* Roadmap Line Pulse */
.roadmap-line {
    background: linear-gradient(to bottom, #ff0000, transparent);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

/* Video Frame Glow */
.aspect-video::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}
