
@import url('https://fonts.googleapis.com/css2?family=Bungee+Shade&display=swap');
@font-face {
    font-family: 'Khorla'; 
    src: url("./assets/Khorla.otf") format("opentype");
    font-style: normal;
}


* {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

html {
    background-color: rgb(253, 168, 135);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Khorla', sans-serif;
}

section {
    height: 100vh;
    min-height: 100vh;
    width: calc(100vw - 40px);
    margin-left: 40px;
}

.container {
    max-height: 100%;
}

li {
    list-style-type: none;
}

/* ----- Nav ----- */

#vertical-nav {
    display: flex;
    align-content: center;
    background-color: aliceblue;
    margin: 0;
    color: #ff8859;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    position: fixed;
    height: 100vh;
    width: 40px;
    transform: rotate(180deg);
    justify-content: space-between;
    z-index: 100;
}

#nav-left {
    display: flex;
    align-items: center;
}

#nav-name {
    margin-top: 50px;
    position: relative;
}

#vertical-nav ul {
    justify-content: end;
    align-content: space-evenly;
    display: flex;
    width: 100%;
    position: relative;
    bottom: 80px;
    left: 10px;
    flex-shrink: 2;
}

#vertical-nav ul li {
    margin-top: 50px;
    flex-shrink: 1;
}

#vertical-nav ul a:nth-child(3) {
    margin-bottom:100px;
}

nav a {
    text-decoration: none;
    color: #ff8859;
}

#logo {
    writing-mode: horizontal-tb;
    position: relative;
    margin-top: 30px;
    margin-left: -9px;
    transform: rotate(180deg);
}

/* ----- horizontal nav ----- */

#horizontal-nav {
    display: flex;
    align-content: center;
    background-color: aliceblue;
    margin: 0;
    color: #ff8859;
    visibility: hidden;
    position: fixed;
    bottom: 0;
    height: 40px;
    width: 100vw;
    justify-content: space-between;
    z-index: 100;
}

#h-nav-left {
    display: flex;
    align-items: center;
}

#h-nav-right {
    display: flex;
    align-items: center;
}

#h-nav-name {
    position: relative;
    padding-left: 40px;
}

#horizontal-nav ul {
    justify-content: end;
    align-content: space-evenly;
    display: flex;
    width: 100%;
    position: relative;
    margin-right: 20px;
}

#horizontal-nav ul li {
    margin-right: 20px;
    flex-shrink: 1;
}

/* ----- Hero Section ----- */

#hero {
    min-height: 800px;
}

#hero-container {
    padding-left: 40px;
    position: relative;
    top: 50%;
    z-index: 1;
}

#name {
    font-family: 'Khorla', sans-serif;
    font-size: 5em;
    color:aliceblue;
}

#hero h2 {
    color: aliceblue;
    font-size: 3em;
}

canvas {
    position: absolute;
    top: 0;
    z-index: 0;
}


#cta-bttn {
    background-color: aliceblue;
    color: #ff8859;
    font-size: 2em;
    border-radius: 7px;
    padding:10px;
    font-family: Arial, Helvetica, sans-serif;
    border: 0;
    margin-top: 1em;
}

#cta-bttn:hover {
    background-color: #feeee7;
    cursor: pointer;
}

/* ----- About Section ----- */

#about {
    background-image: url("./assets/stjohns.webp");
    background-size: cover;
}

#about-overlay {
    background: linear-gradient(180deg, rgba(253,168,135,1) 0%, rgba(253,168,135,0) 100%),
                linear-gradient(0deg, rgba(46,48,56,1) 0%, rgba(255, 255, 255, 0) 25%);

    height: 100%;
    width: 100%;
    z-index: 2;
}

#about-container {
    color: aliceblue;
    position: relative;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    font-size: 2em;
    max-width: 800px;
    border: 2px solid aliceblue;
    margin: 20px 20px 20px 0px;
    padding: 50px;
}

#about-img {
    display: flex;
    width: 100%;
    justify-content: end;
}
#profile-img {
    width: 450px;
    position: relative;
    top: -75px;
}

#profile-img:hover {
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(-360deg);
    }
  }

/* ----- Work Section ----- */

#work {
    padding-left: 0;
    display: grid;
    flex-direction: column;
    justify-content: center;
    /* background-color: darkslategrey; */
    background-color: #2e3038;
    height: auto;
    min-height: 0;
    color: aliceblue;
}

#work-container {
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    overflow:scroll;
}
#work h2 {
    color:#ffae8b;
    position: relative;
    margin: 0 auto;
    padding-top: 50px;
    font-size: 2.5em;
}

.work-link {
    display: grid;
    align-items: center;
}

.work-img {
    max-width: 600px;
    max-height: 460px;
    margin: 100px;
}

/* ----- Technology ----- */

#technology-container {
    display: flex;
    overflow: hidden;
    color: #ff8859;
}

