﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "Poppins",sans-serif;
    background-color: #161513;
    color: #c5c5c5
}

a {
    text-decoration: none
}

header {
    background: none;
    text-align: center
}

.logo img {
    width: 80px
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: rgba(0,0,0,.85);
    padding: 8px 20px;
    border-radius: 50px;
    width: fit-content;
    max-width: calc(100% - 24px);
    z-index: 1000;
    backdrop-filter: blur(10px)
}

    .navbar a {
        color: #fff;
        padding: 6px 16px;
        border-radius: 25px;
        font-size: 16px;
        transition: background .3s ease,color .3s ease
    }

        .navbar a.active {
            background: #fff;
            color: #000
        }

        .navbar a:hover {
            background: rgba(255,255,255,.2)
        }

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 20px
}

.avatar img {
    width: 251px
}

.about {
    text-align: center
}

.about-text {
    width: 652px;
    margin: 30px auto
}

    .about-text h1 {
        background: linear-gradient(to right,#fff,#ccc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent
    }

        .about-text h1 > span {
            background: var(--Primary-Gradient,linear-gradient(116deg,#ff8660 71.79%,#9a33ff 95.51%));
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent
        }

    .about-text p {
        font-size: 18px;
        margin-top: 30px
    }

.about-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px
}

    .about-btn i {
        margin-right: 8px
    }

.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 48px;
    background: none;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 18px;
    color: #fff;
    transition: all .3s ease
}

.btn-detail {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 6px 14px;
    background: none;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    transition: all .3s ease
}

    .btn-detail:hover {
        background: #fff;
        color: #000
    }

.btn-github:hover {
    background: #fff;
    color: #000
}

.btn-linkedin:hover {
    background: #0A66C2;
    color: #fff;
    border-color: #0A66C2
}

.experience-with {
    text-align: center
}

    .experience-with h2 {
        font-size: 20px
    }

.experience-with-lang {
    display: flex;
    width: 500px;
    margin: 50px auto;
    justify-content: space-between
}

    .experience-with-lang img {
        width: 42px;
        cursor: pointer
    }

.primary-heading {
    text-align: center;
    font-size: 35px
}

.heading-project {
    background: var(--Orange-Gradient,linear-gradient(180deg,#ff8660 0%,#d5491d 100%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.projects {
    display: none
}

.project-item {
    background: #2a2a2a;
    margin: 20px;
    border-radius: 18px 18px 0 0
}

    .project-item img {
        width: 100%;
        border-radius: 18px 18px 0 0
    }

.project-title {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 18px 18px
}

    .project-title h3 {
        color: #fff
    }

.heading-experience {
    background: var(--Blue-Gradient,linear-gradient(180deg,#5badff 0%,#1373d1 100%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.experience-item {
    padding: 30px 0
}

.experience-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px
}

    .experience-title-container .date {
        margin-left: auto
    }

.experience-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-left: 10px
}

footer {
    background-color: #191919
}

    footer h2 {
        color: #fff;
        font-size: 24px;
        margin-bottom: 20px
    }

    footer p {
        font-size: 15px
    }

.email-container {
    display: flex;
    align-items: center;
    margin-top: 40px
}

    .email-container img {
        margin-right: 10px
    }

.social-links {
    display: flex;
    margin-top: 40px
}

    .social-links img {
        margin-right: 20px
    }

#hello {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh
}

    #hello h1 {
        color: green;
        font-family: Consolas,monospace;
        font-size: 80px;
        font-weight: 700
    }

.timeline {
    position: relative;
    width: 100%;
    margin: 40px 0 20px;
    padding-left: 30px
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #2f2f2f
    }

.timeline-item {
    position: relative;
    margin: 0 0 28px;
    padding-left: 28px
}

.timeline-badge {
    position: absolute;
    left: -2px;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000;
    box-shadow: 0 0 0 4px #161513
}

.timeline-panel {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 14px 16px
}

    .timeline-panel h3 {
        color: #fff;
        font-size: 18px;
        margin-bottom: 4px
    }

.timeline-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #9e9e9e;
    margin-bottom: 8px
}

