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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111111;
    background-color: white;
    font-family: "Avant Garde", Helvetica, Arial, sans-serif;
    font-size: 1.25vw;
    letter-spacing: 0.1vw;
    overflow-x: hidden;
}

h1 {
    margin-top: 3%;
    color: #1a1a1a;
    font-family: "Trebuchet MS", Optima, sans-serif;
    text-align: center;
    text-transform: uppercase;
    transition: transform 1s;
}

h1:hover {
    transform: scale(1.05);
}

p {
    padding-right: 1vw;
    padding-left: 1vw;
    font-family: Perpetua, Georgia, serif;
    font-size: 1.45vw;
    line-height: 1.5;
    letter-spacing: 0.05vw;
    text-align: justify;
}

.center {
    text-align: center;
}

a {
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}

q {
    font-style: italic;
}

img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    border-radius: 8px;
    filter: grayscale(75%);
    transition: filter 0.5s;
}

img:hover {
    filter: grayscale(5%);
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

.Navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    overflow: hidden;
    background-color: black;
    animation: moveNav 2s;
}

.Navbar a {
    position: relative;
    display: block;
    float: left;
    padding: 0.75vw 1vw;
    color: white;
    font-size: 1.25vw;
    text-align: center;
    text-decoration: none;
    animation: moveNavText 2.5s;
    transition: 0.5s;
}

.Navbar a:hover,
.Navbar a:focus {
    color: black;
    background-color: #f4f4f4;
    font-weight: bold;
}

.Navbar a.active {
    background-color: darkgray;
}

@keyframes moveNav {
    from {
        left: -100vw;
    }

    to {
        left: 0;
    }
}

@keyframes moveNavText {
    from {
        top: -100vw;
    }

    to {
        top: 0;
    }
}

/* ==========================================================
   BACKGROUND VIDEO
   ========================================================== */

/*
The Home container must not create an additional empty
screen because the video itself is fixed behind the page.
*/
#Home {
    min-height: 0;
}

/*
The video remains visible in desktop, landscape and
mobile portrait modes.
*/
#Typing_Video {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    background-color: black;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================
   VIDEO TEXT
   ========================================================== */

.Video_Text {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 8vh 5vw 2vh;
    color: white;
    background-color: rgba(0, 0, 0, 0.55);
    animation: moveVideoText 2.5s;
}

.Video_Text h1 {
    color: white;
}

.Video_Text p {
    width: min(1100px, 92%);
    margin: 3vh auto 0;
    color: white;
    font-size: 1.55vw;
    line-height: 1.6;
}

.white-text {
    color: white;
}

@keyframes moveVideoText {
    from {
        top: -100vw;
    }

    to {
        top: 0;
    }
}

/* ==========================================================
   SLIDESHOW
   ========================================================== */

#Slideshow_Background {
    padding: 4% 0 2%;
    background-color: rgba(255, 255, 255, 0.35);
}

#Slideshow_Container {
    position: relative;
    width: 39.5vw;
    height: 39.5vw;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    background-color: #4d4d4d;
    box-shadow:
        0 5px 10px 12px rgba(0, 0, 0, 0.75);
}

.mySlides {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
}

.mySlides:first-child {
    display: block;
}

