/* ============================================================================================================
                                                
                                                RESET/NORMALIZE

===============================================================================================================*/

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

button {
    border: none;
    background-color: transparent;
    color: currentColor;
    font-family: inherit;
}

a,
a:visited {
    color: currentColor;
    text-decoration: none;
}

/* ============================================================================================================
                                                
                                                VARIABLES

===============================================================================================================*/

:root {
    --dark-blue: #163746;
    --blue: #1f6585;
    --green: #5C8F21;
    --red: #BF1717;
    --orange: #e09407;
    --dark-orange: #B34700	;
    --yellow: #D4A200;
    --white: #edeff0;
    --grey: #696969;
}

/* ============================================================================================================
                                                
                                                UTILITY CLASSES

===============================================================================================================*/

.hidden {
    display: none;
}

.break-word {
  display: inline;
}

/* ============================================================================================================
                                                
                                            PAGE LAYOUT

===============================================================================================================*/

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: calc(var(--vh, 1vh) * 100);
}

main {
    flex: 1 0 auto;
    width: 80%;
    margin: 0 auto;
}

h1,
h2,
.photo-overlay p,
.cta,
.pop-up-p {
    text-align: center;
}

header,
footer,
nav,
main,
.bio-img-container,
.about-button-container,
.send-button-container,
.contact ul,
.contact-form-wrapper,
.contact-links-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header,
nav,
.about-button,
.contact ul {
        flex-direction: row;
}

/* ============================================================================================================
                                                
                                            GENERAL STYLING

===============================================================================================================*/

.home-link,
.about-button,
.nav-link,
.photo-overlay a,
form,
#send-button,
footer p {
    font-weight: 600;
}

p {
    font-weight: 500;
}

/* ============================================================================================================
                                                
                                        TRANSITIONS/INTERACTIONS

===============================================================================================================*/

body {
    transition: background-color 0.3s ease, color 0.3s ease, opacity .5s ease;
}

:focus-visible,
#logo-link:focus-visible,
nav ul li:has(.nav-link:focus-visible) {
    outline: 4px solid var(--orange);
    border-radius: 5px;
    outline-offset: 3px;
}

.nav-link:focus-visible {
    outline: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

.home-link:hover,
.home-link:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
#resume-link:hover,
#resume-link:focus-visible,
#techdegree-link:hover,
#techdegree-link:focus-visible {
    text-decoration: none;
}

button,
a,
.modal-close-icon,
.project-container {
    cursor: pointer;
}

#pop-up-div .modal-close-button:hover,
#pop-up-div .modal-close-button:focus-visible,
.home-link-wrapper:hover,
.home-link-wrapper:focus-visible,
#nav-close-button:hover,
#nav-close-button:focus-visible,
.header-button:hover,
.header-button:focus-visible,
#send-button:hover,
#send-button:focus-visible {
    transform: scale(1.3);
}

.project-link:hover,
.project-link:focus-visible,
.about-button-wrapper:hover,
.about-button-wrapper:focus-visible {
    transform: scale(1.1);
}

.light #logo-link:hover #logo-container,
.light #logo-link:focus-visible #logo-container {
    background-image: url('/images/icons/logo-light-hover.png');
}

.dark #logo-link:hover #logo-container,
.dark #logo-link:focus-visible #logo-container {
    background-image: url('/images/icons/logo-dark-hover.png');
}

/* ============================================================================================================
                                                
                                            THEME TOGGLE

===============================================================================================================*/

.light {
    background-color: var(--white);
    color: var(--dark-blue);
    --fill: var(--dark-blue);
    --hover-fill:var(--dark-orange);
}

.dark {
    background-color: var(--dark-blue);
    color: var(--white);
    --fill: var(--white);
    --hover-fill: var(--yellow);
}

.dark .modal-close-button {
    color: var(--dark-blue);
}

.light .modal-close-button {
    color: var(--white);
}

button,
.home-link-wrapper,
.header-right {
  visibility: hidden;
}

.theme-ready button,
.theme-ready .home-link-wrapper,
.theme-ready .header-right {
  visibility: visible;
}

.dark button {
    color: var(--white);
}

.light button {
    color: var(--dark-blue);
}

