/* <<<<<<<<<<<<<<<<<<<<<<<<< Globally Used Styles >>>>>>>>>>>>>>>>>>>>>>>>>  */
:root {
    --white: #ffffff;
    --black: #000000;
    --blue: #0000ff;
    --purple: #bf00ff;
    --blue_hover: #0080ff;
    --purple_hover: #c042ffff;
    --lightGrey: #808080;
    --darkGrey: rgba(51, 51, 51, 0.9);
    --darkerGrey: rgba(26, 26, 26, 0.8);
    --bloomtech: #ff4b00;
    --header1: clamp(2rem, 5vw, 4rem);    /* ~32px to ~64px */
    --header2: clamp(1.5rem, 4vw, 3rem);  /* ~24px to ~48px */
    --header3: clamp(1.25rem, 3vw, 2rem); /* ~20px to ~32px */
    --header4: clamp(1rem, 2.5vw, 1.5rem);/* ~16px to ~24px */
    --header5: clamp(0.75rem, 2vw, 1rem);/* ~14px to ~16px */
    --header6: clamp(0.5rem, 1.5vw, 0.5rem);/* fixed, may stay ~8px */
    --shadow: 2px 2px var(--black), 0 0 40px var(--blue_hover), 0 0 10px var(--blue);
}
/* look at these pretty unused colors!! #bf00ff; and #aa00ff; */
/* look at these pretty unused colors!! #33ccff; and ##80dfff;

/* Background picture credits: https://www.pexels.com/photo/landscape-photography-of-mountains-covered-in-snow-691668/ */

body {
    background-color: var(--darkGrey);
    background-image: url("/images/background1.jpeg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darkGrey);
    pointer-events: none;
    z-index: -1;
}

body::-webkit-scrollbar {
    display: none;
}

.flex {
    display: flex;
    justify-content: center;    
}
.divider {
    height: 2px;
    width: 90%;
    background: linear-gradient(to right, var(--blue) 0%, var(--blue_hover) 100%);
    margin: auto;
}
.divider-space {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: clamp(1rem, 2vw, 4rem);
    margin-bottom: clamp(1rem, 2vw, 4rem);
}
p {
    word-wrap: break-word;
}
.h-padding {
    padding-left: clamp(0.5rem, 5vw, 4rem);
    padding-right: clamp(0.5rem, 5vw, 4rem);
}

.fancy-box {
    border-radius: 16px;
    border: var(--blue), 2px, solid;
    box-shadow: -16px -8px 32px var(--blue), 16px 8px 32px var(--blue_hover);
    background-color: var(--darkerGrey);
}

h1 { font-size: var(--header1); color: var(--white); text-shadow: var(--shadow); }
h2 { font-size: var(--header2); color: var(--white); text-shadow: var(--shadow); }
h3 { font-size: var(--header3); color: var(--white); text-shadow: var(--shadow); }
h4 { font-size: var(--header4); color: var(--white); text-shadow: var(--shadow); }
h5 { font-size: var(--header5); color: var(--white); text-shadow: var(--shadow); }
h6 { font-size: var(--header6); color: var(--white); text-shadow: var(--shadow); }
a { color: var(--white); text-shadow: var(--shadow); }
a:hover {
    text-shadow: 2px 1px var(--black), 0 0 24px var(--purple_hover), 0 0 5px var(--purple);  
}

p, li { font-size: var(--header4); color: var(--white); }

.nav {
    text-align: center;
}
.nav li {
    display: inline;
}
.nav a {
    display: inline-block;
    transform-origin: center center;
    padding: clamp(2rem, 3vw, 4rem);
    text-decoration: none;
}

/* <<<<<<<<<<<<<<<<<<<<<<<<< Header/Footer Styles >>>>>>>>>>>>>>>>>>>>>>>>>  */
.header-border {
    border-bottom: 1px solid var(--lightGrey);
    margin-bottom: clamp(0.25rem, 1vw, 1rem);
}
.footer-border {
    border-top: 1px solid var(--lightGrey);
    padding-top: clamp(0.25rem, 1vw, 1rem);
    padding-bottom: clamp(2rem, 8vw, 10rem);
    margin-top: clamp(0.5rem, 2.5vw, 4rem);
}
header a {
    transition: .25s;
}
header a:hover {
    transform: scale(1.5);
}
footer p {
    font-size: var(--header5);
    color: var(--lightGrey);
    margin: 4px;
}

/* <<<<<<<<<<<<<<<<<<<<<<<<< Home Page Styles >>>>>>>>>>>>>>>>>>>>>>>>>  */

#home-img {
    width: clamp(16rem, 20vw, 30rem);
    height: auto;
    border-radius: 100%;
    filter: grayscale(0%);
    /* filter: grayscale(100%); */
    object-fit: cover;
    transition: filter 0.5s ease-in-out;
}
/* #home-img:hover {
    filter: grayscale(0%);
} */
.img-border {
    border-radius: 100%;
    box-shadow: 2px 2px var(--black), -12px -6px 24px var(--blue), 16px 8px 32px var(--blue_hover);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    align-items: center;
    flex-shrink: 0;
}
.home-img-container {
    padding-top: clamp(1rem, 4vw, 4rem);
    padding-bottom: clamp(1rem, 4vw, 4rem);
}

