
* {
    scrollbar-width: thin;
    scrollbar-color: #ff0000 #111111;
     box-sizing: border-box;

}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #111111;
    border-left: 1px solid #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 0px; /* sharp corners — matches your terminal style */
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

::-webkit-scrollbar-corner {
    background: #000000;
}
        :root {
            --cursor-size: 40px;
        }


        body {
            background-color: #000;
            color: #fff;
            overflow-x: hidden;
            font-family: 'Space Mono', monospace;
        }

        /* Hide cursor on touch devices */
        @media (pointer: fine) {
            body {
                cursor: none;
            }
        

            #cursor {
                display: block;
            }
        }

        @media (pointer: coarse) {
            body {
                cursor: auto;
            }

            #cursor {
                display: none !important;
            }
        }

        /* Custom Sniper Cursor */
        #cursor {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: var(--cursor-size);
            height: var(--cursor-size);
            border: 2px solid #ff0000;
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s, border-color 0.3s;
            mix-blend-mode: difference;
        }

        #cursor::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 4px;
            height: 4px;
            background: #ff0000;
            transform: translate(-50%, -50%);
        }

        /* Layout Grid Lines */
        .grid-bg {
            background-size: 40px 40px;
            background-image:
                linear-gradient(to right, rgba(50, 50, 50, 0.3) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(50, 50, 50, 0.3) 1px, transparent 1px);
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -2;
            pointer-events: none;
        }

        /* Scanline Overlay */
        .scanline {
            width: 100%;
            height: 100%;
            position: fixed;
            left: 0;
            top: 0;
            z-index: 9998;
            pointer-events: none;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
            background-size: 100% 4px;
            opacity: 0.3;
        }

        /* Typography Utilities */
        .text-outline {
            -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
            color: transparent;
            transition: all 0.3s ease;
        }

        .hover-fill:hover .text-outline {
            -webkit-text-stroke: 0px;
            color: #ff0000;
        }

        /* ── DESKTOP: Horizontal Scroll ── */
        @media (min-width: 768px) {
            body.no-scroll {
                overflow: hidden;
            }


            .horizontal-scroll-section {
                width: 700%;
                height: 100vh;
                display: flex;
                flex-wrap: nowrap;
            }

            .panel {
                width: 100vw;
                height: 100vh;
                flex-shrink: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                border-right: 1px solid #333;
            }
            
        }

        /* ── MOBILE: Vertical Scroll ── */
        @media (max-width: 767px) {
            .horizontal-scroll-container {
                overflow: visible;
            }

            .horizontal-scroll-section {
                width: 100%;
                height: auto;
                display: block;
            }

            .panel {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                border-bottom: 1px solid #333;
                border-right: none;
                padding: 60px 0 60px;
            }
            .hero{
                height: 100svh;
            }
        }

        /* Loading Screen */
        #loader {
            position: fixed;
            inset: 0;
            background: #000;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .bar {
            width: 0%;
            height: 2px;
            background: #ff0000;
            transition: width 0.5s;
        }

        /* Image Reveal - desktop only */
        @media (min-width: 768px) {
            .project-img-reveal {
                position: absolute;
                top: 50%;
                left: 80%;
                transform: translate(-50%, -50%) scale(0.8);
                height: 300px;
                opacity: 0;
                transition: all 0.5s ease;
                z-index: 1;
                aspect-ratio: 4/3;
                object-fit: cover;
                /*filter: grayscale(100%) contrast(1.2);*/
                pointer-events: none;
            }

            .project-link:hover+.project-img-reveal {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        @media (max-width: 767px) {
            .project-img-reveal {
                display: block;
                aspect-ratio: 4/3;
                object-fit: cover;
            }
        }

        /* Form Styles */
        .system-input {
            background: transparent;
            border: 1px solid #333;
            color: #fff;
            font-family: 'Space Mono', monospace;
            padding: 1rem;
            width: 100%;
            transition: all 0.3s;
            font-size: 0.75rem;
        }

        .system-input:focus {
            outline: none;
            border-color: #ff0000;
            background: rgba(255, 0, 0, 0.05);
        }

        /* Mobile Nav Menu */
        #mobile-nav {
            transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s;
        }

        #mobile-nav.closed {
            transform: translateX(-100%);
            opacity: 0;
            pointer-events: none;
        }

        #mobile-nav.open {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }

        /* Hamburger */
        .ham-line {
            width: 24px;
            height: 2px;
            background: #fff;
            transition: all 0.3s;
            display: block;
        }

        .ham-open .ham-line:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .ham-open .ham-line:nth-child(2) {
            opacity: 0;
        }

        .ham-open .ham-line:nth-child(3) {
            transform: translateY(-6px) rotate(-45deg);
        }

        /* Responsive hero text */
        .hero-title {
            font-size: clamp(2.8rem, 10vw, 8rem);
            line-height: 0.85;
        }

        .about-title {
            font-size: clamp(2.5rem, 6vw, 6rem);
            line-height: 1;
        }

        .project-title {
            font-size: clamp(1.8rem, 7vw, 3.75rem);
        }

        .skills-title {
            font-size: clamp(2rem, 8vw, 5rem);
        }

        .reviews-title {
            font-size: clamp(1.8rem, 6vw, 3.75rem);
        }

        .contact-title {
            font-size: clamp(1.6rem, 5vw, 1.25rem);
        }

        .service-title {
            font-size: clamp(1.3rem, 4vw, 1.875rem);
        }

        /* Tablet adjustments */
        @media (min-width: 768px) and (max-width: 1023px) {
            .panel {
                padding: 80px 0;
            }
        }

        /* Prevent horizontal overflow on mobile */
        @media (max-width: 767px) {
            .container {
                max-width: 100% !important;
            }
        }
          @keyframes transmit {
                                0% {
                                    width: 0%;
                                }

                                80% {
                                    width: 90%;
                                }

                                100% {
                                    width: 100%;
                                }
                            }

                            .transmit-bar {
                                animation: transmit 1.8s ease-out forwards;
                            }

                            .system-input.error {
                                border-color: #ff0000;
                                background: rgba(255, 0, 0, .08);
                            }

                            #form-status.success {
                                border-color: #20ff1d;
                                color: #20ff1d;
                                background: rgba(32, 255, 29, .05);
                            }

                            #form-status.error {
                                border-color: #ff0000;
                                color: #ff0000;
                                background: rgba(255, 0, 0, .05);
                            }