.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 9999;
    transition: width 0.05s linear;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.stat-value {
    display: inline-block;
    position: relative;
}

.stat-number {
    display: inline-block;
    min-width: 1.5ch;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    display: inline;
}

.stat-value.counting .stat-number {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.8), 0 0 40px rgba(0, 243, 255, 0.4);
    animation: counterPulse 0.15s ease-in-out infinite alternate;
}

.stat-value.counted .stat-number {
    animation: counterFinish 0.6s ease-out forwards;
}

@keyframes counterPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes counterFinish {
    0% { transform: scale(1.15); text-shadow: 0 0 30px rgba(0, 243, 255, 1), 0 0 60px rgba(0, 243, 255, 0.6); }
    100% { transform: scale(1); text-shadow: none; }
}

.glass-card.tilt-card,
.hscroll-card.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card.tilt-card .card-content,
.glass-card.tilt-card .card-icon,
.glass-card.tilt-card .card-title,
.hscroll-card.tilt-card .hscroll-card-content {
    transform: translateZ(20px);
}

.glow-cursor {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.glow-cursor.visible {
    opacity: 1;
}

.hero-title .typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary);
    margin-left: 4px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.3;
    margin: 0;
}

@media (max-width: 768px) {
    .glow-cursor {
        display: none;
    }

    #particleCanvas {
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glow-cursor,
    #particleCanvas {
        display: none;
    }

    .scroll-progress-bar {
        display: none;
    }
}
