:root {
    --cursor-size: 20px;
    --cursor-hover-size: 60px;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    cursor: none;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Syne', sans-serif;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #000;
}

.cursor-outline {
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 2px solid #000;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-hover .cursor-outline {
    width: var(--cursor-hover-size);
    height: var(--cursor-hover-size);
    background-color: rgba(0, 0, 0, 0.1);
    border-color: transparent;
    backdrop-filter: invert(1);
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    z-index: 9998;
    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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.marquee-track {
    animation: marquee 20s linear infinite;
}

.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s;
}

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

.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff006e, #8338ec, #3a86ff);
    z-index: 10000;
    transition: width 0.1s;
}

.project-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.1);
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #000, transparent);
    transform: translateX(-50%);
}

.github-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .timeline-line {
        left: 20px;
    }
}