/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Variables */
:root {
    --dark-green: #2A3F38;
    --green: #8DF688;
    --magenta: #F650BD;
    --purple: #562F54;
    --gray: #57585D;
    --white: #FFFFFF;
    --black: #111111;
    --display-font: "Playfair Display", Georgia, serif;
    --body-font: Arial, Helvetica, sans-serif;
    --header-height: 105px;
    --page-padding: clamp(20px, 4vw, 64px);
    --content-width: 1400px;
    --transition: 0.25s ease;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--dark-green);
    font-family: var(--body-font);
    line-height: 1.5;
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

/* Acessability */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    background: var(--green);
    color: var(--dark-green);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}

/* header */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    background: var(--purple);
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, var(--content-width));
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

/* site logo */

.site-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-logo img {
    width: auto;
    height: 78px;
    object-fit: contain;
    transition: transform var(--transition), opacity var(--transition);
}

.site-logo:hover img {
    transform: scale(1.05);
}

.site-logo:active img {
    transform: scale(0.98);
}

/* Navigation */
.site-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-nav_link {
    padding: 8px 4px;
    background: transparent;
    color: var(--magenta);
    font-size: clamp(0.8rem, 1.15vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color var(--transition), transform var(--transition);
}

.site-nav_link:hover {
    color: var(--green);
    transform: translateY(-2px);
}

#main-content {
    min-height: 100vh;
}

/* heros */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100svh;
    padding-top: var(--header-height);
    background: var(--dark-green);
    overflow: hidden;
}

.hero_video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero_overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(42, 63, 56, 0.12);
    pointer-events: none;
}

.hero_content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

.hero_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(3.5rem, 7.5vw, 8rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.04em;
}

.hero_tagline-top {
    display: block;
    color: var(--magenta);
    transition: color var(--transition), transform var(--transition);
}

.hero_tagline-top:hover {
    color: var(--green);
}

.hero_and {
    display: inline-block;
    color: var(--green);
    font-family: var(--display-font);
    font-size: 0.9em;
    font-style: italic;
    font-weight: 700;
    line-height: 0.95;
    transition: color var(--transition), transform var(--transition);
}

.hero_and:hover {
    color: var(--magenta);
    transform: rotate(-4deg) scale(1.06);
}

.hero_tagline-bottom {
    display: block;
    color: var(--green);
    transition: color var(--transition), transform var(--transition);
}

.hero_tagline-bottom:hover {
    color: var(--magenta);
}

.hero_links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-top: clamp(35px, 5vw, 64px);
}

.hero_link {
    padding: 8px 4px;
    background: transparent;
    color: var(--magenta);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color var(--transition), transform var(--transition);
}

.hero_link:nth-child(2) {
    color: var(--green);
}

.hero_link:hover {
    color: var(--green);
    transform: translateY(-3px);
}

.hero_link:nth-child(2):hover {
    color: var(--magenta);
}

/* panels */

.panel_works,
.panel_about {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    overflow-y: auto;
    background: var(--white);
    color: var(--dark-green);
    overscroll-behavior: contain;
}

.panel_content {
    width: min(100%, var(--content-width));
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(50px, 7vw, 100px) var(--page-padding)                 clamp(80px, 10vw, 150px);
}

.panel_header {
    max-width: 1000px;
    margin-bottom: clamp(42px, 6vw, 85px);
}

.panel_label {
    margin: 0 0 10px;
    color: var(--purple);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.panel_title {
    margin: 0;
    color: var(--magenta);
    font-family: var(--display-font);
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.035em;
    transition: color var(--transition);
}

.panel_title:hover {
    color: var(--green);
}

.panel_tagline {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--gray);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.project_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(60px, 7vw, 110px) clamp(35px, 5vw, 75px);
}

/* projects */
.project {
    min-width: 0;
}

.project_link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project_cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #ece8eb;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.project_link:hover .project_cover {
    transform: scale(1.015);
}

.project_content {
    padding-top: 20px;
}

.project_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--purple);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.project_title {
    margin: 16px 0 14px;
    color: var(--magenta);
    font-family: var(--display-font);
    font-size: clamp(2rem, 3vw, 3.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    transition: color var(--transition);
}

.project_link:hover .project_title {
    color: var(--green);
}

.project_desc {
    margin: 0;
    color: var(--dark-green); 
    font-size: 1rem;
    line-height: 1.7;
}

.project_button {
    display: inline-block;
    margin-top: 22px;
    color: var(--purple);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition: color var(--transition), transform var(--transition);
}

.project_link:hover .project_button {
    color: var(--green);
    transform: translateX(5px);
}

/* about */
.about_content {
    width: min(100%, 550px);
    margin-bottom: 40px;
}

#about_photo {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about_text {
    max-width: 900px;
    color: var(--dark-green);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.8;
}

.about_text p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

/* footer */
.site-footer {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: var(--header-height);
    padding: 20px var(--page-padding);
    background: var(--purple);
    color: var(--magenta);
}

.footer_content,
.footer_meta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer_brand,
.footer_meta p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer_meta {
    justify-content: flex-end;
}

.footer_meta a {
    color: var(--magenta);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.footer_meta a:hover {
    color: var(--green);
}

/* admin link */
.admin_link {
    color: var(--green) !important;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.admin_link:hover {
    color: var(--magenta) !important;
}

/* mobile fixes */
@media (max-width: 950px) {
    :root {
        --header-height: 95px;
    }

    .site-logo img {
        height: 66px;
    }

    .site-nav_link {
        font-size: 0.8rem;
    }

    .hero_title {
        font-size: clamp(3.25rem, 9vw, 6rem);
    }

    .project_grid {
        grid-template-columns: 1fr;
    }

    .project {
        max-width: 800px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .footer_meta {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 650px) {

    :root {
        --header-height: 88px;
        --page-padding: 20px;
    }

    .header-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-logo img {
        height: 55px;
    }

    .site-nav_link {
        max-width: 100px;
        padding: 6px 0;
        font-size: 0.67rem;
        line-height: 1.15;
        letter-spacing: 0.04em;
    }

    .hero {
        min-height: 100svh;
    }

    .hero_video {
        object-position: center;
    }

    .hero_content {
        width: calc(100% - 30px);
    }

    .hero_title {
        font-size: clamp(2.8rem, 14vw, 4.6rem);
        line-height: 0.95;
    }

    .hero_and {
        margin: 0.03em 0;
    }

    .hero_links {
        flex-direction: column;
        gap: 10px;
        margin-top: 34px;
    }

    .hero_link {
        font-size: 0.85rem;
    }

    .panel_content {
        padding-top: 45px;
    }

    .panel_title {
        font-size: clamp(2.6rem, 13vw, 4.5rem);
    }

    .project_meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .project_title {
        font-size: 2.5rem;
    }

    .about_content {
        max-width: 100%;
    }

    .about_text {
        font-size: 1rem;
    }

    .footer_content,
    .footer_meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

}

@media (max-width: 420px) {

    :root {
        --header-height: 82px;
    }

    .site-logo img {
        height: 48px;
    }

    .site-nav_link {
        max-width: 82px;
        font-size: 0.6rem;
    }

    .hero_title {
        font-size: clamp(2.5rem, 14vw, 3.7rem);
    }

}

/* motion reduce */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero_video {
        display: none;
    }

    .hero {
        background: var(--dark-green);
    }

}







