.hero-container {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-container .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

.hero-container h1 {
    order: 2;
    font-size: 100px;
    margin: 8px 0 32px;
}

.hero-container h2 {
    order: 1;
    font-size: 40px;
    margin-bottom: 0;
    color: var(--color-text-white);
}

.hero-container .hero-buttons {
    display: flex;
    gap: 48px;
    order: 3;
}

.hero-lines-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    padding: 0 5%;
    pointer-events: none;
}

.left-line-group,
.right-line-group {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.left-line-group {
    left: 5%;
}

.right-line-group {
    right: 5%;
}

.green-hero-separator,
.white-hero-separator {
    width: 1px;
    height: 20dvh;
}

.green-hero-separator {
    background-color: var(--color-accent-green);
}

.white-hero-separator {
    background-color: var(--color-text-white);
}

.arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 48px;
    border: 1px solid var(--color-accent-green);
    border-radius: 24px;
    margin-bottom: 24px;
}

.arrow-container img {
    width: 18px;
    height: 18px;
    animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(4px);
    }
}

.contact-social-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.social-icon {
    display: inline-block;
    position: relative;
    width: 32px;
    height: 32px;
}

.social-icon img {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease-in-out;
}

.social-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/social_media/GitHub.svg') no-repeat center / contain;
    filter: brightness(0) invert(1);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.social-icon[href*="linkedin"]::after {
    background-image: url('../assets/img/social_media/Linkedin.svg');
}

.social-icon:hover img {
    opacity: 0;
}

.social-icon:hover::after {
    opacity: 1;
}

.rotated-email {
    font-family: 'Karla', sans-serif;
    font-size: 18px;
    color: var(--color-text-white);
    text-decoration: none;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.email-icon {
    display: none;
    width: 32px;
    height: 32px;
    transition: opacity 0.4s ease-in-out;
}

.rotated-email:hover {
    color: var(--color-accent-green);
}

.rotated-email::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    background: url('../assets/img/social_media/Mail.svg') no-repeat center / contain;
    filter: brightness(0) invert(1);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.ticker-text {
    position: absolute;
    bottom: 0px;
    left: -5%;
    width: 110vw;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(5.3px);
    -webkit-backdrop-filter: blur(5.3px);
    padding: 12px 0;
    font-size: 32px;
    text-transform: uppercase;
    color: var(--color-accent-green);
    transform: rotate(-3deg);
    transform-origin: left bottom;
    overflow: hidden;
    pointer-events: none;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll-ticker 15s linear infinite;
}

.ticker-track span {
    display: inline-block;
}

.ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

.ticker-dot {
    color: var(--color-accent-green);
    margin: 0 64px;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .hero-container h1 {
        font-size: 80px;
    }

    .hero-container h2 {
        font-size: 32px;
    }

    .hero-container .hero-buttons {
        gap: 36px;
    }

    .rotated-email {
        writing-mode: horizontal-tb;
        transform: none;
        width: 32px;
        height: 32px;
    }

    .email-text {
        display: none;
    }

    .email-icon {
        display: block;
    }

    .rotated-email:hover .email-icon {
        opacity: 0;
    }

    .rotated-email:hover::after {
        opacity: 1;
    }

    .ticker-text {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .hero-container .hero-buttons {
        margin-bottom: 100px;
    }

    .green-hero-separator {
        height: 130px;
    }

    .white-hero-separator {
        height: 90px;
    }

    .contact-social-group {
        gap: 16px;
        margin-bottom: 8px;
    }

    .arrow-container {
        margin-bottom: 8px;
    }
}

@media (max-width: 500px) {
    .hero-container h1 {
        font-size: 60px;
    }

    .hero-container h2 {
        font-size: 24px;
    }

    .hero-container .hero-buttons {
        gap: 16px;
    }

    .skills-and-contact-btn {
        padding: 8px 16px;
    }
}

@media (max-width: 370px) {
    .hero-container .hero-buttons {
        gap: 12px;
    }

    .skills-and-contact-btn {
        padding: 4px 6px;
    }
}

@media (max-height: 680px) {
    .hero-container .hero-buttons {
        margin-bottom: 120px;
    }

    .contact-social-group {
        gap: 12px;
        margin-bottom: 6px;
    }
}