/* ---------- FONT ---------- */
@font-face {
    font-family: "Noe Display Bold";
    src: url("/assets/NoeDisplay-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: fallback;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 350px) {
    footer {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    .contact {
        position: absolute;
        bottom: 43px;
        padding: 0px 16px;
        background-color: white;
    }
}

/* ---------- ROOT ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    background-color: #f3f3f3;
}
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
body {
    max-width: 3840px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    font-family:
        "Cambria",
        "Constantia",
        "Times New Roman",
        serif;
    font-size: 1rem;
    border: 1px solid #e1e3e1;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ---------- HEADER ---------- */
header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #e1e3e1;
}
.logo {
    height: clamp(1rem, 0.9205rem + 0.3977vw, 1.875rem);
}

/* ---------- MAIN ---------- */
main {
    width: 100%;
    margin-bottom: 50px;
    padding: 0px 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(0.75rem, 0.5909rem + 0.7955vw, 2.5rem);
}
.thumbnail {
    width: auto;
    height: clamp(6.25rem, 4.2614rem + 9.9432vw, 28.125rem);
    object-fit: contain;
}
h1 {
    margin-top: 40px;
    margin-bottom: clamp(0.25rem, 0.1591rem + 0.4545vw, 1.25rem);
    color: #076b45;
    font-family: "Noe Display Bold", serif;
    font-weight: bold;
    font-size: clamp(1.25rem, 0.7955rem + 2.2727vw, 6.25rem);
}
p {
    color: #555555;
    text-align: center;
    white-space: pre-line;
}
.portfolio-link {
    z-index: 1;
    position: relative;
    display: inline-block;
    overflow: hidden;
    
    margin-top: clamp(1.5rem, 1.0682rem + 2.1591vw, 6.25rem);
    padding-top: clamp(0.25rem, 0.2273rem + 0.1136vw, 0.5rem);
    padding-bottom: clamp(0.3125rem, 0.2898rem + 0.1136vw, 0.5625rem);
    padding-left: clamp(1.5rem, 1.3636rem + 0.6818vw, 3rem);
    padding-right: clamp(1.5rem, 1.3636rem + 0.6818vw, 3rem);
    
    color: black;
    text-decoration: none;
    letter-spacing: .05em;
    font-size: clamp(0.75rem, 0.6364rem + 0.5682vw, 2rem);
    border: 1px solid black;
    
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1) 0s;
}
.portfolio-link:hover {
    color: white;
    text-shadow: none;
    border: 1px solid #076b45;
}
.portfolio-link:active {
    transform: scale(0.95);
}
.portfolio-link::before {
    z-index: -1;
    display: block;
    width: 0;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    content: '';
    background: #076b45;
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1) 0s;
}
.portfolio-link:hover::before {
    width: 100%;
    left: 0;
    right: auto;
}

/* ---------- FOOTER ---------- */
footer {
    position: relative;
    width: 100%;
    padding: 20px 0;
    gap: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #959595;
    font-size: clamp(0.75rem, 0.5909rem + 0.7955vw, 2.5rem);
    border-top: 1px solid #e1e3e1;
}
.contact {
    gap: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-info {
    width: auto;
    max-height: clamp(1.25rem, 0.5114rem + 3.6932vw, 9.375rem);
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #959595;
    transition: all 200ms ease;
}
.contact-info:active {
    transform: scale(0.95);
}
#github:hover {
    color: #00030c;
}
#linkedin:hover {
    color: #0063c2;
}
#facebook:hover {
    color: #1873eb;
}