@font-face {
    font-family: "abc";
    src: url("GeneralSans_Complete/Fonts/Variable/GeneralSans-Variable.ttf");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --padding: 15%;
    --primary-color: rgb(249, 249, 250);
    --secondary-color: rgb(8, 8, 7);
    --text-color: #000;
    --secondary-text-color: #fff;
    --highlight: #000;
    --grey-text: #b8b8b8;
    font-family: "abc", sans-serif;
    
}



body {
    background-color: var(--primary-color);
    background-image: url(img/jjk2.png);
    background-size: cover;
    
    /* backdrop-filter: url(#grainy); */
}

.butter {
    height: 100vh;
    width: 100%;
    /* overflow-y: auto;
    overflow-x: hidden; */
}

header {
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 3%;
    /* background-color: var(--primary-color); */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    color: var(--text-color);
}

.landing {
    /* background-color: var(--primary-color); */
    color: var(--text-color);
    min-height: 100lvh;
    padding: 80px var(--padding);
    padding-bottom: 9%;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    translate: 0 100px;
    transition: opacity 1.6s, translate 1.6s;
    margin-bottom: 2px;
}

.go-in {
    opacity: 1;
    translate: 0;
}

.landing .intro {
    font-size: 4.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
    
    
}

.intro h1 {
    position: relative;
}

.landing p {
    font-size: 2.8rem;
    margin-top: 60px;
}

.not-focused {
    color: rgba(255, 255, 255, 0);
    -webkit-text-stroke-width: 5px;
    -webkit-text-stroke-color: black;
}



.about {
    min-height: 100vh;
    padding: calc(60px + 3%) var(--padding);
    display: flex;
    flex-direction: column;
    /* background-color: var(--secondary-color);
    border-radius: 9vw;
    border-bottom-left-radius: 0 0;
    border-bottom-right-radius: 0 0; */
    color: var(--primary-color);
}

.prlximg {
    /* padding: 0 var(--padding); */
    background-color: var(--secondary-color);
    width: 100vw;
    height: 55vh;
    overflow-y: hidden;
    /* margin: calc(60px + 3%) 0; */
}

.prlximg img {
    border-radius: 90px; 
     
    width: 100%;
    height: 55vh;
    object-fit: cover;
    object-position: 50% 68%;
    
    
}



.about h1 {
    font-size: 5.6rem;
    margin-bottom: 70px;
    font-weight: 550;
}

.about img {
    width: 400px;
    border-radius: 30px;
    height: 550px;
    object-fit: cover;
}

.about .textabout {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    
    
}

.about p {
    font-size: 2.4rem;
    /* margin-bottom: 60px; */
    color: var(--grey-text);
    max-width: 50%;
    
}

.about .image {
    /* width: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.projects {
    min-height: 100vh;
    padding: calc(60px + 3%) var(--padding);
    
    display: flex;
    flex-direction: column;
    /* background-color: var(--secondary-color); */
    color: var(--primary-color);
    /* border-radius: 9vw;
    border-top-left-radius: 0 0;
    border-top-right-radius: 0 0; */
}

.graaay {
    background-color: var(--secondary-color);
    border-radius: 10vw;
    transition: border-radius 0.5s;
}

.projects h1 {
    font-size: 5.6rem;
    margin-bottom: 70px;
    font-weight: 550;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: flex-start;
}

.card {
    /* border: 1px solid var(--primary-color); */
    padding: 3vw 0;
    /* border-radius: 20px; */
    /* border-bottom: 1px solid var(--grey-text); */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cardtext {
    width: 100%;
}


.card h3 {
    margin-top: 20px;
    font-size: 1.5rem;
    color: var(--primary-text);
    
}

.card img {
    /* width: 30vw; */

    width: 100%;
    height: auto;

    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--grey-text);
    align-self: center;
}

.experience {
    
    
    display: flex;
    flex-direction: column;
    /* background-color: var(--primary-color);
    color: var(--text-color); */
}

.work {
    margin-top: calc((60px + 3%) * 2);
}

