/*  General Selectors  */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --nav-and-footer: #0D1321;
    --light-font-and-bg: #F0EBD8;
    --dark-section-bg: #1D2D44;
    --light-section-bg: #3E5C76;
    --font-accent: #FFFFFF;
    --gold-accent: #ffe357;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: var(--nav-and-footer);
}

ul {
    list-style-type: none;
}

/*  Utility Classes  */
.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.box-shadow {
    box-shadow: 1px 1px 10px var(--nav-and-footer);
}

.section-shadow {
    box-shadow: -5px -7px 5px rgba(0, 0, 0, 0.1);
}

.text-shadow {
    text-shadow: 1px 1px 1px black;
}

/* Navigation */
.navbar {
    display: flex;
    background-color: var(--nav-and-footer);
    position: fixed;
    width: 100%;
    top: 0;
    height: 4.3125em;
    box-shadow: 0 0 10px black;
    z-index: 2;
}

.logo {
    width: 4.375em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3.125em;
    margin: auto;
}

.nav-link {
    color: var(--light-font-and-bg);
    text-decoration: none;
}

.nav-link.active {
    color: var(--gold-accent);
}

/* Hero */
.hero-section {
    position: relative;
    background-image: url("./images/hero-bg.webp");
    background-size: cover;
    margin-top: 4.3125em;
    height: 90vh;
    overflow: hidden;
}

.name-and-title {
    position: absolute;
    top: 15.3125em;
    left: 7.5em;
    text-shadow: -1px 1px 8px black;
    z-index: 2;
}

.name {
    font-size: 5.75rem;
    color: var(--font-accent);
}

.title {
    font-size: 3rem;
    font-weight: 100;
    color: var(--light-font-and-bg);
}

.hero-section img {
    position: absolute;
    height: 20em;
    width: auto;
    transform: rotate(-30deg);
}

.marquee-top,
.marquee-middle,
.marquee-bottom {
    filter: drop-shadow(5px 5px 4px rgba(0, 0, 0, 0.175));
}

.marquee-top {
    position: absolute;
    bottom: 14.0625em;
    right: -37.5em;
    animation: topMarqueeScroll 20s ease-in-out infinite alternate;
}

.marquee-middle {
    bottom: -10.625em;
    right: -18.75em;
    animation: midMarqueeScroll 22s ease-in-out infinite alternate;
}

.marquee-bottom {
    bottom: -10.3125em;
    right: -25em;
    animation: bottomMarqueeScroll 16s ease-in-out infinite alternate;
}

/* Section Tabs */
.section-tab {
    position: absolute;
    display: flex;
    justify-content: start;
    gap: 25px;
    align-items: center;
    width: 296px;
    height: 65px;
    top: -64px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    font-size: 1.3rem;
    padding: 0 20px;
}

#projects-tab {
    background-color: var(--light-section-bg);
    color: var(--font-accent);
    right: 30px;
}

#about-me-tab {
    background-color: var(--light-font-and-bg);
    color: var(--light-section-bg);
    left: 30px;
}

#contact-tab {
    background-color: var(--dark-section-bg);
    color: var(--light-font-and-bg);
    right: 30px;
}

.tab-graphic {
    height: 40px;
    width: 40px;
}


/* Projects Section */
.projects-section {
    position: relative;
    background-color: var(--light-section-bg);
    padding: 95px 0;
}

.featured-project {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    width: 1440px;
    min-height: 399px;
    max-width: 100%;
    margin: 0 auto;
}

#featured-vid,
.featured-info-container {
    width: 700px;
    max-width: 95%;
}

#featured-vid {
    background-color: #000000;
    border: 5px solid var(--light-font-and-bg);
    min-height: 214px;
}

.featured-info-container {
    position: relative;
    color: var(--light-font-and-bg);
    border: 0.5px solid var(--light-font-and-bg);
    padding: 10px 20px;
    min-height: 399px;
}

.featured-info-container p,
.summary p,
.education p,
.contact-cta {
    line-height: 23px;
}