/* <<<<<<<<<<<<<<<<<<<<<<<<< Home Page (skills section) >>>>>>>>>>>>>>>>>>>>>>>>>  */

.skills-container {
    display: grid;
    grid-template-columns: auto auto auto auto;
    width: clamp(30vw, 90vw, 90vw);
    margin: clamp(1rem, 4vw, 4rem);
    padding: clamp(1rem, 4vw, 4rem);
}
.skills-container div {
    padding: 1vw;
    margin: auto;
}

.skills-img {
    width: clamp(1rem, 15vw, 12.5rem);
    height: auto;
    transition: 1.0s;
}

.skills-img:hover { transform: scale(1.25); }

.thumbnail {
    height: clamp(3rem, 20vw, 12.5rem);
    margin: clamp(1rem, 4vw, 4rem);
    width: auto;
}
.thumbnail:hover { cursor: pointer; }

/* <<<<<<<<<<<<<<<<<<<<<<<<< Lightbox Styles (WIP) >>>>>>>>>>>>>>>>>>>>>>>>>  */
.img-buttons {
    color: var(--blue);
    background-color: var(--darkerGrey);
    border: var(--blue) 2px solid;
    padding-left: clamp(0.5rem, 2vw, 1rem);
    padding-right: clamp(0.5rem, 2vw, 1rem);
    padding-bottom: clamp(0.25rem, 1vw, 0.5rem);
}

#left-button, #right-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--header3);
    border-radius: 25%;
    z-index: 10;
    color: var(--blue);
}
#left-button {
    left: clamp(0.5rem, 1vw, 1rem);
}
#right-button {
    right: clamp(0.5rem, 1vw, 1rem);
}

.close-button {
    font-size: var(--header3);
    color: var(--white);
}
.close-button:hover {
    border: var(--white), 2px, solid;
}

.home-download {
    font-size: var(--header3);
}
.close-button:hover {
    color: var(--white);
    border: var(--white), 2px, solid;
}
#image-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0,0,0,0.85);
    display: none; /* << hide it */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#image-overlay.active {
    display: flex;
}
#close {
    position: absolute;
    top: clamp(0.5rem, 1vw, 1rem);
    right: clamp(0.5rem, 1vw, 1rem);
    z-index: 10;
}
.overlay-content {
    display: flex;
    align-items: center;
    border: 1px solid var(--blue);
    background-color: var(--black);
}
.overlay-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.overlay-image-wrapper img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
}
.download-button {
    font-size: var(--header3);
    border-radius: 12px;
    background-color: var(--darkerGrey);
    color: var(--blue);
    border: 2px solid var(--blue);
    text-align: center;
}
.download-button:hover {
    color: var(--purple_hover);
    border-color: var(--purple_hover);
}
.overlay.active {
    display: flex;
}

/* <<<<<<<<<<<<<<<<<<<<<<<<< About Page Styles >>>>>>>>>>>>>>>>>>>>>>>>>  */
.about-section {
    margin: clamp(2rem, 8vw, 10rem);
    padding: clamp(1rem, 5vw, 5rem);
    overflow: hidden;
}
.about-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(1rem, 6vw, 5rem);
    margin-bottom: clamp(1rem, 4vw, 3rem);
}
.about-img-container {
    margin: clamp(0.5rem, 2vw, 2rem);
}
.about-p {
    flex: 1 1 400px;
    font-size: var(--header3);
    margin: 0;
    border-radius: 24px;
}
.about-extra {
    margin-top: clamp(1rem, 6vw, 5rem);
}

.fun-container {
    margin: clamp(2rem, 8vw, 10rem);
    padding: clamp(1.25rem, 5vw, 8rem);
}
.fun-container p {
    font-size: var(--header2);
}
.fun-space {
    padding-top: clamp(0.875rem, 4vw, 1rem);
    padding-bottom: clamp(1.5rem, 6vw, 3rem);
}
.fun-grid {
    display: flex;
    flex-direction: column;
    border: 1px var(--lightGrey) solid;
}
.fun-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.25rem, 2.5vw, 2rem);
    padding: clamp(0.6rem, 2vw, 1rem);
    align-items: center;
    border-bottom: 1px solid var(--lightGrey);
}
.fun-row div {
    text-align: right;
    font-size: var(--header2);
    color: var(--white);
    padding-right: clamp(0.5rem, 3vw, 3rem);
}
.fun-row h2 {
    text-align: left;
    color: var(--white); text-shadow: var(--shadow);

}

