
:root {
    font-size: 18px;
    font-family: "redaction", Arial, Helvetica, sans-serif;

    --primaryLight: #ffffff;
    --primaryDark: #1a1a1a;
    --accentRed: #ed1c24;
    --accentYellow: #f9ed32;
    --accentGreen: #009444;
    --accentBlue: #1c75bc;
}

* {
    margin: 0;
    padding: 0;
}

/* Font Styles */

.helvetica {
    font-family: Arial, Helvetica, sans-serif;
}

.redaction {
    font-family: "redaction", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.redaction-70 {
    font-family: "redaction-70", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Global Styles */

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    background-color: var(--primaryLight);
  }
  

header {
    width: 100vw;
    height: min(100px, 15vh);
    background-color: var(--primaryDark);

    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    display: flex;
    flex-direction: column;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

footer {
    padding: 4em 0;
    text-align: center;
    background-color: var(--primaryDark);
    color: var(--primaryLight);
}

#footer-info {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.left-column, .center-column, .right-column{
    padding: 0.25em 3em;
    gap: 0.5em;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* Navigation Section Layout Styles */

nav {
    width: 100%;
    padding: 0 1em;

    display: flex;
    align-items: center;
}

nav .logo {
    width: 3em;
    height: 3em;
    padding: 0;
    margin-right: auto;
}

nav a {
    width: auto;
    height: 2em;
    padding: 0.25em .75em;
    font-size: 1rem;
    text-decoration: none;
    color: var(--primaryLight);

    display: flex;
    align-items: center;
}

nav > a:nth-of-type(2), nav > a:nth-of-type(3), nav > a:nth-of-type(4) {
    display: none;
}

nav a:link, a:visited{
    font-family: "redaction-70", sans-serif;
}

nav a:hover {
    font-family: "redaction", sans-serif;
}

nav a.home-link:hover{
    background-color: var(--accentRed);
}

nav a.about-link:hover{
    background-color: var(--accentYellow);
    color: var(--primaryDark);
}

nav a.contact-link:hover{
    background-color: var(--accentGreen);
}

.ionicon {
    width: 2rem;
    height: 2rem;
    padding: .5em;
    fill: var(--primaryLight);
    stroke: var(--primaryLight);
}

.ionicon:hover {
    border-radius: 50%;
    background-color: var(--accentBlue);
}

/*
 _______           _______  _______  _        _______          
(  ___  )|\     /|(  ____ \(  ____ )( \      (  ___  )|\     /|
| (   ) || )   ( || (    \/| (    )|| (      | (   ) |( \   / )
| |   | || |   | || (__    | (____)|| |      | (___) | \ (_) / 
| |   | |( (   ) )|  __)   |     __)| |      |  ___  |  \   /  
| |   | | \ \_/ / | (      | (\ (   | |      | (   ) |   ) (   
| (___) |  \   /  | (____/\| ) \ \__| (____/\| )   ( |   | |   
(_______)   \_/   (_______/|/   \__/(_______/|/     \|   \_/  

*/

.overlay-menu {
    z-index: 10;
    opacity: 1;
    width: 100vw;
    height: 0vh;
    position: fixed;
    top: 0px;
    left: 0px;
    gap: 20px;
    font-size: 1.5rem;
    color: var(--primaryLight);
    background-color: var(--primaryDark);
    overflow: hidden;
    transition: .5s ease-in-out;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay-menu a {
    padding: 0.25em .75em;
    text-decoration: none;
    color: var(--primaryLight);
    font-family: "redaction-70", sans-serif;
}

.overlay-menu a:link, a:visited{
    font-family: "redaction-70", sans-serif;
}

.overlay-menu a:hover, a:active {
    font-family: "redaction", sans-serif;
}

.overlay-menu a.home-link:hover, .overlay-menu a.home-link:active{
    background-color: var(--accentRed);
}

.overlay-menu a.about-link:hover, .overlay-menu a.about-link:active{
    background-color: var(--accentYellow);
    color: var(--primaryDark);
}

.overlay-menu a.contact-link:hover, .overlay-menu a.contact-link:active{
    background-color: var(--accentGreen);
}

/* Carousel Layout Styles */

.carousel-container {
    width: 100vw;
    height: 2.5em;
    color: var(--primaryLight);

    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    padding-right: 1em;

    animation: carousel 12s linear infinite;
}

.carousel-card {
    height: 100%;
    white-space: nowrap;
}

/*
          _______  _______  _______      _______  _______  _______  _______ 
|\     /|(  ___  )(       )(  ____ \    (  ____ )(  ___  )(  ____ \(  ____ \
| )   ( || (   ) || () () || (    \/    | (    )|| (   ) || (    \/| (    \/
| (___) || |   | || || || || (__        | (____)|| (___) || |      | (__    
|  ___  || |   | || |(_)| ||  __)       |  _____)|  ___  || | ____ |  __)   
| (   ) || |   | || |   | || (          | (      | (   ) || | \_  )| (      
| )   ( || (___) || )   ( || (____/\    | )      | )   ( || (___) || (____/\
|/     \|(_______)|/     \|(_______/    |/       |/     \|(_______)(_______/
                                                                            

*/

#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero .preview {
    width: 100vw;
    height: 35vh;
    background-image: url(temp.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: .5em solid var(--primaryDark);
}

#project-container {
    padding: 3em;
    gap: 3em;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.project {
    width: 100%;
    height: auto;
}

.project img {
    display: block;
    aspect-ratio: 1/1;
}

/*
 _______  _______  _______ _________ _______  _______ _________     _______  _______  _______  _______ 
(  ____ )(  ____ )(  ___  )\__    _/(  ____ \(  ____ \\__   __/    (  ____ )(  ___  )(  ____ \(  ____ \
| (    )|| (    )|| (   ) |   )  (  | (    \/| (    \/   ) (       | (    )|| (   ) || (    \/| (    \/
| (____)|| (____)|| |   | |   |  |  | (__    | |         | |       | (____)|| (___) || |      | (__    
|  _____)|     __)| |   | |   |  |  |  __)   | |         | |       |  _____)|  ___  || | ____ |  __)   
| (      | (\ (   | |   | |   |  |  | (      | |         | |       | (      | (   ) || | \_  )| (      
| )      | ) \ \__| (___) ||\_)  )  | (____/\| (____/\   | |       | )      | )   ( || (___) || (____/\
|/       |/   \__/(_______)(____/   (_______/(_______/   )_(       |/       |/     \|(_______)(_______/
                                                                                                       
*/

#project-detail-container {
    padding: min(2em, 7%);
    gap: 2em;

    display: grid;
    grid-template-columns: 1fr;
}

.project-decription {
    display: flex;
}

.project-images {
    gap: 1em;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: dense;
}

.project-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.landscape {
    grid-column: span 3;
    grid-row: span 2;
}

.portrait {
    grid-column: span 2;
    grid-row: span 3;
}

.square {
    grid-column: span 2;
    grid-row: span 2;
}

/*
 _______  ______   _______          _________     _______  _______  _______  _______ 
(  ___  )(  ___ \ (  ___  )|\     /|\__   __/    (  ____ )(  ___  )(  ____ \(  ____ \
| (   ) || (   ) )| (   ) || )   ( |   ) (       | (    )|| (   ) || (    \/| (    \/
| (___) || (__/ / | |   | || |   | |   | |       | (____)|| (___) || |      | (__    
|  ___  ||  __ (  | |   | || |   | |   | |       |  _____)|  ___  || | ____ |  __)   
| (   ) || (  \ \ | |   | || |   | |   | |       | (      | (   ) || | \_  )| (      
| )   ( || )___) )| (___) || (___) |   | |       | )      | )   ( || (___) || (____/\
|/     \||/ \___/ (_______)(_______)   )_(       |/       |/     \|(_______)(_______/
                                                                                     
*/

#about {
    display: grid;
    grid-template-columns: 1fr 7fr 1fr;
}

#about .center-column {
    padding: min(2em, 7%) 0em;
    gap: 2em;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#about .center-column div {
    display: flex;
    justify-content: center;
}

