* {
    box-sizing: border-box;
    background-color: black;
    color: aliceblue;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 100px;
    z-index: 20;
    background-color: rgb(0 0 0 / 80%);
    backdrop-filter: blur(6px);
}

header h1 a {
    font-family: 'Monoton', cursive;
    font-size: 3rem;
    margin-left: 20px;
    background-color: transparent;
    text-decoration: none;
}

header h1 {
    background-color: transparent;
}

.header_title,
nav {
    display: inline-block;
}

nav ul {
    display: flex;
    flex-direction: row;
}

header li {
    margin: 0 10px;
    font-family: 'Unbounded', cursive;
    list-style: none;
}

header li a {
    text-decoration: none;
    font-size: 1rem;
    position: relative;
}

header:before {
    position: absolute;
    content: "";
    top: -100%;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(0deg, rgb(0 0 0 / 0%) 51%, rgb(83 82 82) 92%, rgb(98 98 98) 100%);
    transition: all 1s ease;
}

header:hover:before {
    top: 0;
}

.hover_an::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: cyan;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover_an:hover {
    color: cyan;
}

.hover_an:hover::after {
    color: cyan;
    transform: scaleX(1);
    transform-origin: bottom center;
}

main {
    width: min(1300px, 92%);
    margin: 0 auto;
    padding-top: 155px;
}

.title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-family: 'Monoton', cursive;
    width: fit-content;
    margin-bottom: 65px;
}

.section-card {
    border: 1px solid rgb(120 120 120 / 25%);
    background: linear-gradient(160deg, rgb(20 20 20), rgb(8 8 8));
    border-radius: 16px;
    margin-bottom: 10px;
    padding: 26px;
}

.section-card * {
    background-color: transparent;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.hero-text h2,
.skills-strip h2 {
    font-family: 'Unbounded', cursive;
    font-size: clamp(1.2rem, 3.5vw, 2rem);
    margin-bottom: 14px;
    text-decoration: underline overline;
}

.hero-text p,
.timeline-item p,
.hero li,
.skills-strip li {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: justify;
}

.hero-media {
    display: grid;
}

.hero-media .media-placeholder {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.media-placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}



.media-placeholder {
    border: 1px dashed rgb(240 248 255 / 35%);
    border-radius: 12px;
    min-height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    padding: 14px;
    text-align: center;
}

.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.timeline-item {
    border: 1px solid rgb(240 248 255 / 15%);
    border-radius: 12px;
    padding: 18px;
}

.timeline-item h3 {
    font-family: 'Unbounded', cursive;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.timeline-item .media-placeholder {
    margin-top: 15px;
    min-height: 165px;
}

.logos {
    width: 100%;
    margin: 22px auto 36px;
    overflow: hidden;
}

.logo_tec {
    width: 100%;
    border: 1px dashed rgb(240 248 255 / 35%);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}

.logo_tec img {
    display: block;
    width: min(100%, 280px);
    max-height: 90px;
    height: auto;
    object-fit: contain;
    flex: 1 1 220px;
}

.skills-strip ul {
    list-style-position: inside;
    display: grid;
    gap: 10px;
}

footer {
    width: 100%;
    margin-top: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid antiquewhite;
}

footer .basic_menu {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 150px;
    align-items: start;
    margin-top: 50px;
}

footer .small_logo h1 a {
    font-family: 'Monoton', cursive;
    font-size: 3rem;
    text-decoration: none;
}

.basic_menu .basic_menu_list {
    position: absolute;
    left: 150px;
    text-decoration: none;
    list-style: none;
    font-size: 1.3rem;
    font-family: 'Quicksand', sans-serif;
    line-height: normal;
}

.basic_menu .email_contact {
    position: absolute;
    right: 150px;
    text-decoration: none;
    font-size: 1.3rem;
    font-family: 'Quicksand', sans-serif;
}

footer .contact_info {
    display: flex;
}

footer .contact_info img {
    width: 80px;
    margin-left: 100px;
    margin-right: 100px;
    margin-bottom: 50px;
}

footer a {
    text-decoration: none;
}

footer .mobile_footer {
    display: none;
}

header li:hover,
.basic_menu_list li a:hover,
.email_contact a:hover {
    color: aqua;
    cursor: pointer;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 21;
    top: 0;
    left: 0;
    background-color: rgb(0 0 0 / 90%);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    font-family: 'Quicksand', sans-serif;
    background-color: transparent;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: aliceblue;
    display: block;
    transition: 0.3s;
    background-color: transparent;
}

.overlay a:hover,
.overlay a:focus {
    color: aqua;
}

.overlay .closebtn,
.overlay .closebtn_ed {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide-right {
    transform: translateX(10%);
    opacity: 0;
    transition: 0.9s;
}

.slide-left {
    transform: translateX(-10%);
    opacity: 0;
    transition: 0.9s;
}

@media only screen and (max-width: 900px) {
    header {
        position: relative;
    }

    main {
        padding-top: 50px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .logo_tec {
        gap: 14px;
        padding: 12px;
    }

    .logo_tec img {
        width: min(100%, 220px);
        max-height: 70px;
        flex-basis: 170px;
    }

    .basic_menu {
        display: none;
    }

    footer .mobile_footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-family: 'Quicksand', sans-serif;
        list-style: none;
        width: 100%;
        margin-top: 20px;
    }

    footer .mobile_footer .basic_menu_list {
        position: static;
        font-size: 1.1rem;
        text-align: center;
        margin: 10px auto;
    }

    footer .mobile_footer li {
        list-style: none;
        margin-bottom: 6px;
    }

    footer .mobile_footer .email_contact {
        position: static;
        margin-bottom: 10px;
    }

    footer .contact_info {
        width: 100%;
        justify-content: center;
    }

    footer .contact_info img {
        width: 65px;
        margin: 25px;
    }
}