.light .pop-up-box {
    background-color: var(--dark-blue);
    color: var(--white);
}

.dark .pop-up-box {
    background-color: var(--white);
    color: var(--dark-blue);
}

.light a:hover,
.light a:focus-visible,
.light nav ul li:hover,
.light nav ul li:focus,
.light nav ul li:focus-visible {
    text-decoration-color: var(--dark-orange);
    color: var(--dark-orange);
}

.dark a:hover,
.dark a:focus-visible,
.dark nav ul li:hover,
.dark nav ul li:focus,
.dark nav ul li:focus-visible {
    text-decoration-color: var(--yellow);
    color: var(--yellow);
}

.light nav {
    background-color: var(--white);
}

.dark nav {
    background-color: var(--dark-blue);
}

/* .light.nav-link:before {
    background-color: var(--yellow);
}

.dark.nav-link:before {
    background-color: var(--yellow)
} */

.dark .photo-overlay a:hover,
.dark .photo-overlay a:focus-visible {
    background-color: var(--yellow);
    color: var(--white);
}

.light .photo-overlay a:hover,
.light .photo-overlay a:focus-visible {
    background-color: var(--dark-orange);
    color: var(--white);
}

.contact-icon-container:hover .contact-icon,
.contact-icon-container:focus-visible .contact-icon {
    fill: var(--hover-fill);
}

.light #logo-container {
    background-image: url('/images/icons/logo-light.png');
}

.dark #logo-container {
    background-image: url('/images/icons/logo-dark.png');
}

/* ============================================================================================================
                                                
                                            FONT TOGGLE

===============================================================================================================*/

body.roboto {
    font-family: 'Roboto', serif;
}

body.quicksand {
    font-family: 'Quicksand', sans-serif;
}

/* ============================================================================================================
                                                
                                        RESPONSIVE FONT-SIZING

===============================================================================================================*/

h1 {
    font-size: clamp(2rem, 3.9vw, 2.5rem);
}

p {
    font-size: clamp(.9rem, 2.3vw, 1.25rem);
}

footer p {
    font-size: clamp(0.75rem, 1.6vw, 1rem);
}

nav li {
    font-size: clamp(2rem, 4.7vw, 3rem);
}

.header-icon {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.home h1 {
    font-size: clamp(1.3rem, 3.5vw, 2.25rem);
}

#full-name {
    font-size: clamp(1.75rem, 4.7vw, 3rem);
}

#nickname {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
}

.home h2 {
    font-size: clamp(1.1rem, 2.8vw, 1.8rem);
}

.about-button,
.home-link {
    font-size: clamp(1.2rem, 3vw, 1.9rem);
}

.photo-overlay h2 {
    font-size: clamp(1.3rem, 2.3vw, 1.5rem);
}

.photo-overlay a {
    font-size: clamp(1rem, 1.9vw , 1.2rem);
}
.photo-overlay p {
    font-size: clamp(.9rem, 1.7vw, 1.1rem);
}

.pop-up-p {
    font-size: .9rem;
    font-weight: 400;
}

.modal-close-icon {
    font-size: 20px;
    padding: 10px;
}

/* ============================================================================================================
                                                
                                        HEADER/FOOTER STYLING

===============================================================================================================*/

header,
footer {
    padding: 6vh 6vw;
}

footer {
    flex-direction: column;
}

.header-left,
.header-right {
    width: 50%;
}

.header-left {
    float: left;
}

.header-right {
    float: right;
}

.header-right ul {
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
    align-items: center;
}

.toggle-button {
    margin-right: 30px;
}

#logo-link,
#logo-container {
    width: 50px;
    height: 50px;
}

#logo-container {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease;
}

.home #logo-link {
  pointer-events: none;
  cursor: default;
}

#logo-link {
    display: inline-block;
    height: 100%;
    width: 100%;
}

.header-button {
    height: 22px;
    width: fit-content;
}

#compass-icon {
    display: none;
}

/* ============================================================================================================
                                                
                                            NAV STYLING

===============================================================================================================*/

nav {
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: fixed;
    inset: 0;
    z-index: 2;
}

.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-open {
    overflow: hidden;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding-right: 25vw;
    justify-content: space-evenly;
    height: 75%;
}

