/* ******************** HEADER SECTION - START ******************** */
/* left column - start */
#cursor {
    display: inline-block;
    color: #3D83F8;
    margin-left: 2px;
    animation: blink 0.8s infinite;
}

#typedText {
    color: #3D83F8;
    font-size: 2.88rem;
    line-height: 0.912;
}

/* left column - end */

/* right column - start */
#header-right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 6;
}

#header-right img {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

#header-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* right column - end */
/* ******************** HEADER SECTION - END ******************** */

/* ******************** ABOUT SECTION - START ******************** */
#about {
    position: relative;
    display: flex;
    justify-content: center;
}

#technologies {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.tool {
    cursor: pointer;
    display: flex;
    align-items: center;
    min-width: 220px;
    background-color: rgba(255, 255, 255, 0.75);
    color: black;
    gap: 8px;
    border-radius: 8px;
    box-shadow: 0 0 4px #ffffff50;
    padding: 4px 8px;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.tool:hover {
    background-color: rgb(255, 255, 255);
    transform: scale(1.02);
}

.tool img {
    pointer-events: none;
    display: inline-block;
    width: 48px;
}

.tool span {
    display: inline-block;
    font-size: 1.375rem;
    line-height: 1.27;
}

/* ******************** ABOUT SECTION - end ******************** */

/* ******************** SERVICES SECTION - START ******************** */
#services {
    position: relative;
    display: flex;
    justify-content: center;
}

.myServices {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 48px;
    row-gap: 24px;
}

/* Card Settings - Start */
.service {
    border: 4px solid black;
    background-color: white;
    color: black;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.service:hover {
    transform: scale(1.02);
    box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.25);
}

.service>h4 {
    color: black;
    display: flex;
    align-items: center;
    gap: 16px;
    text-shadow: none;
}

.service>h4+p {
    color: black;
}

.service>h4>img {
    width: 48px;
    pointer-events: none;
}

.service>h5 {
    text-shadow: none;
}

/* Card Settings - End */

/* Card Tools - Start */
.serviceTools {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.serviceTools>div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    background-color: rgba(0, 0, 0, 0.85);
    border: 2px solid black;
    border-radius: 8px;
    padding: 4px 16px;
    min-width: 120px;
    gap: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.serviceTools>div:hover {
    transform: scale(1.03);
    background-color: black;
}

.serviceTools img {
    width: 32px;
    pointer-events: none;
}

/* Card Tools - End */
/* ******************** SERVICES SECTION - END ******************** */

/* ******************** PROJECTS SECTION - START ******************** */
.projectsButton-wrapper {
    text-align: center;
}

.projectsButton {
    color: var(--projects-button-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1.5;
    letter-spacing: 0.15px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.projectsButton:hover {
    opacity: 0.8;
}

.projectsButton> :first-child {
    border-bottom: 1px solid var(--projectsButton-border-color);
}

.chevrons {
    position: relative;
    width: 24px;
    height: 24px;
}

.projectsButton>.chevrons img {
    position: absolute;
    filter: var(--svg-color);
    width: 24px;
    height: 24px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: transform .4s ease;
}

.projectsButton:hover .chevrons img:nth-child(1) {
    transform: translate(6px, -50%);
}

.projectsButton:hover .chevrons img:nth-child(2) {
    transform: translate(12px, -50%);
}

.projectsButton:hover .chevrons img:nth-child(3) {
    transform: translate(18px, -50%);
}
/* ******************** PROJECTS SECTION - END ******************** */

/* ******************** CONTACT SECTION - START ******************** */
#contact {
    position: relative;
    display: flex;
    justify-content: center;
}

#contactInfo {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.contactLinkWrapper {
    margin-bottom: 24px;
}

#info a img {
    display: inline-block;
    margin-right: 12px;
    width: 24px;
    transition: filter 0.3s ease;
}

#info a {
    color: white;
    text-shadow: 0px 0px 4px #0000006d;
    margin-top: 8px;
    display: flex;
    width: max-content;
    text-decoration: none;
    font-style: normal;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#info a:hover {
    opacity: 1;
}

#info a:active {
    color: white;
}

/* ******************** CONTACT SECTION - END ******************** */

/* ******************** MINI ME - START ******************** */
#characterContainer {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 300px;
    height: 300px;
    pointer-events: none;
    overflow: hidden;
}

#stick {
    z-index: 800;
    position: absolute;
    opacity: 1;
    width: 100px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0px;
}

#head {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    max-width: 70px;
    bottom: -68px;
    transition: bottom 0.8s ease, opacity 0.1s ease;
}

#body {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    max-width: 70px;
    bottom: -110px;
    transition: bottom 0.8s ease, opacity 0.5s ease;
}

#leftHand,
#rightHand {
    position: fixed;
    z-index: 1000;
    width: 24px;
    bottom: 4px;
    opacity: 0;
    transition: bottom 0.8s ease-out, opacity 0.8s ease;
    pointer-events: none;
}

#leftHand {
    left: calc(50% - 42px);
}

#rightHand {
    left: calc(50% + 18px);
}

.show-hands #leftHand,
.show-hands #rightHand {
    opacity: 1;
}

#characterContainer.show #body {
    opacity: 1;
    bottom: 0;
    transition-delay: 1s;
}

#characterContainer.show #head {
    opacity: 1;
    bottom: 36px;
    transition-delay: 1s;
}


#textBubble {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    background: #ffffff;
    border: 2px solid #333;
    border-radius: 16px;
    font-family: "Arial", sans-serif;
    font-size: 0.875rem;
    line-height: 1.43;
    color: #333;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1001;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes fadeAndShrink {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
}

.text-bubble-disappear {
    animation: fadeAndShrink 0.6s ease forwards;
}


.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.8s steps(1, end) infinite;
    vertical-align: bottom;
}

/* ******************** MINI ME - END ******************** */

@media (max-width: 767.98px),
(max-height: 588.99px) {
    /* header - start */
    #header-container {
        grid-template-columns: 1fr;
    }

    #header-right {
        display: none;
    }
    /* header - end */

    /* about - start */
    .tool {
        min-width: 180px;
    }
    /* about - end */
}