:root {
    --text-color: #fdfdff; 
    --background-color: #081c15;
    --link-color: #dad7cd ;
    --active-color: #a3b18a;
    --focus-color: #3e7eff;
    --hover-color: #a3b18a;

    --h1-text: 3rem;
    --h2-text: 2rem;
    --h3-text: 1.75rem;
    --h4-text: 1.25rem;

    --regular-text: 1.1rem;
    --small-text: .75rem;

}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--hover-color);
}

p {
    color: var(--text-color);
    font-size: var(--regular-text);
}


.page {
    padding: 20px;
    margin: 0 auto 10px auto;
    color: var(--text-color);
    width: 90%;
}

/* FOOTER */
footer {
    color: var(--text-color);
    padding: 10px;
    margin: 10px auto;
    text-align: center;
    font-size: var(--regular-text);
}


/* NAVBAR */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 50px;
    height: 100px;
}

nav .active {
    color: var(--active-color);
}

nav .left a {
    color: var(--link-color);
    font-size: var(--h2-text);
    font-weight: 600;
    transition: .3s;

}

nav .right a {
    color: var(--link-color);
    margin: 0 10px;
    transition: .1s;
    font-size: var(--h4-text);
}

nav .right a span {
    margin-left: 5px;
    padding: 5px 6px;
}

nav .left .initials {
    display: none;
}

nav .right a:active,
nav .left a:active {
    color: var(--active-color);
}

nav .right a:hover,
nav .left a:hover {
    color: var(--hover-color);
}


hr {
    width: 90%;
    border: 1px solid var(--text-color);
    margin: auto;
}

/* SECTION 1: Hero */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 100px;
    gap: 40px;
    color: var(--text-color);
}

.hero-section .text {
    text-align: center;
    color: var(--text-color);
}


.hero-section .text h2 {
    font-size: var(--h1-text);
}

/* SECTION 2: Skills */
.skills-section {
    padding: 0 50px;
    margin-bottom: 100px;
    color: var(--text-color);
    
}

.skills-section h2 {
    text-align: center;
    font-size: var(--h3-text);
}

.skills-section .text {
    text-align: center;
    margin-bottom: 20px;
}

.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.skills-section .cells .cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    
    width: 200px;
    padding: 10px 20px;
    margin: 10px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px; 
}

.skills-section .cells .cell span {
    font-size: var(--regular-text);
}

.skills-section .cells .cell img {
    width: 30px ;
    height: 30px ;
    object-fit: contain;
    border-radius: 2px;
}

/* SECTION 3: Projects */
.projects-section {
    padding: 0 50px;
    margin-bottom: 100px;
    color: var(--text-color);

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    gap: 40px;
}

.projects-section h2 {
    font-size: var(--h1-text);
    margin: 30px auto;
    
}

.projects-section .group {
    display: flex;
    align-items: center;
    gap: 50px;
}

.projects-section .group .person-details {
    text-align: center;
    flex: 2;
}

.projects-section .group .text {
    flex: 8;
}

.projects-section .group .person-details img {
    width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.projects-section .group .person-details p {
    font-weight: 600;
}

.projects-section .group .person-details p:last-child {
    font-weight: normal;
}

/* SECTION 4: Contact */

.contact-section {
    padding: 0 50px;
    margin-bottom: 100px;
    color: var(--text-color);

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    gap: 40px;
}

.contact-section input,
.contact-section textarea {
    color: var(--text-color);
}

.contact-section h2 {
    font-size: var(--h2-text);
    margin: 30px auto;
}

.contact-section .group {
    display: flex;
    gap: 50px;
}

.contact-section .group .text {
    flex: 3;
    margin-top: 20px;
}

.contact-section .group form {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--link-color);
    background-color: transparent;
    padding: 10px;
    margin-bottom: 15px;
    resize: vertical ;
}

.contact-section .group form button {
    font-size: var(--regular-text);
    font-family: 'Poppins', sans-serif;
    color: var(--background-color);
    background-color: var(--link-color);
    height: 50px;
    transition: .1s;
}

.contact-section .group form button:hover {
    filter:brightness(.8);
}

.contact-section .group form button:active {
    background-color: var(--active-color);
    color: var(--text-color);
}

/* SECTION 5: Photography*/


.photography h2,
.photography p:first-of-type,
.photography p:nth-of-type(2) {
    text-align: center;
}


.photography .box,
.photography .row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Box */

.box .image.fit img {
	border-radius: 3px;
    outline: 1px solid gray;
    margin: 5px;
}



@media (max-width: 850px) {
/* SECTION 1: Hero */
    .hero-section .text h2 {
        font-size: var(--h3-text);
    }
}

@media (max-width: 740px) {

/* NAVBAR */
nav {
        padding: 0 15px
    }
   
    nav .right a {
        font-size: var(--h4-text);
        margin: 0px;
    }

    nav .right a span {
        display: inline-block;
        justify-content: right;
    }
   


/* SECTION 1: Hero */
    .hero-section {
        flex-direction: column-reverse;
    }

    .hero-section .headshot img {
        width: 300px;
    }


/* SECTION 3: Projects */
    .projects-section {
        text-align: center;
    }

    .projects-section .group {
        flex-direction: column;
    }

/* SECTION 4: Contact */
    .contact-section .group {
        flex-direction: column;
    }

}

@media (max-width: 600px) {
/* NAVBAR */
    nav {
        padding: 0 15px
    }

    nav .left .full-name {
        display: none;
    }

    nav .left .initials {
        display: inline-block;
        padding: 0 10px 0 0;
    }
   
    nav .right a {
        font-size: var(--h4-text);
        margin: 0px;
    }

    nav .right a span {
        display: inline-block;
        justify-content: right;
    }
   

/* SECTION 1: Hero */

    .hero-section {
        padding: 0 20px;
    }

    .hero-section .text h2 {
        font-size: var(--h2-text);
    }

/* SECTION 2: Skills */
    
    .skills-section {
        padding: 0 20px;
    }

    .skills-section .cells .cell span {
        font-size: var(--regular-text);
    }

/* SECTION 3: Projects */
    .projects-section {
        padding: 0 20px;
}

/* SECTION 4: Contact */

    .contact-section {
        padding: 0 20px;
    }
}