.nav-link {
    /* transition: border .25s ease; */
    display: inline-block;
    position: relative;
    padding-bottom: 7px;
}

/* .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 6px;
    transition: width .25s ease-out;
} */

.nav-icon {
    color: currentColor;
}

#nav-close-button {
    position: absolute;
    top: 10%;
    right: 10%;
}

/* ============================================================================================================
                                                
                                       HOME PAGE STYLING

===============================================================================================================*/

.name {
    letter-spacing: 1px;
}

.home h2 {
    border-top: 2px dashed currentColor;
    border-bottom: 2px dashed currentColor;
    padding: 5px;
    width: fit-content;
}

.home h2 {
    margin: 5px 0 7px;
}

.home-links-container {
    display: flex;
    justify-content: space-between;
    width: fit-content;
    flex-direction: column;
}

.home-link-wrapper:first-of-type {
    margin: 10px 0px;
}

.info-icon,
.arrow-icon {
    margin-right: 10px;
}

.resume-icon,
.new-window-icon {
    margin-right: 5px;
}

/* ============================================================================================================
                                                
                                            ABOUT PAGE STYLING

===============================================================================================================*/

.about-wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.bio-img-container,
.bio-div {
    margin: 0 auto;
}

.bio-img-container {
    padding: 20px 0px;
}

.about-text {
    margin: 25px 0;
}

.about-text p {
    text-indent: 10%;
}

.message-link,
.treehouse-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-button-container {
    align-items: flex-start;
    margin: 30px auto;
}

.about-button-wrapper:not(:last-of-type) {
    margin-bottom: 10px;
}

.about-button {
    display: flex;
    align-items: center;
}

#bio-img {
    width: 100%;
    border-radius: 20px;
    max-width: 350px;
}

#message-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================================================================
                                                
                                        ABOUT PAGE -- POP UP BOX

===============================================================================================================*/

#pop-up-div {
    width: 0;
    height: 0;
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 1000;
}

.pop-up-box h2 {
    margin: 10px 0px 30px;
}

.pop-up-box {
    border: none;
    position: relative;
    padding: 25px;
    z-index: 3;
    width: 80vw;
    max-width: 300px;
    height: fit-content;
    box-shadow: 2px 2px 10px var(--grey), -2px -2px 10px var(--grey), 2px -2px 10px var(--grey), -2px 2px 10px var(--grey);
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    overflow: auto;
    max-height: 70vh;
    overscroll-behavior: none;
    scrollbar-width: thin;
}

.modal-close-button {
    background-color: transparent;
    border: none;
    position: absolute;
    top: 10px;
    right: 10px;
}
 
#education li {
    line-height: 1.2;
}

#education li:not(:last-of-type) {
    margin-bottom: 1rem;
}

.pop-up-box ul {
    text-align: left;
    margin: 0 auto;
    padding-left: 20px;
    margin-bottom: 30px;
}

.sublist {
    list-style-type: none;
}

.sublist-level-2 {
    list-style-type: disclosure-closed;
    margin-left: 40px;
    margin-top: -30px;
}

.sublist-container {
    list-style-type: none;
}

#skills ul li > ul {
    list-style-type: none;
    padding-left: 5px;
    margin-top: 0.25rem;
}

#skills .sublist li::before {
    content: '-';
    color: var(--grey);
}

.pop-up-box p {
    margin: 30px 0px;
}

/* ============================================================================================================
                                                
                                            WORK PAGE

===============================================================================================================*/

.work {
    width: 90%;
}

.work-wrapper {
    width: 100%;
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 350px));
    grid-gap: 20px 20px;
    justify-content: center;
    align-content: center;
    grid-auto-flow: dense;
    padding: 50px 0;
}

.project-container:focus-visible,
.project-container img,
.photo-overlay {
    border-radius: 6px;
}

.project-container img {
    display: block;
    width: 100%;
    height: auto;
}

.project-container {
	position: relative;
    margin: 0 auto;
    display: inline-block;
    border: 2px solid var(--dark-blue);
    border-radius: 10px;
}

