:root {
    --blue1: rgb(7, 151, 229);
    --blue2: rgb(18, 89, 171);
    --blue3: rgb(16, 67, 125);
    --blue4: rgb(9, 36, 65);
    
    --light1: rgb(238, 235, 235);
    --light2: rgb(214, 214, 214);
    --medium1: rgb(189, 189, 189);
    --medium2: rgb(114, 114, 118);
    --dark1: rgb(63, 63, 63);
    --dark2: rgb(44, 44, 44);
    --dark3: rgb(19, 18, 18);

    --border-black: 3px solid #000;
    --box-shadow-solid: 8px 5px 0px var(--blue2);
    --box-shadow-button: 4px 3px 0px #000;
  }

html { 
    scroll-behavior: smooth;
}

.red {
    color: rgb(242, 77, 77);
}

.green {
    color: rgb(92, 220, 105);
}

.blue {
    color: var(--blue1);
}



*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

body{
    background-color: var(--dark3);
    color: var(--medium1);
}

h1{
    font-size: 3rem;
    color: var(--light1);
}

h2 {
    font-size: 3rem;
    color: var(--light1);
}


h4{
    font-size: 2rem;
}

li{
    list-style: none;
}

a{
    text-decoration: none;
    color: inherit;
}

i{
    font-size: 30px;
}

.section-padding{
    padding: 20px 10%;
}

.section-title {
    padding: 10px 20px;
    margin: 20px auto;
    margin-top: 5vw;
    text-align: center;
    font-weight: 600;
    color: var(--light2);
}

#header{
    background-color: var(--dark3);
    color: var(--light1);
    display: grid;
    grid-template-columns: 30% 60% 10%;
    position: fixed;
    width: 100vw;
    z-index: 10;
    opacity: 0;
    animation: load-down 0.5s 0.5s forwards;
    /* border-bottom: 1px solid var(--blue1); */
}

#header-left{
    margin: 1rem 0;
    padding-left: 5vw;
}

#header nav{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
}

#header nav li{
    margin: 0 1.5rem;
}

#header nav a{
    position: relative;
    transition: 0.3s linear;
}

#header nav a:after{
    position: absolute;
    content: "";
    height: 2px;
    width: 0%;
    background-color: var(--blue1);
    left: 0;
    bottom: -5px;
    transition: 0.2s linear;
}

#header nav a:hover{
    color: var(--blue1);
}

#header nav a:hover:after{
    width: 100%;
}

.logo h4{
    font-size: 2rem;
}

#header-right{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

#header-right i{
    margin: 0 10px;
    transition: 0.1s linear;
}

#header-right i:hover{
    color: var(--blue1);
    transform: scale(1.1);
}

#mobile-icon{
    display: none;
}

#mobile-menu{
    display: none;
    transition: 200ms linear;
}

.active{
        right: 0 !important; 
    }

#hero {
     height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
    
.hero-art {
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    height: 600px; 
    width: 400px;
    min-width: 300px; 
    opacity: 0;
    animation: load-left 1s 750ms forwards;
    border-radius: 10px;
    margin-right: 40px;
}
   
.gear1 {
    position: absolute;
    font-size: 300px; 
    top: 4%;
    left: 8%;
    color: var(--medium2);
    animation: rotate 10s linear infinite;
}

.gear2 {
    position: absolute;
    font-size: 120px; 
    bottom: 30%;
    right: 8%;
    animation: rotate-left 10s linear infinite;
    color: var(--blue1);
}

.gear3 {
    position: absolute;
    font-size: 180px; 
    right: 25%;
    bottom: 4%;
    animation: rotate 10s linear infinite;
    color: var(--medium2);
}
    
/* Animations for the gears in the hero section */

@keyframes rotate {
    from {
      transform: rotate(0deg);
    }
  
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes rotate-left {
    from {
      transform: rotate(0deg);
    }
  
    to {
      transform: rotate(-360deg);
    }
  }

.hero-text h4{
    padding-top: 8px;
    color: var(--light2);
    border-top: 0.5px solid var(--light2);
}

.hero-text p{
    color: var(--medium1);
}

.hero-text button {
    margin-top: 1rem;
    max-width: 160px;
    color: var(--light1);
    background-color: var(--blue1);
    border-radius: 5px;
    transition: 200ms;
}

.hero-text button:hover {
    background-color: var(--blue2);
    transform: scale(1.1);
}

/* ABOUT SECTION */
#about{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10vh 50px;
}

.about-text{
    width: 40%;
    margin-right: 50px;
}

#about h2{
    margin-bottom: 20px;
}

#about p{
    color: var(--light);
}

.about-img {
    width: 400px;
    max-width: 80vw;
    box-shadow: 20px 20px var(--blue1);
}

/* SKILLS SECTION */

.skills-container {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium2);
}
.skills-card {
    display: flex;
    flex-wrap: wrap;
}

#skills-section h4 {
    font-weight: 600;
}

.skills-card li {
    text-align: center;
    margin: 1rem 8px;
    padding: 5px 16px;
    border-radius: 80px;
    font-size: 1.6rem;
    background-color: #6663;
}

/* PROJECTS SECTION */
#projects{
    padding-top: 10vh;
}

#projects h4{
   font-size: 1.5rem;
   font-weight: 600;
   color: var(--light2);
}

.project{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1600px;
    padding: 40px 0;
    margin: 10vh 0;
    background-color: rgba(33, 31, 31, 0.558);
    border: 1px solid var(--blue1);
    border-radius: 6px;
}