#about .center-column img {
    width: 80%;
    height: auto;
    border-radius: 50%;
}

#about .center-column h1 {
    font-size: 3em;
}

/*
 _______  _______  _       _________ _______  _______ _________     _______  _______  _______  _______ 
(  ____ \(  ___  )( (    /|\__   __/(  ___  )(  ____ \\__   __/    (  ____ )(  ___  )(  ____ \(  ____ \
| (    \/| (   ) ||  \  ( |   ) (   | (   ) || (    \/   ) (       | (    )|| (   ) || (    \/| (    \/
| |      | |   | ||   \ | |   | |   | (___) || |         | |       | (____)|| (___) || |      | (__    
| |      | |   | || (\ \) |   | |   |  ___  || |         | |       |  _____)|  ___  || | ____ |  __)   
| |      | |   | || | \   |   | |   | (   ) || |         | |       | (      | (   ) || | \_  )| (      
| (____/\| (___) || )  \  |   | |   | )   ( || (____/\   | |       | )      | )   ( || (___) || (____/\
(_______/(_______)|/    )_)   )_(   |/     \|(_______/   )_(       |/       |/     \|(_______)(_______/
                                                                                                       
*/

#contact-page {
    display: grid;
    grid-template-columns: 1fr 5fr 1fr;
}

