:root {
    --accent-primary: #22d3ee;
    --accent-secondary: #00b2b7;
    --accent-tertiary: #ff0080;
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --text-primary: #fff;
    --text-secondary: #b0b0c0;
    --color-blue: rgba(17, 36, 55, 1);
}

* {
    cursor: none !important;
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.tektur {
    font-family: 'Tektur', monospace;
}

.hud-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hud-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3);
}

.hud-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.hud-card:hover::before {
    transform: translateX(100%);
}

.hud-button {
    margin: 10px 20px;
    padding: 12px 24px;
    position: relative;
    background-color: #1a1a2e99;
    border: 1px solid #00ffff4d;
    color: var(--accent-primary);
    text-align: center;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    transition: all 0.35s cubic-bezier(0.75, 0, 0.25, 1);
    min-height: auto;
    min-width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hud-button:first-of-type {
    margin-left: 0px;
}

.hud-button:last-of-type {
    margin-right: 0px;
}

.hud-button:hover {
    position: relative;
    border: 1px solid transparent;
    background-color: var(--accent-primary);
    color: var(--bg-secondary);
    /* animation: 0.07s flicker;
    animation-iteration-count: 2; */
    transition: all 0.35s cubic-bezier(0.75, 0, 0.25, 1);
}

.hud-button:focus {
    background-color: var(--accent-secondary);
}

.decorator {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid transparent;
    /* animation: 0.1s flicker;
    animation-iteration-count: 3; */
    transition: all 0.35s cubic-bezier(0.75, 0, 0.25, 1);
}

.decorator.top {
    top: -1px;
    border-top: 1px solid var(--accent-primary);
}

.decorator.bottom {
    bottom: -1px;
    border-bottom: 1px solid var(--accent-primary);
}

.decorator.left {
    left: -1px;
    border-left: 1px solid var(--accent-primary);
}

.decorator.right {
    right: -1px;
    border-right: 1px solid var(--accent-primary);
}

.hud-button:hover .decorator.top {
    top: -16px;
    border-top: 1px solid var(--accent-primary);
}

.hud-button:hover .decorator.bottom {
    bottom: -16px;
    border-bottom: 1px solid var(--accent-primary);
}

.hud-button:hover .decorator.left {
    left: -16px;
    border-left: 1px solid var(--accent-primary);
}

.hud-button:hover .decorator.right {
    right: -16px;
    border-right: 1px solid var(--accent-primary);
}

/* @keyframes flicker {

    0%,
    50% {
        opacity: 0;
    }

    51%,
    100% {
        opacity: 1;
    }
} */

.badge {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.15);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: none;
    will-change: transform;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.cursor-hover {
    transform: scale(1.5);
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 20px var(--accent-tertiary);
}

.cursor-click {
    transform: scale(0.8);
    border-color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, opacity;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px);
    pointer-events: none;
}

.glitch {
    position: relative;
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch:hover::before {
    animation: glitch-1 0.3s infinite;
    color: var(--accent-primary);
    z-index: -1;
}

.glitch:hover::after {
    animation: glitch-2 0.3s infinite;
    color: var(--accent-tertiary);
    z-index: -2;
}

@keyframes glitch-1 {

    0%,
    14%,
    15%,
    49%,
    50%,
    99%,
    100% {
        transform: translate(0);
    }

    15%,
    49% {
        transform: translate(-2px, 0);
    }
}

@keyframes glitch-2 {

    0%,
    20%,
    21%,
    62%,
    63%,
    99%,
    100% {
        transform: translate(0);
    }

    21%,
    62% {
        transform: translate(2px, 0);
    }
}

.progress-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Hide progress dots on mobile and tablet */
@media (max-width: 1024px) {
    .progress-dots {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 80px 30px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
    right: 0;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 2001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: var(--accent-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile and Tablet Responsive Styles */
@media (max-width: 768px) {

    /* Hero Section */
    .hero-button {
        width: 100%;
        margin: 5px 0;
    }

    /* Navigation */
    .tektur {
        font-size: 1rem;
    }

    /* Cards and sections */
    .hud-card {
        margin: 0 0px;
        /* was 0 10px */
    }

    /* Stats grid */
    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* About section gear items */
    .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Projects grid */
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Timeline adjustments */
    .ml-20 {
        margin-left: 3rem;
    }

    .absolute.left-6 {
        left: 1rem;
    }

    .absolute.left-8 {
        left: 1rem;
    }

    /* Button text size */
    .hud-button {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    /* Section padding */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Text sizes */
    h1.tektur {
        font-size: 2.5rem;
    }

    h2.tektur {
        font-size: 2rem;
    }

    h3.tektur {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {

    /* Extra small screens */
    .container.mx-auto {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Header spacing */
    header {
        padding-top: 15px;
    }

    /* Hero title */
    h1.tektur {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    /* Stats grid */
    .grid.grid-cols-2.md\:grid-cols-4 {
        gap: 0.75rem;
    }

    .grid.grid-cols-2.md\:grid-cols-4>div>div:first-child {
        font-size: 1.5rem;
        /* Make stat numbers slightly smaller */
    }

    /* Timeline further adjustments */
    .ml-20 {
        margin-left: 2rem;
    }

    .absolute.left-6 {
        left: 0.5rem;
    }

    .absolute.left-8 {
        left: 0.5rem;
    }

    /* Mobile menu width */
    .mobile-menu {
        width: 100%;
        right: -100%;
    }

    /* Button adjustments */
    .hud-button {
        font-size: 0.7rem;
        padding: 6px 12px;
        min-height: 36px;
    }

    /* Projects */
    .project-card h3 {
        font-size: 1.25rem;
    }

    /* About Me text spacing */
    #about .grid>div:first-child {
        margin-bottom: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    /* Tablet styles */
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide scrollbar for default elements but allow thin styled scrollbars */
.scrollbar-hide::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

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

/* Styled horizontal scrollbar for video container */
#videoContainer::-webkit-scrollbar {
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#videoContainer::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

#videoContainer {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(0, 0, 0, 0.3);
}