.proj-text{
    width: 500px;
    margin: 10px;
    margin-left: 30px;
}

.project .languages {
    margin: 0;
    color: var(--light2);
    margin-bottom: 1.4rem;
}

.project-img {
    width: 500px;
    border-radius: 6px;
    margin: 10px 0;
}

.project button{
    font-size: 20px;
    padding: 5px;
    margin: 18px;
    margin-left: 0;
    width: 80px;
    background-color: var(--blue1);
    border-radius: 5px;
    color: var(--light1);
    transition: 200ms;
}

.project button:hover{
    background-color: var(--blue2);
    transform: scale(1.1);
}

/* CONTACT SECTION */

#contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0px;
    background: rgb(48,54,60);
background: linear-gradient(0deg, rgba(48,54,60,1) 0%, rgba(19,18,18,1) 100%);
}

#contact h2{
    margin: 20px 0px;
    color: var(--light2);
}

#contact form{
    background-color: rgba(33, 31, 31, 0.558);
    max-width: 90vw;
    width: 700px;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--blue1);
}


#contact input, textarea {
    border: none;
    background-color: var(--dark2);
    color: var(--light1);
}

#contact input:focus , textarea:focus{
    outline: 2px solid var(--medium1);
    border-radius: 3px;
}

#contact input, textarea, button{
    font-size: 20px;
    width: 100%;
    margin: 5px;
    padding: 10px;
    resize: none;
    border: none;
}

#contact button{
    background-color: var(--blue1);
    color: var(--light1);
}

#contact button:hover{
    background-color: var(--blue2);
}

.socials i{
    margin: 50px 10px 10px 10px;
    color: var(--white);
    font-size: 50px;
    transition: 0.1s;
}

.socials i:hover{
    transform: scale(1.1);
    color: var(--blue1);
}

.email {
    color: var(--white);
}

footer{
    padding: 2rem;
    background-color: var(--dark);
    color: #dadada;
    text-align: center;
}

/* Load-in animations for the hero section and navbar */

@keyframes load-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100;
    }
}

@keyframes load-down {
    0% {
        opacity: 0;
        transform: translateY(-25%);
    }
    100% {
        opacity: 100;
        transform: translateY(0%);
    }
}


@keyframes load-right {
    0% {
        opacity: 0;
        transform: translateX(10%);
    }
    100% {
        opacity: 100;
        transform: translateX(0%);
    }
}

@keyframes load-left {
    0% {
        opacity: 0;
        transform: translateX(-10%);
    }
    100% {
        opacity: 100;
        transform: translateX(0%);
    }
}

/* MEDIUM SCREEN SIZE QUERY */
@media (max-width: 899px) {

    html {
        scroll-behavior: inherit;
    }

    .section-padding {
        padding: 5vw;
    }

    #header{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo h4{
        font-size: 20px;
    }

    #header-center{
        display: none;
    }

    #header-right{
        display: none;
    }

    #mobile-icon{
        display: initial;
        margin-right: 20px;
    }

    #mobile-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100vw;
        width: 100vw;
        height: 100vh;
        z-index: 11;
        background-color: var(--dark3);
        color: var(--dark);
    }

    #mobile-menu .menu-top{
        width: 100%;
        padding: 1rem 2rem;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--dark1);
    }

    .menu-top h1{
        text-align: end;
    }

    #mobile-menu h1{
        font-size: 1.5rem;
    }

    #mobile-menu nav {
        display: flex;
        flex-direction: column;
    }

    #mobile-menu .mobile-link {
        padding: 3vh;
        width: 100vw;
        text-align: center;
        font-size: 1.2rem;
    }

    #mobile-menu .mobile-link:hover {
        background-color: var(--neutral2);
        color: var(--neutral1);
    }
    

    #mobile-menu .social-links{
        display: flex;
        text-align: center;
        padding: 5vh;
        color: var(--secondary);
    }

    #mobile-menu .social-links a{
        padding: 2.6rem;
    }

    #mobile-menu .social-links .link:hover{
        color: #333;
    }

    #hero {
        padding: 5vw;
        overflow: hidden;
        justify-content: center;
    }

    .hero-art{
       position: absolute;
       left: -200px;
       top: -100px;
       z-index: -1;
    }

    .hero-text {
        text-align: end;
    }

    #about{
        flex-direction: column;
        padding: 0;
    }

    .about-text{
        width: 90%;
        padding: 0px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    #projects {
        padding-top: 0;
    }

    .project{
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .proj-text{
        width: auto;
        margin-left: 10px;
        margin-bottom: 20px;
    }

    .project-img {
        max-width: 95%;
        width: 95%;
    }

}

/* MOBILE SCREEN QUERY */
@media (max-width: 477px) {

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h4 {
        font-size: 1.6rem;
    }

    p {
        font-size: 0.8rem;
    }

    .hero-art {
        top: -300px;
    }

    .skills-card li {
        font-size: 1.2rem;
        margin: 5px;
    }

    .project {
        padding: 10px;
    }

    .project-img {
        min-width: none;
    }

    .project button{
        margin: 10px 5px;

    }

    #contact form{
        padding: 20px;
    }

    #contact input, textarea{
        font-size: 14px;
    }

    .socials i{
        font-size: 32px;
    }

    footer{
        height: 1rem;
        padding: 8px;
        font-size: 12px;
    }

}
