/* HERO */

#hero {
    width: 100%;
    height: 80vh;
    padding-top: 56px;
    background: linear-gradient(135deg, #000000, #ffffff10);
    position: relative;
}

#hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: fit-content;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

@media (max-width: 800px) {
    #hero {
        height: 70vh;
    }

    #hero-content {
        width: 100%;
        white-space: initial;
        padding: 5rem;
        box-sizing: border-box;
        text-align: left;
        align-items: flex-start;
    }
}

#hero-title {
    font-size: 4rem;
    font-weight: 600;
    text-shadow: 0 0 48px rgba(255, 255, 255, 0.5);
}

#hero-sub {
    font-size: 1.5rem;
    font-weight: 400;
}

#hero-note {
    font-size: 0.7rem;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

/* CONTENT */

#content {
    min-width: 70%;
    width: 700px;
    margin: auto;
    box-sizing: border-box;
    padding: 1.5rem calc(max(2%, 2rem)) 4rem;
}

@media (max-width: 800px) {
    #content {
        width: 100%;
    }
}

h3 {
    font-size: 1.8rem;
    margin: 24px 0 12px;
    position: relative;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

h3 .timestamp {
    color: rgba(255, 255, 255, 0.5);
    font-size: .7em;
    margin-left: .5em;
}

/* PROJECTS */

#projects-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(275px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1300px) {
    #projects-container {
        grid-template-columns: repeat(2, minmax(275px, 1fr));
    }
}

@media (max-width: 650px) {
    #projects-container {
        grid-template-columns: minmax(275px, 1fr);
    }
}

.project-card {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: .5rem;
    overflow: hidden;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex: 1 0 auto;
    animation: project-card-loading-zoom 0.5s cubic-bezier(.4,.24,.16,1.4);
    height: min-content;
    font-size: 0.9rem;
}

@keyframes project-card-loading-zoom {
    0% {
        transform: scale(0.6) rotate(3deg);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.project-card:hover {
    transform: rotate(0.8deg) scale(1.025);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.4);
}

.project-card:active {
    box-shadow: 0 0 .5rem rgba(0, 0, 0, 0.2);
    transform: none;
}

.project-image {
    width: 35%;
    aspect-ratio: 10/12;
    height: min-content;
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: .5rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    object-fit: cover;
}

.project-info-container {
    margin: .4rem 1.2rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.project-name {
    display: flex;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    padding: .2em 0 .5em;
    margin-bottom: .5em;
    justify-content: space-between;
    align-items: flex-end;
    line-height: 1;
    /* flex-wrap: wrap; */
    gap: .1rem;
}

.project-desc {
    position: absolute;
}

.project-name .timestamp {
    color: rgba(255, 255, 255, 0.5);
    font-size: .7em;
    /* line-height: 1.2em; */
}

.project-in-progress {

}

#load-more-projects-button {
    display: none;
    width: 100%;
    margin-top: 1rem;
    border-radius: 1rem;
    height: 2.5rem;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: inherit;
}

@supports (grid-template-rows: masonry) {
    #load-more-projects-button {
        display: block;
        visibility: hidden;
    }
    
    #projects-container:has(> :nth-child(7)) ~ #load-more-projects-button {
        visibility: visible;
    }
}

/* FOOTER */

footer {
    background: linear-gradient(rgb(36, 36, 40), rgb(0, 0, 0));
    border-top: 4px solid var(--accent-color);
    text-align: center;
}

#dev-info {
    margin: 2rem 0 2rem;
    font-size: 1.1rem;
}

#dev-name {
    font-weight: 700;
    font-size: 1.3em;
    display: block;
}

#dev-role {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

#dev-tagline {
    font-weight: 600;
    color: #fff;
    display: block;
    margin-top: 1rem;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
}

#back-to-top {
    padding: .5rem 1.5rem;
    border-radius: .6rem;
    color: white;
    text-decoration: none;
    display: block;
    margin: auto;
    width: fit-content;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

#footer-footer {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: .9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

#footer-icons img {
    height: 1.6rem;
    width: auto;
}