#technology1 {
    display: grid;
    grid-auto-flow: column;
    animation: scroll 60s linear infinite;
    position: relative;
}

#technology2 {
    display: grid;
    grid-auto-flow: column;
    animation: scroll2 60s linear infinite;
    animation-delay: -30s;
    position: relative;
}

#technology3 {
    display: grid;
    grid-auto-flow: column;
    animation: scroll 60s linear infinite;
    animation-delay: 30s;
    position: relative;
}

#technology-container h3 {
    height: 20px;
}

@keyframes scroll {
    0% {
      transform: translate(100%, 0);
    }
    100% {
      transform: translate(-100%, 0);
    }
}

@keyframes scroll2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-200%, 0);
    }
}

@keyframes scroll3 {
    0% {
        transform: translate(100%, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

.tech {
    border: 2px solid aliceblue;
    color:aliceblue;
    padding: 40px;
    margin: 40px;
}

/* ----- Contact Section ----- */

#contact {
    height: calc(100vh - 50px);
    width: calc(100vw - 40px);
    background-image: url("./assets/geometric-pattern.webp");
    background-size: cover;
    padding-left: 0;
}

#contact-container {
    display: grid;
    background-color: aliceblue;
    margin: 0 auto;
    padding: 20px;
    width: 95%;
    max-width: 540px;
    border-radius: 9px;
    grid-auto-flow: column;
    justify-content: space-around;
    align-content: center;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

form {
    display: flex;
    flex-direction: column;
    width: 500px;
}

form h2 {
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    color: #ff8859;
}

form input {
    height: 40px; 
}

form input, textarea {
    font-size: 1.2em;
    margin-bottom: 5px;
    padding-left: 10px;
    border-radius: 7px;
    border: 2px solid rgb(190, 190, 190);
}

#subject {
    display: none;
}

#submit {
    background-color: #ff8859;
    color:aliceblue;
    width: 150px;
    position: relative;
    margin: 0 auto;
    border: 0;

    font-size: 1.2em;
    margin-bottom: 5px;
    padding-left: 10px;
    border-radius: 7px;
    border: 0;
    height: 40px;
}

#submit:hover {
    background-color:#ffae8b;
}

/* ----- Footer ----- */
footer {
    height: 50px;
    /* background-color: darkslategray; */
    background-color: #2e3038;
    display: grid;
    justify-content: center;
    align-content: center;
    color:#ff8859;
    position: relative;
    padding-left: 40px;
}

@media (max-height: 700px) {
   
    #nav-left {
        visibility: hidden;
    }

    #hero-container {
        top: 40%;
    }
}

@media (max-width: 900px) {

    #about-container {
        font-size: 1.4em;
    }
   
    #work-container {
        display: flex;
        /* flex-direction: column; */
        
    }

    #work-left {
        margin-top: 50px;
    }
}

@media (max-width: 800px) {

    #hero-container h2 {
        font-size: 1.5em;
    }
    /* #work {
        display: flex;
    } */

    #work h2 {
        font-size: 1.3em;
    }
    
    #work-container {
        /* display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0;
        height: 100%;
        width: 100%; */
        padding: 30px;
    }

    .work-cell {
        display: grid;
        flex-direction: column;
        justify-content: center;
        margin:0;
    }

    .work-link {
        width: 70%;
        justify-self: center;
        margin:15px;
    }

    .work-img {
        /* width: 100%; */
        max-width: 250px;
        max-height: 200px;
        margin: 15px;
    }

    #work-left {
        margin-top: 50px;
    }

    #work-right {
        display: flex;
        justify-content: center;
    }

    #work-right a {
        display: flex;
        justify-content: center;
    }

    #work-right img {
        width: 90%;
    }

    form h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 700px) {
    section {
        width: 100vw;
        margin-left: 0;
    }

    #horizontal-nav {
        visibility: visible;
    }

    #vertical-nav {
        visibility: hidden;
    }

    #hero-container {
        padding-left: 15px;
    }

    #name {
        font-size: 3em;
    }

    #about-overlay {
        width: 100%;
    }

    #about-container {
        font-size: 1.3em;
        margin-right: 10px;
        margin-left:0;
        padding: 20px;
    }

    #about-img {
        justify-content: center;
    }

    #profile-img {
       width: 250px; 
       top: 50px;
    }

    #contact {
        width: 100vw;
        height: calc(100vh - 90px);
        padding-left: 0;
    }

    #contact-container {
        width: 90%;
    }

    form {
        width: 100%;
    }
    
    footer {
        margin-bottom: 40px;
        padding-left: 0;
    }
}

@media (max-height: 800px) and (orientation:landscape) {
    section {
        min-height: 150vh;
    }

    #hero {
        min-height: 100vh;
    }

    #hero-container {
        top:50%;
        transform: translateY(-50%);
    }
}

@media (min-width: 800px) and (orientation: portrait) {
    #work {
        min-height: 0; 
        padding-top: 100px;
        padding-bottom: 100px;
    }
}