/* <<<<<<<<<<<<<<<<<<<<<<<<< Projects Page Styles >>>>>>>>>>>>>>>>>>>>>>>>>  */
.projects-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, var(--blue) 0%, var(--blue_hover) 100%);
}
.projects-div {
    display: grid;
    grid-template-columns: auto auto auto;
    margin: clamp(2rem, 8vw, 10rem);
    margin-top: clamp(1.5rem, 6vw, 8rem);
    padding: clamp(0.5rem, 3vw, 1rem);
}
.project-container {
    position: relative;
    text-align: center;
    border: var(--blue_hover) 1px dotted;
    padding: clamp(0.5rem, 3vw, 3rem);
    margin: clamp(0.5rem, 4vw, 4rem);
}
.project-container p {
    text-align: left;
    font-size: var(--header5);
    overflow: hidden; 
}
.project-container a {
    display: inline-block;
    transform-origin: center center;
    padding-top: clamp(0.5rem, 1vw, 4rem);
    font-size: var(--header4);
    transition: .25s;
}
.project-container a:hover {
    transform: scale(1.25);
}
.project-thumbnail {
    width: clamp(8rem, 25vw, 18.75rem);
    margin: auto;
    object-fit: cover;
    border: 1px var(--bloomtech) solid;
}
.project-thumbnail:hover { cursor: pointer; }

/* <<<<<<<<<<<<<<<<<<<<<<<<< Contact Page Styles >>>>>>>>>>>>>>>>>>>>>>>>>  */
.contact-space {
    padding: clamp(0.5rem, 1vw, 3rem);
}

.contact-grid {
    display: flex;
    flex-direction: column;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

}

.contact-row div {
    text-align: right;
    font-size: clamp(1rem, 1.5vw, 6rem);
    color: var(--white);
    padding-right: clamp(0.5rem, 3vw, 3rem);

}
.contact-row h4 {
    text-align: left;
    font-size: clamp(1rem, 1.5vw, 6rem);
}
.contact-row a {
    justify-self: start;
    align-self: center;
    font-size: clamp(1rem, 1.5vw, 6rem);
    display: inline;
    width: auto;
}
.contact-row button {
    font-size: clamp(1rem, 1.5vw, 6rem);
    color: var(--white); 
    text-shadow: var(--shadow);   
}
.contact-row button:hover {
    text-decoration: underline;  
}

/* <<<<<<<<<<<<<<<<<<<<<<<<< Media Query Styles >>>>>>>>>>>>>>>>>>>>>>>>>  */
/* Mobile image overlay styling */
@media (max-width: 1200px) {
    .projects-div {
        grid-template-columns: 1fr 1fr;
    }
    .about-p {
    font-size: var(--header4);
    }
}

@media (max-width: 1000px) {
    /* #home-img {
        filter: grayscale(0%);
    } */
    .overlay-content {
        border: none;
        background: transparent;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .overlay-image-wrapper {
        width: 100vw;
        height: 100vh;
    }
    .overlay-image-wrapper img {
        max-width: 100vw;
        max-height: 100vh;
        width: auto;
        height: auto;
        object-fit: contain;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    a#download,
    #left-button,
    #right-button {
        display: none;
    }
    #close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
        background: rgba(0,0,0,0.4);
        border: none;
    }
    .projects-div {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .about-p {
    font-size: var(--header5);
    }
    .fun-container p {
        font-size: var(--header4);
    }
    .fun-row div {
        font-size: var(--header4);
    }
    .fun-row h2 {
        font-size: var(--header4);
    }
    .fancy-box {
        border-radius: 16px;
        border: none;
        box-shadow: none;
        background-color: var(--darkerGrey);
    }
}
@media (max-width: 500px) {
    .h-padding  {
        font-size: var(--header5);
    }
    .nav a {
        padding: clamp(0.5rem, 1vw, 1rem);
    }
    .fun-container p {
        font-size: var(--header5);
    }
    .fun-row div {
        font-size: var(--header5);
    }
    .fun-row h2 {
        font-size: var(--header5);
    }
}
@media (max-width: 400px) {
    .about-img-container img {
        display: none;
    }
    .fun-container p {
        font-size: var(--header6);
    }
    .fun-row div {
        font-size: var(--header6);
    }
    .fun-row h2 {
        font-size: var(--header6);
    }
}