#featured-title {
    font-size: 2rem;
    color: var(--font-accent);
    text-transform: uppercase;
}

#featured-tech {
    font-size: 1.4rem;
    font-weight: 100;
    padding-bottom: 15px;
}

.project-selection-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    width: 1440px;
    max-width: 95%;
    margin: 60px auto 0 auto;
}

.projects-anchor {
    pointer-events: none;
}

.project-selection {
    width: 280px;
    max-width: 48.5%;
    border: 5px solid var(--light-font-and-bg);
    transition: 0.2s;
    pointer-events: auto;
}

.project-selection:hover {
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 1px 1px 10px var(--nav-and-footer);
}

.selected {
    border: 5px solid var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 1px 1px 10px var(--nav-and-footer);
}


/* Buttons */
.button {
    font-size: 1rem;
    outline-color: transparent;
    text-decoration: none;
    background-color: var(--light-font-and-bg);
    color: var(--light-section-bg);
    text-shadow: none;
    font-weight: bold;
    width: 104px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 5px;
}

.button:hover {
    box-shadow: 0 0 10px var(--nav-and-footer);
}

.featured-btns {
    display: flex;
    gap: 13px;
    justify-content: baseline;
    margin-top: 20px;
}

.contact-btn {
    align-self: flex-end;
    width: 150px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
}

/* About Me Section */
.about-me-section {
    position: relative;
    background-color: var(--light-font-and-bg);
    padding: 90px 0;
}

.about-me-content {
    display: flex;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
}

.about-img-container,
.about-info-container {
    width: 700px;
    max-width: 90%;
}

.about-img-container {
    display: flex;
    flex-direction: column;
}

.about-img {
    width: 90%;
    margin: auto;
}

.summary {
    padding-top: 2em;
}

.about-info-container {
    display: flex;
    justify-content: end;
    flex-direction: column;
    gap: 30px;
}

.about-info-container h2 {
    margin-bottom: 10px;
}

.summary h2 {
    font-size: 2.875rem;
    margin-bottom: 0.25em;
}

.about-info-container h2,
.summary h2 {
    color: var(--light-section-bg);
}

.about-info-container p {
    color: var(--nav-and-footer);
}

blockquote {
    font-size: 1.4rem;
    font-style: italic;
    text-align: right;
    color: var(--light-section-bg);
    text-shadow: 1px 1px #46464628;
    padding: 0 1em;
}

.testimonial-divider {
    color: var(--light-font-and-bg);
}

.skills-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.skill {
    background-color: var(--dark-section-bg);
    color: var(--light-font-and-bg);
    width: 105px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    border-radius: 50px;
}

.p-and-r-container {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 20px;
    color: var(--light-font-and-bg);
}

.p-and-r-box {
    background-color: var(--dark-section-bg);
    width: 26.25em;
    padding: 0.7em;
    line-height: 1.5em;;
}

.p-and-r-box p {
    color: var(--light-font-and-bg);
}

.playing,
.reading {
    box-shadow: 2px 2px 5px var(--nav-and-footer);
}

.playing {
    background-image: 
        linear-gradient(to right, var(--dark-section-bg) 50%, rgba(26, 26, 26, 0)),
        url(./images/expedition-33.webp);
    background-position: center, 10em -3.75em;
    background-size: cover;
}

.reading {
    background-image: 
        linear-gradient(to right, var(--dark-section-bg) 50%, rgba(26, 26, 26, 0)),
        url(./images/batman-resurrection.webp);
    background-position: center, 9.375em;
    background-size: cover;
}

/* Contact Section */
.contact-section {
    display: flex;
    position: relative;
    padding: 95px 0;
    background-color: var(--dark-section-bg);
}

.contact-form-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 10px;
    width: auto;
    max-width: 90%;
    margin: auto;
}

.contact-cta,
.contact-form {
    width: 499px;   
}

.contact-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background-color: var(--light-font-and-bg);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    text-align: center;
    padding: 40px;
    color: var(--light-section-bg);
    z-index: 1;
}

.contact-cta h2 {
    color: var(--dark-section-bg);
}

