html {
    font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 10px;
    border: 2px solid #111111;
}
::-webkit-scrollbar-thumb:hover {
    background: #c026d3;
}
html {
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #111111;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #e2e8f0;
    cursor: none;
    overflow-x: hidden;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.gradient-text {
    background: linear-gradient(90deg, #4f46e5, #c026d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid #27272a;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:not(.group):hover {
    transform: translateY(-3px);
    border-color: #3f3f46;
}
.group.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 25px rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-icon {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #8b5cf6;
    transition: width .3s;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

#cursor-dot, #cursor-outline {
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: transform;
}
#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #8b5cf6;
}
#cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

body.cursor-hover #cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}
body.cursor-hover #cursor-outline {
    width: 60px;
    height: 60px;
    border-color: rgba(192, 38, 211, 0.8);
}

.hero-headline .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    #cursor-dot,
    #cursor-outline,
    #particle-canvas {
        display: none;
    }

    .glass-card {
        background: rgba(17, 17, 17, 0.85);
        backdrop-filter: none;
    }
}