.timeline-body {
    font-size: 15px;
    line-height: 1.6
}

.terminal {
    background: #0d0f12;
    border: 1px solid #2a2f34;
    border-radius: 10px;
    overflow: hidden;
    font-family: Consolas,Menlo,Monaco,"Courier New",monospace;
    color: #e6e6e6;
    max-width: 100%;
    width: 100%;
    height: 380px;
    display: flex;
    flex-direction: column
}

.terminal__titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #14171a;
    border-bottom: 1px solid #2a2f34
}

.terminal__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.terminal__dot--red {
    background: #ff5f57
}

.terminal__dot--yellow {
    background: #febc2e
}

.terminal__dot--green {
    background: #28c840
}

.terminal__title {
    margin-left: auto;
    font-size: 12px;
    color: #9aa0a6
}

.terminal__body {
    padding: 16px;
    flex: 1;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word
}

.term-line {
    line-height: 1.6;
    white-space: pre-wrap
}

.term-muted {
    color: #9aa0a6
}

.term-green {
    color: #7ed957
}

.term-yellow {
    color: #ffd166
}

.term-red {
    color: #ff6b6b
}

.term-cyan {
    color: #5bd2f7
}

.terminal__input {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #2a2f34;
    background: #0f1216;
    flex-wrap: nowrap
}

.terminal__prompt {
    color: #7ed957
}

.terminal__field {
    flex: 1;
    background: transparent;
    border: none;
    color: #e6e6e6;
    outline: none;
    font: inherit;
    caret-color: #e6e6e6
}

.terminal__caret {
    display: none
}

.footer-legacy {
    display: none
}

.projects-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 24px
}

.projects-track {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0
}

    .projects-track .project-item {
        margin: 0 !important;
        flex: 0 0 calc((100% - 20px)/2);
        scroll-snap-align: start;
        background: #2a2a2a;
        border-radius: 18px;
        overflow: hidden
    }

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #2f2f2f;
    background: #1a1a1a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease,opacity .2s ease
}

    .slider-btn:hover {
        transform: scale(1.06)
    }

    .slider-btn:disabled {
        opacity: .35;
        cursor: not-allowed
    }

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #2f2f2f;
    background: #1a1a1a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease,transform .25s ease,visibility 0s linear .25s;
    z-index: 1100
}

    .back-to-top:hover {
        transform: translateY(6px)
    }

    .back-to-top:focus {
        outline: 2px solid #5badff;
        outline-offset: 2px
    }

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity .25s ease,transform .25s ease
    }

#contact {
    padding-bottom: 145px
}

.heading-articles {
    background: linear-gradient(135deg,#6a1b9a,#9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.articles-slider {
    margin-top: 32px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    align-items: center
}

.articles {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden
}

.article-card {
    background: #2a2a2a;
    border-radius: 18px;
    padding: 18px 20px 20px
}

.articles-slider .slider-btn {
    width: 36px;
    height: 36px;
    margin: 0 auto
}

.btn-article {
    width: auto;
    height: auto;
    padding-inline: 15px;
    padding-block: 7px;
    font-size: 14px;
    line-height: 1.3;
    margin-top: 10px
}

@media (max-width: 900px) {
    .projects-track .project-item {
        flex: 0 0 85%
    }
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 24px
    }

        .timeline::before {
            left: 10px
        }

    .timeline-badge {
        left: -6px
    }

    .about-text {
        width: 100%
    }

    .experience-with-lang {
        width: 100%;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center
    }
}

@media (max-width: 600px) {
    .navbar {
        top: 10px;
        gap: 8px;
        padding: 6px 10px
    }

        .navbar a {
            font-size: 13px;
            padding: 5px 10px;
            border-radius: 20px
        }

    .projects-slider {
        grid-template-columns: 1fr
    }

        .projects-slider .slider-btn {
            display: none
        }

    .projects-track {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch
    }

        .projects-track .project-item {
            flex: 0 0 92%
        }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none
    }

        .back-to-top:hover {
            transform: none
        }
}
