html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    overflow-x: hidden;
}

#tubes-background {
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, rgba(214, 207, 225, 0.08), transparent 58%);
}

#tubes-canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.95;
    filter: saturate(1.05) contrast(1.04);
}

.dark #tubes-background {
    background: radial-gradient(circle at 50% 45%, rgba(214, 207, 225, 0.12), transparent 58%);
}

@media (max-width: 767px) {
    html {
        cursor: auto;
    }

    #scene-1 {
        min-height: 100svh;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    #tubes-background {
        pointer-events: none;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(214, 207, 225, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: #D6CFE1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
}

.cursor-hover {
    width: 50px;
    height: 50px;
    background-color: rgba(214, 207, 225, 0.1);
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

#preloader {
    position: fixed;
    inset: 0;
    background-color: #0f0f0f;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #D6CFE1;
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(184, 176, 200, 0.6);
    border-radius: 50%;
    pointer-events: none;
}

.dark .data-particle {
    background-color: rgba(214, 207, 225, 0.6);
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    white-space: pre;
}

.hero-subtext,
.about-element,
.stat-item,
.work-title,
.project-card,
.edu-title,
.edu-item,
.skill-title,
.skill-group,
.vision-text,
.contact-element {
    opacity: 0;
    will-change: transform, opacity;
}

.grid-cell {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    will-change: background-color, transform;
}

.bg-glow {
    will-change: transform, opacity;
}

.vision-glow {
    transition: background-color 2s ease-out;
}