.project-container .photo-overlay {
	color: var(--white);
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0; 
	left: 0;
    display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	background: rgba(0, 0, 0, .8); 
    opacity: 0;
    visibility: hidden;
    transition: .3s opacity ease;
    padding: 10px;
    pointer-events: none;
}

.project-container.hover .photo-overlay,
.project-container.focused .photo-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.photo-overlay a {
    color: var(--white);
    background-color: var(--grey);
    border-radius: 5px;
    padding: 2px 8px;
    transition: transform .2s ease, background-color .2s ease;
    text-decoration: none;
    display: inline-block;
}

.photo-overlay h2 {
    margin: 0;
}


.cta {
    margin: 0px auto;
}

.cta a {
    text-underline-offset: 5px;
    text-decoration: underline;
}

/* ============================================================================================================
                                                
                                            CONTACT PAGE

===============================================================================================================*/

.contact-form-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 0 15px;
}

textarea {
    width: 100%;
}

input,
textarea {
    padding: 6px 35px 6px 6px;
    font-family: inherit;
    color: var(--dark-blue);
    width: 100%;
    font-weight: inherit;
    font-size: inherit;
    border-radius: 5px;
    border: 3px solid var(--blue);
}

.contact-links-wrapper {
    margin: 25px 0;
}

.contact ul {
    list-style-type: none;
}

.contact svg {
    height: 40px;
    width: 50px;
    transition: transform .25s ease, opacity .25s ease;
}

.contact-icon-container {
    height: 100%;
    width: 100%;
    display: block;
}

.contact-icon {
    fill: var(--fill);
    transition: fill 0.2s ease-in-out;
}

form {
    width: 100%;
}

.form {
    padding: 30px 15px;
    background-color: var(--blue);
    color: var(--white);
    border-radius: 5px;
    letter-spacing: .5px;
    padding: 25px 15px;
}

.form-control {
    margin-bottom: 25px;
    position: relative;
}

.form-control label {
    display: inline-block;
    margin-bottom: 5px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.form-control textarea::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.form-control textarea {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.form-control i {
    position: absolute;
    top: 34px;
    right: 8px;
    visibility: hidden;
}

.form-control small {
    position: absolute;
    bottom: -17px;
    right: 0px;
    visibility: hidden;
    font-size: 12px;
    color: var(--white);
}

#send-button {
    margin: 5px auto;
    padding: 5px 40px;
    background-color: var(--dark-blue);
    color: var(--white);
    border-radius: 5px;
    font-size: 1rem;
    transition: all .25s ease;
}

#send-button:hover,
#send-button:focus {
    background-color: var(--green);
}

.success input,
.success textarea {
	border-color: var(--green);
}

.error input,
.error textarea {
	border-color: var(--red);
}
.success i.fa-solid.fa-circle-check {
	color: var(--green);
	visibility: visible;
}

.error i.fa-solid.fa-circle-exclamation {
	color: var(--red);
	visibility: visible;
}

.form-control.error small {
	visibility: visible;
}

/* ============================================================================================================
                                                
                                            MEDIA QUERIES

===============================================================================================================*/
/* @media (hover: hover) and (pointer: fine) {
    .nav-link:hover::before,
    .nav-link:focus::before {
        width: 100%;
    }
} */

@media (max-width: 600px) {
  .break-word {
    display: block;
  }
}

@media screen and (min-width: 768px) {
    #hamburger-icon {
        display: none;
    }

    #compass-icon {
        display: block;
    }

    #logo-link,
    #logo-container {
        height: 57px;
        width: 57px;
    }

    .header-button {
        height: 45px;
    }

    .home h2 {
        margin: 10px 0 15px;
    }

    .about-wrapper {
        width: 90%;
    }

    .pop-up-box {
        width: fit-content;
    }

    .contact svg {
        height: 45px;
        width: 55px;
    }
}


@media screen and (min-width: 1024px) {
    #logo-link,
    #logo-container {
        height: 65px;
        width: 65px;
    }

    .header-button {
        height: 55px;
    }

    .home h2 {
        margin: 15px 0 20px;
    }

    .about-wrapper {
        width: 75%;
        max-width: 700px;
    }

    .contact svg {
        height: 50px;
        width: 60px;
    }
}