button {
    background-color: var(--primary-color);
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.3rem;

}

footer {
    height: 100vh;
    /* padding: 60px var(--padding); */
    
    padding-bottom: 0;
    position: sticky;
    margin-top: 2px;
}

.contact {
    padding-top: 60px;
    font-size: 9.6vw;
    height: 40vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* background-color: var(--primary-color); */
    color: var(--text-color);
    text-align: center;
}

.contact h1 {
    text-align: center;
}

nav {
    height: 60vh;
    padding: 60px 3%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    /* background-color: var(--primary-color); */
    color: var(--text-color);
}

nav .links {
    width: 50%;
    height: 100%;
    display: flex;
    
}

nav .links div {
    width: 40%;
    height: 100%;
    /* border-right: 1px solid var(--text-color); */
    
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.7rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
}

nav .copyright {
    width: 60%;
    height: 100%;
    /* padding-top: 60px; */
    position: relative;
    text-align: end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    font-size: 7rem;
}

nav .copyright:last-child {
    white-space: nowrap;
}

svg {
    display: absolute;
}

/* @keyframes myAnimation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.7);
        opacity: 0;
        translate: 0 70vh;
    }
}

@keyframes fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
} */

.about h1, .about p, .about h3, .about button {
    animation: fade linear forwards;
    animation-timeline: view(0 900px);
}

.projects h1, .projects p, .projects h3, .projects button {
    animation: fade linear forwards;
    animation-timeline: view(0 900px);
}

img:hover {
    transform: scale(1.05);
    cursor: pointer;
    transition: 1s;
}


.prlximg img:hover, .card img {
    transform: scale(1);
}

.in-view {
    animation: faded 0.5s linear;
}

@keyframes faded {
    0% {
        opacity: 0;
        translate: 0 100px;
    }
    100% {
        opacity: 1;
        translate: 0 0;
    }
}

.navwindow {
    display: flex;
    flex-direction: column;
    height: 400px;
    align-items: center;
    
    
    background-color: var(--secondary-color);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 2%;
    width: 400px;
    z-index: 999;
    color: var(--primary-color);
    padding: 45px;
    display: none;
    
}

.navsec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    
}

.navsec a {
    color: inherit;
    font-size: 1rem;
    width: 100%;
    text-decoration: none;
    
}