#contact-page h1 {
    text-align: center;
    font-size: 6em;
}

#contact-page p {
    font-size: 2em;
    padding: 0.5em 3em;
    margin-bottom: 2rem;
}

#contact-container {
    width: 100%;
    height: min(100px, 15%);
    font-size: 2em;
    padding: 0.5em 3em;
}

#email {
    position: relative;
    width: 35%;
    height: 3rem;
    padding: 0.5em;
    border: none;
    transform: skewX(10deg);
    background-color: var(--accentRed);
}

#email:hover {
    background-color: var(--accentGreen);
    color: var(--primaryLight);
}

#subject {
    position: relative;
    top: 5%;
    left: 65%;
    width: 30%;
    height: 3rem;
    padding: 0.5em;
    border: none;
    transform: rotate(10deg);
    background-color: var(--accentYellow);
}

#subject:hover {
    background-color: var(--accentBlue);
    color: var(--primaryLight);
}

#message {
    position: relative;
    width: 100%;
    height: max(10em, 12%);
    padding: 0.5em;
    border: none;
    background-color: var(--accentGreen);
}

#message:hover {
    background-color: var(--accentRed);
    color: var(--primaryLight);
}

#send-button {
    position: relative;
    width: 8rem;
    height: 8rem;
    padding: 0.5em;
    border: none;
    border-radius: 50%;
    background-color: var(--accentBlue);
}

#send-button:hover {
    background-color: var(--accentYellow);
    color: var(--primaryDark);
}
/* 
 _______  _       _________ _______  _______ __________________ _______  _       
(  ___  )( (    /|\__   __/(       )(  ___  )\__   __/\__   __/(  ___  )( (    /|
| (   ) ||  \  ( |   ) (   | () () || (   ) |   ) (      ) (   | (   ) ||  \  ( |
| (___) ||   \ | |   | |   | || || || (___) |   | |      | |   | |   | ||   \ | |
|  ___  || (\ \) |   | |   | |(_)| ||  ___  |   | |      | |   | |   | || (\ \) |
| (   ) || | \   |   | |   | |   | || (   ) |   | |      | |   | |   | || | \   |
| )   ( || )  \  |___) (___| )   ( || )   ( |   | |   ___) (___| (___) || )  \  |
|/     \||/    )_)\_______/|/     \||/     \|   )_(   \_______/(_______)|/    )_)
                                                                                 
*/

@keyframes carousel {
    from {transform: translateX(100%);}
    to {transform: translateX(0%);}
}

/* 
 _______  _______  _______  _______  _______  _        _______ _________          _______ 
(  ____ )(  ____ \(  ____ \(  ____ )(  ___  )( (    /|(  ____ \\__   __/|\     /|(  ____ \
| (    )|| (    \/| (    \/| (    )|| (   ) ||  \  ( || (    \/   ) (   | )   ( || (    \/
| (____)|| (__    | (_____ | (____)|| |   | ||   \ | || (_____    | |   | |   | || (__    
|     __)|  __)   (_____  )|  _____)| |   | || (\ \) |(_____  )   | |   ( (   ) )|  __)   
| (\ (   | (            ) || (      | |   | || | \   |      ) |   | |    \ \_/ / | (      
| ) \ \__| (____/\/\____) || )      | (___) || )  \  |/\____) |___) (___  \   /  | (____/\
|/   \__/(_______/\_______)|/       (_______)|/    )_)\_______)\_______/   \_/   (_______/
                                                                                          
*/

/* Tablet Layout Styles */

@media screen and (min-width: 768px) {
    #hero .preview {height: 60vh;}
    #overlay-open {display: none;}
    .center-column h1 {font-size: 4em;}
    nav > a:nth-of-type(2), nav > a:nth-of-type(3), nav > a:nth-of-type(4) {display: block;}
    #project-container {
        grid-template-columns: 1fr 1fr;
    }
    .project-images {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: auto;
        grid-auto-flow: dense;
    }
    #about {
        grid-template-columns: 1fr 5fr 1fr;
    }
    #footer-info {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Desktop Layout Styles */

@media screen and (min-width: 1024px) {
    .center-column h1 {font-size: 4em;}
    #hero .preview {height: 85vh;}
    #project-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
    #project-detail-container {
        grid-template-columns: 1fr 2fr;
    }
    .project-images {
        grid-template-columns: repeat(7, 1fr);
        grid-template-rows: auto;
        grid-auto-flow: dense;
    }
    #about {
        grid-template-columns: 1fr 3fr 1fr;
    }
    #footer-info {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
}