.Slideshow_Images {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

.Personal_Slideshow_Image {
    width: 100%;
    height: 100%;
    background-color: transparent;
    object-fit: cover;
    object-position: center 35%;
}

.Previous,
.Next {
    position: absolute;
    top: 50%;
    z-index: 3;
    padding: 2vw;
    border: none;
    color: darkgray;
    background-color: transparent;
    font-size: 1.5vw;
    font-weight: bold;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.6s ease;
}

.Previous {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.Next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.Previous:hover,
.Next:hover,
.Previous:focus,
.Next:focus {
    color: white;
    background-color: rgba(0, 0, 0, 0.8);
}

.text {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    padding: 1vw;
    color: white;
    background-color: rgba(0, 0, 0, 0.78);
    font-family: Perpetua, Georgia, serif;
    font-size: 1.4vw;
    font-weight: bold;
    text-align: center;
}

.text a {
    color: white;
}

.dots {
    padding-top: 1.5vw;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 1vw;
    height: 1vw;
    margin: 0.25vw;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover,
.dot:focus {
    background-color: black;
}

.fade {
    animation: fade 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* ==========================================================
   ABOUT AND GITHUB COLUMNS
   ========================================================== */

.Row {
    width: 100%;
}

.Row::after {
    display: table;
    clear: both;
    content: "";
}

.Column_1,
.Column_2 {
    float: left;
    width: 50%;
    height: 450px;
    padding: 1.6%;
}

.Column_1 {
    padding-top: 3%;
    background-color: #f2f2f2;
}

.Column_2 {
    overflow: hidden;
    background-color: #4d4d4d;
}

.Column_2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.GitHub_Image_Column img {
    width: 70%;
    height: 70%;
    margin-top: 8%;
    object-fit: contain;
}

/* ==========================================================
   CONTACT BUTTON
   ========================================================== */

.Pop_Up_Button {
    position: fixed;
    right: 1.75vw;
    bottom: 1.75vw;
    z-index: 8;
    width: 25vw;
    padding: 1.5vw;
    border: 3px solid black;
    color: white;
    background-color: black;
    font-size: 1.5vw;
    font-weight: bold;
    cursor: pointer;
    animation: movePopup 2s;
    transition: 0.4s;
}

.Pop_Up_Button:hover,
.Pop_Up_Button:focus {
    color: black;
    background-color: white;
}

@keyframes movePopup {
    from {
        right: -40vw;
    }

    to {
        right: 1.75vw;
    }
}

/* ==========================================================
   CONTACT FORM
   ========================================================== */

.form-popup {
    position: fixed;
    right: 0.5vw;
    bottom: 0.5vw;
    z-index: 12;
    display: none;
    border: 3px solid #f0f1f0;
}

.form-container {
    width: 49vw;
    max-width: 680px;
    padding: 1vw;
    background-color: white;
}

.form-container input,
.form-container textarea {
    width: 100%;
    margin: 0.4vw 0 0.8vw;
    padding: 0.7vw;
    border: none;
    background-color: #f1f1f1;
    font-size: 1vw;
}

.form-container textarea {
    min-height: 6vw;
    resize: vertical;
}

.form-container input:focus,
.form-container textarea:focus {
    background-color: #dddddd;
    outline: 2px solid #555555;
}

.form-container .btn {
    width: 100%;
    margin-top: 0.5vw;
    padding: 1vw;
    border: none;
    color: white;
    background-color: black;
    font-size: 1vw;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s;
}

.form-container .btn:hover,
.form-container .btn:focus {
    color: black;
    background-color: white;
}

.form-container .cancel {
    background-color: #d40000;
}

.form-status {
    min-height: 1.5em;
    margin: 0;
    color: #b00020;
    font-size: 1vw;
}

/* ==========================================================
   FOOTER
   ========================================================== */

footer {
    padding: 2%;
    background-color: white;
}

footer p {
    margin: 0;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media screen and (max-width: 900px) {
    body {
        font-size: 16px;
    }

    .Navbar a {
        padding: 12px 10px;
        font-size: 15px;
    }

    .Video_Text {
        padding-top: 12vh;
    }

    .Video_Text p,
    p {
        font-size: 17px;
    }

    #Slideshow_Container {
        width: 62vw;
        height: 62vw;
    }

    .text {
        padding: 12px;
        font-size: 16px;
    }

    .Previous,
    .Next {
        padding: 20px;
        font-size: 24px;
    }

    .dot {
        width: 13px;
        height: 13px;
        margin: 4px;
    }

    .Column_1,
    .Column_2 {
        height: 500px;
    }

    .Pop_Up_Button {
        width: 35vw;
        padding: 14px;
        font-size: 16px;
    }

    .form-container {
        width: 75vw;
        padding: 18px;
    }

    .form-container input,
    .form-container textarea,
    .form-container .btn,
    .form-status {
        font-size: 16px;
    }
}

/* ==========================================================
   MOBILE PORTRAIT
   ========================================================== */

@media screen and (max-width: 576px) {
    .Navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .Navbar a {
        flex: 1 1 auto;
        padding: 10px 7px;
        font-size: 13px;
    }

    /*
    Keep the background video visible in portrait mode.
    */
    #Typing_Video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .Video_Text {
        min-height: 100svh;
        padding: 130px 20px 60px;
        background-color: rgba(0, 0, 0, 0.62);
    }

    .Video_Text h1 {
        font-size: 30px;
    }

    .Video_Text p,
    p {
        font-size: 16px;
    }

    #Slideshow_Container {
        width: 88vw;
        height: 88vw;
    }

    .text {
        padding: 12px;
        font-size: 15px;
    }

    .Column_1,
    .Column_2 {
        float: none;
        width: 100%;
        height: auto;
        min-height: 420px;
        padding: 30px 20px;
    }

    .Column_2 img {
        height: 360px;
    }

    .Pop_Up_Button {
        right: 14px;
        bottom: 14px;
        width: auto;
        padding: 13px 22px;
        font-size: 16px;
    }

    .form-popup {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .form-container {
        width: 100%;
        max-height: 95vh;
        padding: 18px;
        overflow-y: auto;
    }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}