.x {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.x p {
    cursor: pointer;
}

.fa-bars:before {
    cursor: pointer;
}

@media screen and (max-width: 1340px) {
    .landing .intro {
        font-size: 6vw;
        
        
    }

    .about .textabout {
        display: flex;
        flex-direction: column;
        align-items: center;
        
        
    }

    .about h1 {
        margin-bottom: 40px;
    }

    .about p {
        max-width: 100%;
        margin-bottom: 70px;
        font-size: 2.3rem;
    }

    nav .links {
        justify-content: space-between;
        width: 70%;
    }

    .copyright p {
        font-size: 5rem;
        
       
    }

}

@media screen and (max-width: 1000px) {
    .landing, .about, .projects {
        padding-left: 10%;
        padding-right: 10%;
    }

    .navwindow {
        right: 2%;
    }
    .landing .intro {
        font-size: 6.5vw;
        
    }

    .landing p {
        margin-top: 70px;
        font-size: 1.5rem;
    }
    header h1 {
        font-size: 1.5rem;
    }
    .about h1 {
        font-size: 3.8rem;
        margin-bottom: 30px;
    }
    .projects h1 {
        font-size: 3.8rem;
    }
    .experience h1 {
        font-size: 3.8rem;
    }
}

@media screen and (max-width: 840px)
{
    .card img {
        width: 100%;
    }

    .card h3 {
        font-size: 1.8rem;
    }
    .grid {
        justify-content: center;
    }
}

@media screen and (max-width: 800px) {
    .not-focused {
        /* color: var(--primary-color); */
        -webkit-text-stroke-width: 2px;
        -webkit-text-stroke-color: black;
    }
    nav {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        
        padding: 30px 0;
    }
    .copyright {
        justify-content: center;
        align-items: center;
        
        
    }
    .copyright p {
        font-size: 1.3rem;
        
    }
    /* .about, .projects {
        border-radius: 40px;
    } */
    .about img {
        width: 300px;
    }
    .links a {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    .landing .intro {
        font-size: 6vw;
    }
    .about h1 {
        font-size: 3rem;
        margin-bottom: 30px;
    }.about p {
        font-size: 1.5rem;
    }
    .projects h1 {
        font-size: 3rem;
    }
    .experience h1 {
        font-size: 3rem;
    }
    .contact h1 {
        font-size: 16vw;
    }

    .card h3 {
        font-size: 1.3rem;
    }

    .navwindow {
        right: 0;
        width: 100vw;
    }

    

    
}

@media screen and (max-width: 470px) {
    .landing {
        animation: none;
    }
    .contact {
        height: 25vh;
    }
    .links {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 5vh;
        
        
    }

    .links h3 {
        font-size: 3vh;
    }

    .links a {
        font-size: 2vh;
    }

    nav a {
        font-size: 1.2rem;
    }
    nav {
        height: 75vh;
        padding: 0;
        padding-bottom: 30px;
    }
    .about h1 {
        font-size: 2.4rem;
        margin-bottom: 30px;
    }.about p {
        font-size: 1.3rem;
    }
    .projects h1 {
        font-size: 2.4rem;
    }
    .experience h1 {
        font-size: 2.4rem;
    }
    .contact h1 {
        font-size: 16vw;
    }
    .card h3 {
        font-size: 1.1rem;
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: visibility 1.2s, translate 1.2s, border-radius 1.2s;
}

.loader {
    color: var(--primary-color);
    font-size: 3rem;
    
}

.loading-screen-hidden {
    border-radius: 0 0 100% 100%;
    translate: 0 -100vh;
    visibility: hidden;
}

.loader {
    display: none;
    width: 400px;
    animation: typing 1.5s;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
  }

  
  @keyframes typing {
    from {
      width: 0
    }
  }
      
  @keyframes blink {
    50% {
      border-color: transparent
    }
  }

@media screen and (max-height: 650px) and (min-width: 1001px) {
    .landing .intro {
        font-size: 4.3vw;
    }

    .landing p {
        font-size: 3vw;
        margin-top: 40px;
    }
    .about h1 {
        font-size: 6vw;
    }
    .about p {
        font-size: 2.8vw;
    }
    .projects h1 {
        font-size: 6vw;
    }
    .projects h3 {
        font-size: 2vw;
    }
    .experience h1 {
        font-size: 6vw;
    }
    .contact h1 {
        font-size: 17vw;
    }

    nav .links a {
        font-size: 2vh;
    }
}

@media screen and (max-height: 650px) and (max-width: 1000px) {
    .landing .intro {
        font-size: 5vw;
    }
    .landing p {
        font-size: 5vw;
        margin-top: 30px;
    }
    .about h1 {
        font-size: 7vw;
    }
    .about p {
        font-size: 3.5vw;
    }
    .projects h1 {
        font-size: 7vw;
    }
    .projects h3 {
        font-size: 3vw;
    }
    .experience h1 {
        font-size: 7vw;
    }
}

@media screen and (max-height: 650px) and (max-width: 650px) {
    .landing .intro {
        font-size: 5.7vw;
    }

    .landing p {
        font-size: 5vw;
        margin-top: 30px;
    }
    .about h1 {
        font-size: 9.7vw;
    }
    .about p {
        font-size: 6vw;
    }
    .projects h1 {
        font-size: 9.7vw;
    }
    .projects h3 {
        font-size: 4vw;
    }
    .experience h1 {
        margin-top: 90px;
        margin-bottom: 40px;
        font-size: 9.7vw;
    }
}

@media screen and (max-width: 550px) {
    .loader {
        width: 210px;
        font-size: 1.6rem;
    }
    .loading-screen-hidden {
        border-radius: 0 0 20% 20%;
    }
}

