/* HERO SECTION */
.hero {
    height: 105vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--primary-bg);
    /* background-image: var(--gradient-bg-dots); */
    text-align: left;
    position: relative;
    opacity: 1;
}

.hero-greeting {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 5px;
    /* text-transform: uppercase; */
    letter-spacing: 2px;
    padding-left: 5%;
    z-index: 20;
}

/* STATIC NAME & ID CARD LANYARD */
.static-name {
    font-family: var(--font-name);
    font-size: 160px;
    line-height: 1;
    color: var(--text-dark);
    letter-spacing: -6px;
    text-shadow: 2px 2px 15px var(--rgba-white-10);
    margin-bottom: 20px;
    padding-left: 5%;
    z-index: 5;
    position: relative;
}

.hang-wrapper {
    position: relative;
    display: inline-block;
    z-index: 5;
}

.hang-target {
    position: relative;
    display: inline-block;
    z-index: 5;
    /* Sit above the loop graphic */
}

.lanyard-loop {
    position: absolute;
    top: 17%;
    left: 75%;
    transform: translateX(-50%);
    width: 28px;
    height: 40px;
    background-color: var(--color-lanyard);
    border-radius: 8px 8px 18px 18px;
    box-shadow: inset 0 -4px 8px var(--rgba-black-30), 0 5px 10px var(--rgba-black-50);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.lanyard-container {
    --scale: 1;
    position: absolute;
    top: 18%;
    left: 80%;
    transform: translateX(-50%) scale(var(--scale));
    transform-origin: top center;
    animation: swing 3s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
    z-index: -1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    /* Hidden initially, controlled by loader animation */
}

.lanyard-string {
    width: 28px;
    height: 150px;
    background: var(--gradient-lanyard);
    border-radius: 10px 10px 0 0;
    box-shadow: inset 0 0 4px var(--rgba-black-10), 2px 2px 6px var(--rgba-black-50);
    z-index: 3;
    margin-left: -6px;
    position: relative;
    padding-top: 15px;
}

.id-card {
    width: 200px !important;
    height: auto;
    margin-top: -7px;
    filter: drop-shadow(0 15px 25px var(--rgba-black-40));
    will-change: filter, transform;
    transform: translateZ(0);
    z-index: 3;
}

@keyframes swing {
    0% {
        transform: translateX(-50%) scale(var(--scale)) rotate(6deg);
    }

    100% {
        transform: translateX(-50%) scale(var(--scale)) rotate(-6deg);
    }
}

.hero-pronunciation {
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: 4px;
    line-height: 1.5;
    transition: opacity 0.5s;
    padding-left: 5%;
    z-index: 20;
}

.about-subtitle {
    font-size: 25px;
    font-weight: 700;
    color: var(--text-dark);
    z-index: 20;
}

.hero-subtitle img {
    height: 28px;
    object-fit: contain;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 5%;
}

/* BANNER IMAGE */
.banner-image {
    position: absolute;
    bottom: 0;
    right: -3%;
    height: 105vh;
    max-width: 65vw;
    object-fit: contain;
    object-position: bottom right;
    z-index: 100;
    pointer-events: none;
}

/* SKILL ICONS */
.skill-icons-layer {
    position: absolute;
    top: 0;
    left: 10%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
}

.skill-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translate(calc(50vw - 30px), calc(100vh + 100px));
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.skill-icon.floating {
    transition: none !important;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px var(--rgba-black-10));
    will-change: filter, transform;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.skill-icon:hover {
    z-index: 30 !important;
}

.skill-icon:hover img {
    transform: scale(1.2);
    animation: imgWiggle 0.6s ease-in-out infinite alternate !important;
}

@keyframes imgWiggle {
    0% {
        transform: scale(1.2) rotate(-10deg);
    }

    100% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
    opacity: 0.7;
    animation: bounceUpDown 2s infinite ease-in-out;
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-arrow {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

@keyframes bounceUpDown {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}
