/* =========================================
   LAYOUT MODULES
   Header, Navigation, Main, Footer
   ========================================= */

/* Header */
/* Header container with absolute positioning */
header {
    grid-area: header;
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
}

@media (orientation: portrait) and (max-width: 768px) {
    header {
        justify-content: space-between;
    }
}

.mainPageButton {
    font-size: 1rem;
}

header span img {
    width: .5rem;
    position: relative;
    filter: hue-rotate(var(--hueRotation));
    text-shadow: 0 0 .5rem var(--flavorColor);
}

header button {
    display: flex;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Navigation */

nav {
    display: flex;
    gap: 1.5rem;
}

/* Animated underline for navigation links */
nav .hrline {
    margin-top: .2rem;
    height: .1rem;
    width: 0; 
    background-color: var(--flavorColor);
    border: 0;
    transition: all 0.3s ease-in-out;
    animation: renderLeftLine .3s ease-in-out;
}

nav button {
    font-size: 1rem;
    color: #000;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
    display: flex;
    cursor: pointer;
    flex-direction: column;
    background-color: transparent;
    border: none;
    
}

nav button:hover + .hrline {
    width: 100%;
    animation: renderLeftLine .3s ease-in-out;
    text-shadow: 0 0 .5rem var(--flavorColor);
}

nav button:hover {
    color: var(--flavorColor);
    text-shadow: 0 0 .5rem var(--flavorColor);
}

@media (orientation: portrait) and (max-width: 768px) {
    nav {
        display: none;
    }
}

.navButtons {
    margin-top: .5rem;
}

.options {
    display: flex;
    gap: 1rem;
}

.options svg {
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.options svg:hover {
    color: var(--flavorColor);
    filter: drop-shadow(0 0 .3rem var(--flavorColor));
}

.optionsButton {
    display: none;
}

@media (orientation: portrait) and (max-width: 768px) {
    .optionsButton {
        display: block;
    }
    
    .HomeButton, .AboutButton, .ProjectsButton, .ContactsButton, .TestimonialsButton {
        display: none;
    }
}

/* Popup projects list for mobile/options view */
.projectsList {
    display: none;
    flex-direction: column;
    background-color: #e9e9e9;
    border-radius: .5rem;
    padding: 1rem;
    gap: 1rem;
    position: absolute;
    top: 4.5rem;
    right: 2rem;
    animation: renderRight .3s ease-in-out;
    z-index: 1;
}

.projectsList button {
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #000;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.projectsList button:hover {
    color: var(--flavorColor);
    text-shadow: 0 0 .5rem var(--flavorColor);
}

/* Main */

/* Main container layout */
main {
    grid-area: main;
    height: fit-content;
    width: 100%;
    
}

/* Footer */

/* Main footer container layout */
footer {
    grid-area: footer;
    padding: 3rem 10%; 
    background-color: #e9e9e9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    gap: 3rem;
}

@media (orientation: portrait) and (max-width: 768px) {
    footer {
        width: 100%;
    }
}
.footerNavigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    width: 100%;
    gap: 2rem;
    flex-wrap: wrap; 
}

@media (orientation: portrait) and (max-width: 768px) {
    .footerNavigation {
        zoom: .8;
        justify-content: center;
    }
}
.footerColumn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.footerColumn p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: .1em solid var(--flavorColor);
    text-decoration: none; 
}

.footerNavigation p {
    text-decoration: none; 
}

.footerNavigation button {
    cursor: pointer;
    background-color: transparent;
    padding: 0;
    border: none;
    font-size: 1rem;
    text-align: left;
    color: #555; 
    transition: color 0.3s ease;
}

.footerNavigation button:hover {
    color: var(--flavorColor);
    background-color: transparent;
    text-shadow: 0 0 .5rem var(--flavorColor);
}

.footerNavigation button svg {
    display: block;
    transition: all 0.3s ease;
}

.footerNavigation button:hover svg {
    filter: drop-shadow(0 0 .3rem var(--flavorColor));
    color: var(--flavorColor);
}

.footerSocials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.footerSocials button {
    cursor: pointer;
    background-color: transparent;
    padding: 0;
    border: none;
    color: #555;
    transition: color 0.3s ease;
}

.footerSocials button:hover {
    color: var(--flavorColor);
    background-color: transparent;
}

.footerSocials button svg {
    display: block;
    transition: all 0.3s ease;
}

/* Social media buttons hover effect */
.footerSocials button:hover svg {
    filter: drop-shadow(0 0 .3rem var(--flavorColor));
    color: var(--flavorColor);
}

.footerCopyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #777;
    width: 100%;
    border-top: .1em solid var(--flavorColor); /* divider similar to some footers */
    padding-top: 1.5rem;
}

.madeBy {
    font-size: 0.8rem;
}
