body {
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

.hover-reveal,
.hover-reveal * {
    cursor: none !important;
}

/* 1. Tracker Cursors */
#cursor-arrow-tracker {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cursor-reveal-tracker {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    width: 0px;
    height: 0px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    mix-blend-mode: difference;
    color: white;
}

#cursor-reveal-tracker.is-revealing {
    width: 90px;
    height: 90px;
    opacity: 1;
}

@media (min-width: 768px) {
    #cursor-reveal-tracker.is-revealing {
        width: 140px;
        height: 140px;
    }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    pointer-events: none;
    z-index: -1;
}

.grid-line-light {
    border-right: 1px solid var(--tw-colors-site-gridLight);
}

.dark .grid-line-light {
    border-right: 1px solid var(--tw-colors-site-gridDark);
}

.grid-overlay div:first-child {
    border-left: 1px solid transparent;
}

/* Hide Scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-scroll::-webkit-scrollbar {
    width: 4px;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: #06b6d4;
    border-radius: 10px;
}

/* Tech Badges */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
    transition: all 0.2s ease;
    cursor: default;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Demo Tabs */
.demo-tab {
    transition: all 0.2s ease;
}

.demo-tab.active {
    background: #06b6d4;
    color: #161923;
    border-color: #06b6d4;
}

.demo-panel {
    display: none;
}

.demo-panel.active {
    display: block;
}

.cursor-blink::after {
    content: "▮";
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Day/Night Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch .theme-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196f3;
    transition: 0.4s;
    border-radius: 34px;
}

.sun-moon {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: yellow;
    transition: 0.4s;
    border-radius: 50%;
}

.theme-checkbox:checked+.theme-slider {
    background-color: black;
}

.theme-checkbox:checked+.theme-slider .sun-moon {
    transform: translateX(26px);
    background-color: white;
}

.moon-dot {
    opacity: 0;
    transition: 0.4s;
    fill: gray;
}

.theme-checkbox:checked+.theme-slider .sun-moon .moon-dot {
    opacity: 1;
}

.mdot-1 {
    left: 10px;
    top: 3px;
    position: absolute;
    width: 6px;
    height: 6px;
    z-index: 4;
}

.mdot-2 {
    left: 2px;
    top: 10px;
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 4;
}

.mdot-3 {
    left: 16px;
    top: 18px;
    position: absolute;
    width: 3px;
    height: 3px;
    z-index: 4;
}

.stars {
    transform: translateY(-32px);
    opacity: 0;
    transition: 0.4s;
}

.star {
    fill: white;
    position: absolute;
    transition: 0.4s;
    animation: star-twinkle 2s infinite;
}

.theme-checkbox:checked+.theme-slider .stars {
    transform: translateY(0);
    opacity: 1;
}

.str-1 {
    width: 20px;
    top: 2px;
    left: 3px;
    animation-delay: 0.3s;
}

.str-2 {
    width: 6px;
    top: 16px;
    left: 3px;
}

.str-3 {
    width: 12px;
    top: 20px;
    left: 10px;
    animation-delay: 0.6s;
}

.str-4 {
    width: 18px;
    top: 0px;
    left: 18px;
    animation-delay: 1.3s;
}

@keyframes star-twinkle {

    0%,
    100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.2);
    }

    80% {
        transform: scale(0.8);
    }
}