@charset "UTF-8";

/* SCROLL PROGRESS BAR */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), #00ffcc);
    box-shadow: 0 0 10px var(--accent-primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* SKILLS MARQUEE */
.skills-rail {
    overflow: hidden;
    padding: 25px 0 10px 0;

    mask-image: linear-gradient(
        to right,
        transparent,
        white 10%,
        white 90%,
        transparent
    );
}

.skills-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.track-left {
    animation: scroll-left 30s linear infinite;
}

.track-right {
    margin: 50px 0 0 0;
    animation: scroll-right 30s linear infinite;
}

.skills-group {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    padding-right: clamp(2rem, 5vw, 6rem);
}

.skills-icon {
    width: clamp(40px, 5vw, 60px);
    object-fit: contain;
    flex-shrink: 0;
    transition:
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}

/* SKILLS ANIMATION */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* PARTICLES BACKGROUND ANIMATION */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* NAVBAR ACTIVE SECTION ANIMATION */
.navbar a.active {
    color: var(--accent-primary);
    background-color: rgba(32, 226, 200, 0.12);
    border-color: rgba(32, 226, 200, 0.3);
    box-shadow: 0 0 15px rgba(32, 226, 200, 0.25);
}

/* BUTTON */
#snake-toggle {
    cursor: pointer;
    transition: 0.3s;
}

#snake-toggle:hover {
    background-color: var(--bg-soft);
}

/* GAME CONTAINER */
#snake-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #000;
    position: relative;
}

/* ACTIVE */
#snake-container.active {
    display: block;
}

/* SNAKE TITLE */
.snake-title {
    margin-bottom: 15px;
    color: var(--accent-primary);
    font-family: "JetBrains Mono", monospace;
}

/* CANVAS GAME */
#snake-game {
    display: block;
    width: 100%;
    height: 250px;
    background-color: #000;
    border: 2px solid var(--accent-primary);
}

/* GAME OVER SCREEN */
#game-over {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    color: var(--accent-primary);
    font-family: "JetBrains Mono", monospace;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
}

#game-over button {
    margin-top: 10px;
    padding: 10px 15px;
    border: 1px solid var(--accent-primary);
    background: transparent;
    color: white;
    cursor: pointer;
}

/* PROJECTS PAGE BACKGROUND ANIMATION */
.a-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            -45deg,
            #000000,
            #020617,
            #030712,
            #0a0f1f,
            #020617
        );
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    filter: saturate(110%) brightness(0.9);
}

@keyframes gradientMove {

    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* RESPONSIVE DESIGN FOR GAME ON MOBILE*/
@media (max-width: 768px) {
    #snake-container {
        display: none;
    }
}

/* MOBILE HEADER DESIGN */
@media (max-width: 768px) {

    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 5px 30px 5px;
    }

    #photo {
        order: 1;
        width: 150px;
        margin-bottom: 20px;
    }

    .header-text {
        order: 2;
    }

    #links {
        order: 3;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .container {
        width: 95%;
    }
}

.paused * {
    animation-play-state: paused !important;
}