.socials li {
    display: inline-block;
}

.social-icon {
    width: 50px;
    height: 50px;
    margin: 10px;
}

.contact-form {
    background-color: var(--light-section-bg);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 30px 40px;
}

/* Contact Form */
form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    color: var(--light-font-and-bg);
}


form input,
form textarea {
    margin-bottom: 20px;
    border-radius: 3px;
    border: none;
    margin-top: 10px;
    font-family: inherit;
    font-size: 1rem;
}

form input {
    line-height: 30px;
    padding-left: 10px;
}

form textarea {
    padding: 10px;
    resize: none;
}

form input::placeholder,
form textarea::placeholder {
    opacity: 0.5;
}


/* Footer */
footer {
    background-color: var(--nav-and-footer);
    color: var(--light-font-and-bg);
    padding: 48px 20px;
    font-size: 0.875rem;
    margin: auto;
    max-width: 1440px;
}

.footer-divider {
    margin: 10px 0 10px 0;
}

.footer-site-links {
    font-size: 1.1rem;
    max-width: 460px;
    margin-left: auto;
}

footer h2 {
    font-size: 3rem;
}

footer h3 {
    font-weight: 100;
    font-size: 1.875rem;
}

footer a {
    color: var(--light-font-and-bg);
}

.copyright-text {
    font-size: 0.75rem;
    text-align: center;
    max-width: 500px;
    margin: 40px auto 0 auto;
}

@keyframes topMarqueeScroll {
    0% {
        transform: rotate(-30deg) translate(0, 0);
    }
    100% {
        transform: rotate(-30deg) translate(-400px, 0px);
    }
}

@keyframes midMarqueeScroll {
    0% {
        transform: rotate(-30deg) translate(0, 0);
    }
    100% {
        transform: rotate(-30deg) translate(350px, 0px);
    }
}

@keyframes bottomMarqueeScroll {
    0% {
        transform: rotate(-30deg) translate(0, 0);
    }
    100% {
        transform: rotate(-30deg) translate(-300px, 0px);
    }
}

@media only screen and (max-width: 450px) {  
    .logo {
        width: 55px;
    }

    .hero-section {
        height: 590px;
    }

    .hero-section::before {
        background-image: url("./images/hero-img-mobile.webp");
    }

    .name-and-title {
        top: 140px;
        left: 40px;
    }

    .name {
        font-size: 3.5rem;
    }

    .title {
        font-size: 2.125rem;
    }

    .nav-links {
        gap: 23px;
    }

    .projects-section,
    .contact-section {
        padding-top: 70px;
    }

    .project-selection {
        border: 3px solid var(--light-font-and-bg);
    }

    .selected {
        border: 3px solid var(--gold-accent);
    }

    .section-tab {
        gap: 15px;
        width: 230px;
        height: 55px;
        top: -54px;
        font-size: 1rem;
    }

    .featured-info-container {
        height: 600px;
    }

    .summary h2 {
        font-size: 2.6875rem;
    }
    
    #projects-tab,
    #contact-tab {
        right: 10px;
    }

    #featured-title {
        font-size: 1.625rem;
    }

    #featured-tech {
        font-size: 1.125rem;
    }
    
    #about-me-tab {
        left: 10px;
    }

    .about-me-section {
        padding-top: 70px;
    }

    .about-me-content {
        gap: 2em;
    }

    blockquote {
        text-align: center;
        font-size: 1.2rem;
        padding: 0;
    }

    .about-img {
        width: 100%;
    }

    .p-and-r-info {
        font-size: 0.93rem; 
    }

    .contact-cta {
        border-top-right-radius: 5px;
        border-bottom-left-radius: 0;
    }

    .contact-form {
        border-top-right-radius: 0;
        border-bottom-left-radius: 5px;
    }

    footer h2 {
        font-size: 2.3rem;
    }
    
    footer h3 {
        font-size: 1.7rem;
    }
}

@media (max-width: 1515px) {
    .project-selection-container {
        justify-content: center;
    }
}