.view-resume-container {
    position: absolute;
    top: 20px;
    right: 30px;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(100px, -100px);
    }

    50% {
        transform: translate(-50px, -150px);
    }

    75% {
        transform: translate(150px, -50px);
    }
}

.hero-wrapper {
    width: 100%;
    height: 85vh;
    position: relative;
    z-index: 0;

    .container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        height: 100%;
    }
}


.hero-content {
    max-width: 700px;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2rem, 7vw, 2.5rem);
    font-weight: 600;
    color: var(--contrast);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.description {
    font-size: clamp(1rem, 2vw, 1.05rem);
    color: var(--text-color);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

@media (max-width: 330px) {
    .hero-wrapper {
        height: auto;

        .hero-content {
            padding-top: 30px;
        }

        .hero-content .status-badge {
            margin-bottom: 20px;
        }
    }

    .hero-content h1 {
        margin-bottom: 20px;
    }

    .description {
        margin-bottom: 10px !important;
        text-align: justify;
    }
}

@keyframes typewriter {
    to {
        opacity: 1;
    }
}

.keyword {
    color: #569cd6;
}

.string {
    color: #ce9178;
}

.function {
    color: #dcdcaa;
}

.comment {
    color: #6a9955;
}

.about-section {
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .about-col {
        width: 48%;

        h2 {
            margin-bottom: 20px;
            font-size: clamp(1.3rem, 7vw, 2rem);
        }

        p {
            margin-bottom: 20px;
            color: var(--text-color);
        }
    }

    .about-col:nth-child(2) {
        display: flex;
        justify-content: flex-end;
        align-items: center;

        img {
            width: 80%;
            object-fit: cover;
            height: 400px;
            border-radius: 20px;
        }
    }

    .projects-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 24px;
        background: var(--background-2);
        border: 1px solid var(--bd-primary);
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.3s;
        margin-top: 24px;

        i {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            font-weight: 500;
            font-style: normal;
            color: var(--text-color);
        }

        span {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            transition: 0.5s ease-in-out;
        }

        &:hover i {
            color: var(--contrast);
        }

        &:hover .border-line::after {
            width: 100%;
        }

        &:hover span {
            transform: rotate(90deg);
        }

        &:hover {
            background: var(--hover-btn-bg);
            border-color: var(--hover-btn-border);
        }
    }
}

@media (max-width: 800px) {
    .about-section {
        height: unset;
    }

    .about-row {
        flex-direction: column-reverse;
        gap: 20px;

        .about-col {
            width: 100%;
        }

        .about-col:nth-child(2) {
            justify-content: center;

            img {
                height: auto;
            }
        }
    }
}

@media (max-width: 400px) {
    .about-row {
        .about-col:nth-child(2) {
            img {
                width: 100%;
            }
        }
    }

    .description {
        font-size: 0.9rem;
        text-align: justify;
    }
}

/* stacks */
.stacks .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stacks .section-header {
    border: none;
    justify-content: flex-start;
    text-align: left;
    width: fit-content;
}

.stacks-container {
    flex: 1;
    overflow: hidden;
    padding: 40px;
    position: relative;
    background-color: transparent;
    border: 1px solid var(--background-3);
}

.stacks-track {
    display: flex;
    gap: 100px;
    animation: scroll 25s linear infinite;
    width: fit-content;
}

.stacks-track:hover {
    animation-play-state: paused;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.stack-item img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.stack-item:hover .stack-icon {
    background-position: 100% 0;
    transition: background-position 600ms cubic-bezier(.2, .9, .2, 1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .stacks .container {
        flex-direction: column;
    }

    .stacks .section-header {
        text-align: center;
    }

    .stacks-container::before,
    .stacks-container::after {
        width: 80px;
    }

    .stacks-track {
        gap: 40px;
    }

    .stacks-container {
        width: 100%;
    }
}

/* skills */
.skills-container .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 30px;
}

.skills-container .section-header {
    border: none;
    text-align: center;
    width: fit-content;
}

.skills-grid {
    width: 25%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    position: relative;
}

.skill-card {
    position: relative;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1rem;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.skill-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(36, 211, 100, 0.2);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--background-3);
    border: 1px solid var(--bd-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skill-icon img {
    width: 60%;
}

.icon-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.skill-card:hover .icon-glow {
    opacity: 0.6;
}

.skill-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--contrast);
}

.skill-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skills-container .container {
        flex-direction: column;
    }

    .skills-container .section-header {
        order: -1;
        margin: 0;
        padding: 0;
    }

    .skills-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
        position: relative;
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* service section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.service-card {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: var(--bd-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--background-3);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.service-card:hover .service-icon {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--fade-accent);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent);
    fill: none;
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--contrast);
}

.service-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 28px;
}

.service-features {
    list-style: none;
    margin-bottom: 32px;
}

.service-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        padding: 20px;
    }
}