* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* min-height: 100vh;  */
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #1C0F13 transparent; 
    scroll-behavior: smooth;
}

body {
    font-family: Degular, sans-serif;
    color: #1C0F13;
    background-color: #D9D8E0;
    padding: 0;
    display: flex; 
    flex-direction: column; 

    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.fade-in {
    opacity: 1;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: transparent; 
    border-left: 1px solid #1C0F13;
}

::-webkit-scrollbar-thumb {
    background-color: #1C0F13; 
    border-radius: 0; 
}

h1 {
    font-family: Olivetti;
    font-size: 4rem;
    color: #1C0F13;
}

a {
    color: #1C0F13;
}

a:hover { 
    color: #1C0F13;
}

a:visited{
    color: #1C0F13;
}

main {
    width: 100%;
    height: auto;
    padding-left: 50px;
}

.container {
    padding: 50px 0 0 0;
    width: 100%;
    border-left: 2px solid #1C0F13;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.title-section {
    width: 100%;
    height: auto;
    padding: 0 50px 0 0;
    margin: 0;
}

.title-section:after {
    content: '';
    position: absolute;
    width: 90%;
    left: 0;
    border-bottom: 2px solid #1C0F13;
    display: block;
}

.title-section h1 {
    padding-left: 1rem;
}

.content-section {
    /* max-width: 80%;
    min-height: 750px;
    padding: 50px 0 0 50px; */

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 90%;
    min-height: auto;
    padding: 50px 0 0 50px;
    box-sizing: border-box;
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    grid-column: 1;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    grid-column: 2;
}

section {
    padding: 0 0 5rem 0;
    min-height: 100vh;
    height: 100%;
    box-sizing: border-box;

    scroll-snap-align: start;
    scroll-margin-top: 50px;
}

section:last-of-type {
    padding-bottom: 0;
}


/*
    LOGO
*/
.content-section--center-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 0;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    transform: translateX(2rem);
}


