html,
body {
    margin: 0 0;
    font-family: "Archivo", sans-serif;
    scroll-behavior: smooth;
    
    height: 100%;
}

header {
    height: 60px;
    background-color: rgb(250, 250, 250);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 10px 50px 2px rgba(0, 0, 0, 0.1);
    padding-left: 300px;
    padding-right: 300px;
}

.jd a {
    font-size: 32px;
    font-weight: 700;
    margin-top: 0;
    text-align: center;
    margin-bottom: 0;
    text-decoration: none;
    color: #000;
}

.c-m a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: bold;
    background-color: black;
    padding: 10px 20px;
}

.c-m a:hover {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: bold;
    background-color: rgb(0, 164, 255);
    padding: 10px 20px;
}

.c-m a::after {
    background-color: black;

}

main {
    
    height: 100%;

    padding: 50px 300px;
    background-image: url(SMARTHOMEPOSTER-blur.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


h1 {
    font-size: 50px;
    color: rgb(0, 0, 0);
    letter-spacing: -0.2rem;


}

p {
    font-size: 18px;
    color: rgb(0, 0, 0);
}


i {
    font-size: 32px;
    color: rgb(0, 0, 0);
    width: fit-content;

}

h2 {
    font-size: 38px;
    color: rgb(0, 0, 0);
    width: fit-content;
    
}


.footyffa {
    
    color: rgb(0, 0, 0);
    height: fit-content;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;

    background-color: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    

}

.top {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
  
}

.top-right {
    display: flex;
    gap: 40px;
    align-items: center;
  
}

.top i {
    transition: color 0.3s ease;
}

.top i:hover{
    color:rgb(0, 164, 255)
}

.top img{
    max-width:100px;
    height: 80px;
    aspect-ratio: initial;
}

.stack-icons {
    margin-top: -20px;
    display: grid;
    grid: 2fr 2fr 2fr /1fr 4fr 1fr 4fr;
    width: fit-content;
    align-items: center;
    text-align: left;
    justify-content: center;

}



.stack-icons img {
    max-width: 32px;
    max-height: 32px;
    align-self: center;
    
   
}

.stack-icons p{
    margin-left: 8px;
    font-weight: 500;
}


@media screen and (max-width: 1600px) {

    body {
        background-position: center;
        background-size: fill;
    }

    header {
        padding-left: 200px;
        padding-right: 200px;
    }

 
    main{
        padding-left: 200px;
        padding-right: 200px;
    }

    .bottom {
        padding: 40px 200px;
    }

    .bottom-sec {
        padding: 0px 200px;
    }


    .about-me {
        padding: 40px 200px;
    }

    .contact-me {
        padding: 10px 200px;
    }

    .skills{
        padding: 0px 200px; 
    }


}

@media screen and (max-width: 1230px) {

    body {
        background-position: center;
        background-size: fill;
    }

    header {
        padding-left: 100px;
        padding-right: 100px;
    }

    main{
        padding-left: 100px;
        padding-right: 100px;
    }

    .top h1 {
        font-size: 50px;
        line-height: 44pt;
    }

    .bottom {
        padding: 30px 100px;
    }

    .bottom-sec {
        padding: 0px 100px;
    }

    .projects {
        display: flex;
        flex-direction: column;

    }

    .about-me {
        padding: 30px 100px;
    }

    .contact-me {
        padding: 20px 100px;
    }


    .skills{
        padding: 0px 100px; 
    }


}


@media screen and (max-width: 1121px) {
    body {
        background-position: center;
        background-size: fill;
    }

    .bottom h1 {
        font-size: 30px;

    }

    .about-me h1 {
        font-size: 30px;
    }


    .about-buttons .buttons {
        gap: 10px;
    }

    .about-buttons a {
        width: 80px;
    }
}

@media screen and (max-width: 800px) {
    header {
        padding-left: 60px;
        padding-right: 60px;
    }

    body {
        background-position: center;
        background-size: fill;
    }
  
    main{
        padding-left: 60px;
        padding-right: 60px;
    }

    .bottom {
        padding: 20px 60px;
    }

    .bottom-sec {
        padding: 0px 60px;
    }

    .bottom h1 {
        font-size: 24px;

    }

    .about-me h1 {
        font-size: 24px;
    }


    .about-me {
        padding: 30px 60px;
    }

    .contact-me {
        padding: 20px 60px;
        align-items: center;
    }

    .contact-input {
        flex-direction: column;
        gap: 20px;
    }

    .contact-input input {
        width: 94%;
        padding: 20px;
    }


    .projects>div {
        background-color: rgba(0, 0, 0, 1);
        padding: 30px 30px;
        height: 300px;
    }

}


@media screen and (max-width: 666px) {

    body {
        
        background-position: center;
        background-size: fill;
    }


    a {
        font-size: 12px;
        padding: 0px;
    }

    header {
        padding-left: 60px;
        padding-right: 60px;
    }

    .top{
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        margin-bottom: 50px;
    }

    .top-right {
        display: flex;
        gap: 40px;
        align-items: center;
      
    }
   

    .bottom {
        padding: 20px 60px;
        flex-direction: column;
        height: min-content;

    }



    .bottom-sec {
        padding: 0px 60px;

    }

    .projects h1 {
        font-size: 30px;
    }

   

    .about-me {
        padding: 20px 60px;
    }

    .about-buttons {
        flex-direction: column;
        align-items: normal;
        gap: 10px;

    }

    .about-buttons a {
        max-width: 100px;
    }



    .contact-me {
        /* padding: 20px 60px; */
        align-items: center;
    }

    .contact-input {
        flex-direction: column;
        gap: 20px;

    }

    .contact-input input {
        width: 90%;
        padding: 20px;
    }

    .projects>div {
        background-color: rgba(0, 0, 0, 1);
        padding: 30px 30px;
        height: 300px;
    }

    .skills{
        padding: 0px 60px;
    }

    .skills-icons {
        text-align: center;
        width: 100%;
        align-items: center;
        font-size: 40pt;
        display: flex;
        flex-wrap: wrap;
        color: #000;
        margin-top: 30px;
        margin-bottom: 20px;
    
        /* Supports Grid */
        display: grid;
        grid: 1fr 2fr 1fr 2fr /2fr 2fr 2fr 2fr;
        
    }
    
    .skills-icons p{
        font-size: 12px;
        font-weight: 400;
        margin-bottom: 50px;
        color: #373737;
    
    }
    
    .skills-icons img {
        max-width: 30px;
        max-height: 30px;
        margin: 0 auto;
        display: block;
    }

}


@media screen and (max-width: 500px) {
    
    body{
        background-position: center;
        background-size: fill;
    }

    .top{
        margin-bottom: 20px;
    }

    .top h1 {
        font-size: 35px;
        line-height: 36pt;
    }

    .footyffa {
        
        height: max-content;
    }

    .smarthome {
        max-height: 300px;
    }

    .wordle {
        max-height: 300px;
    }

    .css {
        max-height: 300px;
    }

    .projects-text {
        gap: 10px;
    }

    .projects a {
        max-width: 78%;
    }

    .projects a:hover {
        max-width: 78%;

    }

    .bottom {
        height: min-content;
    }

    .bottom h1 {
        font-size: 20px;
    }

    .bottom-sec {
        margin-top: 60px;


    }

    /* .about-me h1 {
        font-size: 20px;
    } */



    .project-info-bottom {
        width: 100%;
    }

    #about-text {
        font-size: 16px;
    }

    p{
        font-size: 14px;
    }

}


@media screen and (max-width: 450px) {
    body{
        background-position: center;
        background-size: fill;
    }

    main{
        margin-top: 0;
        padding: 20px 40px
    }

    header {
        padding-left: 40px;
        padding-right: 40px;
    }

    .top{
        margin-bottom: 20px;
    }
    .top h1{
        font-size: 30px;
    }

    p{
        font-size: 14px;
    }

   


    .stack-icons img{
        height: 20px;
        width: fit-content;
    }

    .stack-icons i{
        font-size: 20px;
    }
    


    
}



@media screen and (max-width: 400px) {

    body{
        background-position: center;
       
    }

    main{
        padding-left: 40px;
        padding-right: 40px;
     
        padding: 40px 40px;
    }

    .footyffa{
        padding: 10px 30px;
    }

    .footyffa img{
        width: 70px;
    }


    .top{
        margin-bottom: 20px;
    }

    .top h1 {
        font-size: 30px;
        line-height: 36pt;
        letter-spacing: -0.2rem;
    }

    .top-right{
        gap: 20px;

    }

    .stack-icons img{
        height: 20px;
        width: fit-content; 
    }

    .stack-icons i{
        font-size: 20px;
    }
    

    .projects h1 {
        font-size: 18pt;
    }

    .projects a {
        max-width: 100px;
        padding: 8px 8px;
    }

    .projects a:hover {
        max-width: 100px;

    }

    .about-me a {
        margin-bottom: 20px;
    }

    #about-text {
        font-size: 14px;
    }


}