/* author aierken */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Emoji", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Cantarell", "Helvetica Neue", sans-serif;
}



.theme-light {
    --color-primary: #0060df;
    --color-secondary: #fbfbfe;
    --color-accent: #fd6f53;
    --font-color: #000000;
    --project-effect-color: black;
    --project-card-background: hsl(0, 0%, 90%);
    --exp-card-background: hsl(0, 0%, 92%);
    --exp-card-fontcolor: #000000;
}

.theme-dark {
    --color-primary: #17ed90;
    --color-secondary: #000000;
    --color-accent: #12cdea;
    --font-color: #ffffff;
    --project-effect-color: #6f45dc;
    --project-card-background: hsl(0, 0%, 10%);
    --exp-card-background: hsl(0, 0%, 15%);
    --exp-card-fontcolor: #ffffff;
}

.screenview {
    display: flex;
    flex-direction: column;
}

.left {
    background-color: var(--color-secondary);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 24vw;
    overflow: auto;
    color: var(--font-color);
    z-index: 2;
}

/* Media query for phone view */
@media (max-width: 768px) {
    .screenview {
        flex-direction: column;
    }

    .left {
        position: static;
        width: 100vw;
    }
}




.leftcontent {
    margin-top: 5vw;
    margin-left: 5vw;
    margin-right: 3vw;
    font-size: 1.15em;
}


.profileImage {
    margin-top: 24px;
    width: 190px;
    height: 190px;
    border-radius: 65%;
    box-shadow: 5px 10px 20px;
    box-shadow: var(--font-color);
}




/* toggle swith ---------------------------------------------------------------------------- */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
    transform-style: preserve-3d;
    perspective: 500px;
    animation: toggle__animation 3s infinite;
}

.switch::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: blur(20px);
    z-index: -1;
    border-radius: 50px;
    background-color: #5a686e;
    background-image: radial-gradient(at 21% 46%, hsla(183, 65%, 60%, 1) 0px, transparent 50%),
        radial-gradient(at 23% 25%, hsla(359, 74%, 70%, 1) 0px, transparent 50%),
        radial-gradient(at 20% 1%, hsla(267, 83%, 75%, 1) 0px, transparent 50%),
        radial-gradient(at 86% 87%, hsla(204, 69%, 68%, 1) 0px, transparent 50%),
        radial-gradient(at 99% 41%, hsla(171, 72%, 77%, 1) 0px, transparent 50%),
        radial-gradient(at 55% 24%, hsla(138, 60%, 62%, 1) 0px, transparent 50%);
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--font-color);
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    left: 0.3em;
    bottom: 0.35em;
    transition: .4s;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.17) 0px -10px 10px 0px inset,
        rgba(0, 0, 0, 0.09) 0px -1px 15px -8px;
    background-color: #ff99fd;
    background-image: radial-gradient(at 81% 39%, hsla(327, 79%, 79%, 1) 0px, transparent 50%),
        radial-gradient(at 11% 72%, hsla(264, 64%, 79%, 1) 0px, transparent 50%),
        radial-gradient(at 23% 20%, hsla(75, 98%, 71%, 1) 0px, transparent 50%);
}

.input__check:checked+.slider:before {
    transform: translateX(1.5em);
}

@keyframes toggle__animation {

    0%,
    100% {
        transform: translateY(-10px) rotateX(15deg) rotateY(-20deg);
    }

    50% {
        transform: translateY(0px) rotateX(15deg) rotateY(-20deg);
    }
}



/* radio button format ------------------------------------------------------------------------------ */
.navg {
    width: 10em;
    position: relative;
    height: 3.5em;
    border: 3px ridge;
    border-color: var(--font-color);
    outline: none;
    background-color: transparent;
    color: var(--font-color);
    transition: 1s;
    border-radius: 0.3em;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;

}

.navg::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 3%;
    width: 95%;
    height: 40%;
    background-color: var(--color-secondary);
    transition: 0.5s;
    transform-origin: center;
}

.navg::before {
    content: "";
    transform-origin: center;
    position: absolute;
    top: 80%;
    left: 3%;
    width: 95%;
    height: 40%;
    background-color: var(--color-secondary);
    transition: 0.5s;
}

.navg:hover::before,
.navg:hover::after {
    transform: scale(0)
}

.navg:hover {
    box-shadow: inset 0px 0px 25px;
    box-shadow: var(--font-color);
}


.sociallink {
    display: flex;
    align-items: center;
    margin-top: 3vw;

}

.sociallink i {
    margin-right: 20px;
    color: var(--font-color);
    font-size: 35px;
}


/* ── Glitch effect on name ── */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}
.glitch::before {
    color: #0ff;
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
    animation: glitch-top 5s infinite;
}
.glitch::after {
    color: #f0f;
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
    animation: glitch-bot 5s infinite;
}
@keyframes glitch-top {
    0%, 90%, 100% { opacity: 0; transform: none; }
    92% { opacity: 1; transform: translateX(-4px); }
    94% { opacity: 1; transform: translateX(4px); }
    96% { opacity: 0; }
}
@keyframes glitch-bot {
    0%, 90%, 100% { opacity: 0; transform: none; }
    93% { opacity: 1; transform: translateX(4px); }
    95% { opacity: 1; transform: translateX(-4px); }
    97% { opacity: 0; }
}


/* ── Profile glow ring ── */
.profile-glow-ring {
    display: inline-block;
    margin-top: 24px;
    border-radius: 65%;
    padding: 3px;
    background: linear-gradient(135deg, #64b4ff, #a855f7, #64b4ff);
    background-size: 200% 200%;
    animation: ring-spin 4s linear infinite;
    transition: box-shadow 0.3s;
}
.profile-glow-ring:hover {
    box-shadow: 0 0 25px rgba(100, 180, 255, 0.6);
}
@keyframes ring-spin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.profile-glow-ring .profileImage {
    margin-top: 0;
    display: block;
}


/* ── Particle canvas ── */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}
.leftcontent {
    position: relative;
    z-index: 1;
}
.screenview {
    position: relative;
    z-index: 1;
}
.right {
    position: relative;
    z-index: 1;
}

/* ── Typing h2 fixed height to prevent layout jump ── */
#typing-text {
    min-height: 1.4em;
}


/* ── Nav button ripple ── */
.navg {
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(2.5); opacity: 0; }
}


/* ── Skill tag fill animation ── */
.tag {
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s, opacity 0.2s;
}
.tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--font-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}
.tag:hover::before {
    transform: translateX(0);
}
.tag:hover {
    color: var(--color-secondary);
    opacity: 1;
}


/* ── Section h2 underline slide ── */
.myinfo h2,
.toollist h2,
.myproject h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 6px;
}
.myinfo h2::after,
.toollist h2::after,
.myproject h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--font-color);
    transition: width 0.4s ease;
}
.revealed .myinfo h2::after,
.toollist h2::after,
.myproject h2::after,
.myinfo h2::after {
    width: 100%;
}


/* ── Particle cursor trail ── */
.trail-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    animation: trail-fade 0.8s ease-out forwards;
}
@keyframes trail-fade {
    0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scale(0.1); }
}


/* ── Aurora background ── */
#aurora-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.aurora-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color), 0.18) 0%, transparent 70%);
    filter: blur(60px);
    transform: translate(-50%, -50%);
    transition: left 0.1s linear, top 0.1s linear;
}


/* ── Typing cursor ── */
#typing-text::after {
    content: '|';
    animation: blink 0.7s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}




/* ── Cursor glow ── */
#cursor-glow {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(100, 180, 255, 0.1) 0%, transparent 65%);
}