/*
    MENUS
*/
.main-menu {
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.main-menu li {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-bottom: 5px;
}

.services-menu {
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.services-menu li {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-bottom: 5px;
}

.project-menu {
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.project-menu li {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-bottom: 5px;
}

.menu-square {
    width: 20px;
    height: 20px;
    border: 2px solid #1C0F13;
    background-color: transparent;
    transition: background-color 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
}

.menu-sections {
    position: absolute;
    right: 25px; 
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    color: #1C0F13;
    pointer-events: none;
    z-index: 1;
}

.main-menu li:hover .menu-sections {
    opacity: 1;
    transform: translateX(0);
}

.services-menu li:hover .menu-sections {
    opacity: 1;
    transform: translateX(0);
}

.project-menu li:hover .menu-sections {
    opacity: 1;
    transform: translateX(0);
}

.menu-square.active {
    background-color: #1C0F13;
}

li a.menu-square:not(.active):hover {
    background-color: #707070;
}



/*
    SUBSECTIONS
*/
.entry {
    padding-bottom: 1rem;
    font-family: Degular;
    overflow: hidden;
}

.entry:last-child {
    padding-bottom: 1.5rem;
}

.entry h2 {
    font-weight: 700;
    font-size: 2rem;
    line-height: 2rem;

    margin: 0;
    padding: 0 0 1rem 2rem;
    position: relative;
}

.entry h2::before {
    content: "»";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.entry h2 a{
    text-decoration: none;
}

.entry h2 a:hover {
    text-decoration: underline;
}

.entry p {
    font-weight: 200;
    font-size: 1.8rem;
    line-height: 2rem;

    margin: 0;
    padding: 0 0 0 2rem;
}

.proficiencies {
    padding: 25px;
    margin: 0;
    border: 1px solid black;
    border-radius: 4px;
    background-color: #e8e7f0;
}

/* .proficiencies h1{
    font-family: Degular;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2rem;
    margin: 0;
    padding-bottom: 10px;
} */

.proficiency-block h2{
    font-weight: 700;
    font-size: 1.3em;
    line-height: 1.3rem;
    margin: 0;
}

.proficiency-block p{
    font-weight: 200;
    font-size: 1.2rem;
    line-height: 1.2rem;
    margin: 0;
    padding: 0 0 1.5rem 0;
}


/*
    CONTACT FORM
*/
.contact-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: Degular;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #1C0F13;
    border-radius: 4px;
    font-family: Degular;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    background-color: #e8e7f0;
}

textarea {
    resize: vertical;
}

button[type="submit"] {
    padding: 0.75rem 1.5rem;
    font-family: Degular;
    font-weight: 700;
    font-size: 1rem;
    background-color: #e8e7f0;
    color: #1C0F13;
    border: 1px solid #1C0F13;
    border-radius: 4px;
    cursor: pointer;
    align-self: end
}

button[type="submit"]:hover {
    background-color: #1C0F13;
    color: #e8e7f0;
    border: 1px solid #1C0F13;
}

.form-status {
    margin-top: 1rem;
    font-weight: bold;
}

.address-info {
    margin: 0;
    padding: 0;
}

.address-info h2 {
    font-size: 2rem;
    line-height: 2rem;
}

.address-info p {
    font-weight: 200;
    font-size: 1.8rem;
    line-height: 2rem;
}


/*
    PROJECTS
*/
.gallery-section {
    max-width: 88%;
    min-height: 750px;
    padding: 50px 0 100px 50px;
}

.gallery-info {
    padding: 0 0 50px 0;
}

.dates, 
.location,
.credits,
.job, 
.description {
    font-family: Degular;
    font-weight: 200;
    font-size: 1.8rem;
    line-height: 2rem;    
}

.job {
    padding: 25px 0 0 0;
}

.credits {
    padding: 0 0 25px 0;
}

.description {
    padding-bottom: 50px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;

    padding: 0;
    margin: 0;
}

figure {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3; 
}

.image-container {
    width: 100%;
    height: 100%;
    border: 1px solid #1C0F13;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;

    background-color: rgba(217, 216, 224, 0.9);
    color: #1C0F13;
    font-family: Olivetti;
    font-weight: 200;
    font-size: 1.8rem;
    line-height: 2rem;

    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;

    display: flex;
    justify-content: left; 
    align-items: center; 
    text-align: left;
    border: 1px solid #1C0F13;
}

figure:hover .project-title {
    opacity: 1;
}

.projects img .hover-image {
    display: none;
}


/* 
    PROJECT
*/
.project-screen {
    padding-bottom: 25px;
    box-sizing: border-box;
    height: fit-content;
}

.project-screen iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; 
    border: none;
    display: block;
    background-color: #1C0F13;
}

.project-gallery ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-gallery.single-image ul {
    grid-template-columns: 1fr;
}

.project-gallery img:hover {
    border: 1px solid #1C0F13;
}

.image-item {
    position: relative;
    overflow: hidden;
}

.image-item a {
    display: block;
    position: relative;  
    overflow: hidden;  
}

.image-item img {
    display: block;
    width: 100%;
    height: auto;

    border: 1px solid #1C0F13;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    background-color: rgba(28, 15, 19, 0.5);
    color: #D9D8E0;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.3rem;
    white-space: nowrap;
    overflow-x: auto;
    transform: translateY(100%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.image-item:hover .image-caption {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.image-caption p {
    margin: 0;
    padding: 0;
    font-family: Degular;
    font-size: 0.75rem;
    white-space: normal;
}


/*** MOBILE ***/
@media (max-width: 960px){
    .title-section h1 {
        font-size: 3rem;
    }

    .content-section {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .content-left,
    .content-right {
            grid-column: 1;
    }

    .contact-form {
        padding-bottom: 1.2rem;
    }

    .address-info {
        padding-top: 0.8rem;
        border-top: 1px solid #1C0F13;
        text-align: right;
    }
    
    .address-info h2{
        font-size: 1.2rem;
        line-height: 1.2rem;
    }

    .address-info p{
        font-size: 1rem;
        line-height: 1rem;
    }

    .projects {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-section {
        width: 86%;
    }

    .project-gallery ul{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 600px){
    main {
        padding-left: 1.5rem;
    }

    section {
        scroll-margin-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .container {
        padding-top: 1.5rem;
    }

    .menu-sections {
        background-color: rgb(28, 15, 19);
        backdrop-filter: blur(10px);
        color: #D9D8E0;
        padding: 0px 5px;
        white-space: nowrap;
        transition: opacity 0.3s ease, transform 0.3s ease;
        font-size: 0.9rem;
        opacity: 0;
        transform: translateX(10px);
        pointer-events: auto;
        position: absolute;
        z-index: 10;
    }


    li a.menu-square:not(.active):hover {
        background-color: transparent;
    }

    .title-section h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-left {
        gap: 1.5rem;
    }

    .logo {
        width: 100%;
        height: auto;
        transform: translateX(1rem);
    }

    .entry {
        padding-bottom: 0;
    }

    .entry h2 {
        padding-left: 1.2rem;
    }

    .entry p {
        padding-left: 1.2rem;
    }

    .entry h2,
    .proficiencies h2 {
        font-size: 1.2rem;
        line-height: 1.5rem;
        padding-bottom: 0.5rem;
    }

    .entry p,
    .proficiencies p {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }

    .contact-form {
        padding: 0 1.2rem 0 1.2rem;
    }

    .projects {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .project-title {
        font-family: Degular;
        font-weight: 600;
        font-size: 1.2rem;
        line-height: 1.2rem;
    }

    .gallery-section {
        width: 86%;
        padding: 25px 0 50px 25px;
    }

    .gallery-info,
    .credits,
    .description {
        padding-bottom: 1rem;
    }

    .gallery-info p, 
    .description p,
    .credits {
        font-size: 1.3rem;
        line-height: 1.7rem;
    }

    .project-gallery ul{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding-top: 1.5rem;
    }


}
  

/*** FONTS ***/
@font-face {
    font-family: 'Olivetti';
    src: url('/assets/fonts/olivetti/Olivetti.ttf');
}

@font-face {
    font-family: 'Degular';
    src: url('/assets/fonts/degular-variable/DegularVariable.ttf');
}