.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: 100vh;
    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;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.description {
    font-size: clamp(1rem, 2vw, 1.05rem);
    color: var(--text-color);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 700px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.code-window:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.window-header {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27ca3f;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #d4d4d4;
}

.code-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: typewriter 0.5s ease-out forwards;
}

.code-line:nth-child(1) {
    animation-delay: 0.5s;
}

.code-line:nth-child(2) {
    animation-delay: 1s;
}

.code-line:nth-child(3) {
    animation-delay: 1.5s;
}

.code-line:nth-child(4) {
    animation-delay: 2s;
}

.code-line:nth-child(5) {
    animation-delay: 2.5s;
} */

@keyframes typewriter {
    to {
        opacity: 1;
    }
}

.keyword {
    color: #569cd6;
}

.string {
    color: #ce9178;
}

.function {
    color: #dcdcaa;
}

.comment {
    color: #6a9955;
}

.services,
.stacks,
.skills {
    margin-top: 70px;
}

.about-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .about-col {
        width: 48%;

        h3 {
            margin-bottom: 20px;
            font-size: clamp(1.3rem, 7vw, 1.5rem);
        }

        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-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 .section-header {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.stacks-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    background-color: transparent;
}

/* .stacks-container::before,
.stacks-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.stacks-container::before {
    left: 0;
    background: linear-gradient(to right, #000 0%, transparent 100%);
}

.stacks-container::after {
    right: 0;
    background: linear-gradient(to left, #000 0%, transparent 100%);
} */

.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;
}

/* CSS-masked stack icons (use when you want the SVG shape filled by CSS gradients) */
/* .stack-icon {
    width: 50px;
    height: 50px;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--contrast) 100%);
    background-size: 200% 200%;
    border-radius: 8px;
} */

/* .stack-react {
    mask: url("../images/stacks/react.svg") no-repeat center / contain;
    -webkit-mask: url("../images/stacks/react.svg") no-repeat center / contain;
    background: linear-gradient(90deg, #61dafb 0%, #7f50ff 100%);
} */

/* Optional hover animation to shift the gradient */
.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::before,
    .stacks-container::after {
        width: 80px;
    }

    .stacks-track {
        gap: 40px;
    }

    .stack-item img {
        /* height: 70px; */
    }
}

/* skills */
.skills-grid {
    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;
    }
}

@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 {
    /* transform: translateY(-8px); */
    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;
    }
}