@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins',sans-serif;
}

html{
font-size: 62.5%;
overflow-x: hidden;
}

body{
  background: var(--bg-color); 
  color: var(--text-color);
}

:root{
    --bg-color:#1f242d;
    --secondary-bg-color:#323946;
--text-color:#fff;
--main-color:#0ef;
}
a{
    text-decoration: none;
}
section{
    min-height: 100vh;
    padding: 10rem 9% 2rem ;
}

/* Header starts */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}
.sticky{
    border-bottom: .1rem solid rgba(0,0,0, 0.2);
}
.logo {
    font-size: 3rem;
    font-style: italic;
    color: rgb(73, 252, 252);
}
.logo-text {
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px rgb(74, 184, 235);
    letter-spacing: 3px;
    font-size: 2rem;
}
.first-letter {
    font-size: 3rem;
}



#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}
.navbar a{
    font-size:2rem ;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.3s;
}
.navbar a:hover,.navbar a.active{
    color: var(--main-color);
}

/* //home section starts// */
.home{
    display: flex;
    align-items: center;
    justify-content: center;
}
/* .home-content{
    margin-bottom: 5rem;
} */
.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
}
.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.1;
}
.frontend{
    margin-bottom: 2rem;
}
.develop{
    color: var(--main-color);
}
.home-content p{
    font-size: 1.6rem;
font-style: italic;
}
.social-media a{
display: inline-flex;
align-items: center;
justify-content: center;
width: 4rem;
height: 4rem;
background: transparent;
border: .2rem solid var(--main-color);
font-size: 2rem;
color: var(--main-color);
margin: 3rem 1.3rem 3rem 0;
border-radius: 50%;
transition: .5s ease;
}
.social-media a:hover{
    background-color: var(--main-color);
    color: var(--secondary-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.home-img img{
    width: 26vw;
    object-fit: cover;
    border-radius: 15%;
    /* animation: floatImage 4s ease-in-out infinite; */
}
/* @keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
} */
.btn{
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow:0 0 1rem var(--main-color) ;
    font-size: 1.6rem;
    color: var(--secondary-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}
.btn:hover{
    box-shadow: none;
}

/* about section starts */
.about{
    display: flex;
    /* align-items: center; */
    justify-content: center;
    gap: 6rem;
   
    background: var(--secondary-bg-color);
}
.about-img img{
    max-width: 100%;
    max-height: 100%;
    margin-top: 0.5rem;
    object-fit: contain;
    border: .1rem solid var(--main-color);
    border-radius: 4rem;
    box-shadow:0 0 1rem var(--main-color) ;
}
.heading{
    text-align: center;
    font-size: 4.5rem;
    /* line-height: 1.2; */
}
.me{
    color: var(--main-color);
}
.about-content h3{
    font-size: 2.6rem;
}
.dev{
    margin-top: 5rem;
}
.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    font-style: italic;
}

/* skills starts */
.skills h2{
    margin-bottom: 5rem;
}
.skill-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
/* .skill-box{
    flex: 1 1 17rem;
    background: var(--secondary-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
} */
/* .skill-box {
    flex: 1 1 17rem;
    background: var(--secondary-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--bg-color);
    transition: 0.5s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
} */
.skill-box {
    width: 15rem;
    height: 250px;
    background: var(--secondary-bg-color);
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--bg-color);
    transition: 0.5s ease;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* hides extra space if any */
}
.skill-box:hover{
    border-color: var(--main-color);
    transform: scale(1.02);
    box-shadow:0 0 1rem var(--main-color) ;
}
.skill-box img {
    max-height: 100px;
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
    margin-inline: auto;
}

.skill-box h3{
    font-size: 2.6rem;
}
.skill-box p{
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

/* project section starts */
.project {
    background: var(--secondary-bg-color);
    padding: 4rem 2rem;
}

.project h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    background-color: #ddd;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}

.filter-btn.active {
    background-color: var(--main-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--main-color);
}

.filter-btn:hover {
    background-color: var(--main-color);
    color: white;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 0 1rem;
    margin-top: 5rem;
}

.project-box {
    border-radius: 1rem;
        min-height: 280px;
        box-shadow: 0 0 1rem var(--main-color);
        overflow: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease;
        background-color: #fff;
        opacity: 1;
        transform: scale(1);
        display: block;
}

.project-box:hover {
    transform: translateY(-8px);
}

.project-box img {
    width: 100%;
    height: 100%;
    max-height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-box img:hover {
    transform: scale(1.05);
}

.project-box.hidden {
    opacity: 0 !important;
    transform: scale(0.95);
    pointer-events: none;
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .project-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        min-width: 90px;
    }
}

 

/* contact section starts */

.contact h2{
    margin-bottom: 3rem;
}
.slogan{
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}
 .contact form{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
 }

.input-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
 .input-box input,.contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--secondary-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
 }
 .input-box input{
    width: 49%;
 }
 .contact textarea{
    resize: none;
 }
 .contact form .btn{
    margin-top: 2rem ;
    cursor: pointer;
 }

 .contaact{
    text-align: center;
        font-size: 4.5rem;
 }

 /* footer starts
  */
  .footer{
   
    position: relative;
    padding: 2rem 9%;
    /* background: var(--secondary-bg-color); */
  }
.footer-text p{
    font-size: 1.6rem;
    text-align: center;
}
.footer-iconTop a{
     display: inline-flex; 
     justify-content: center; 
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
    position: absolute;
    right: 12rem;
    bottom: 1rem;
}
.footer-iconTop a:hover{
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i{
    font-size: 2.4rem;
    color:var(--secondary-bg-color) ;
}


/* media query */

/* breakpoints */

@media (max-width:1200px){
    html{
        font-size: 55%;
    }
}

@media (max-width:991px) {
   .header{
    padding: 2rem 3%;
   }
   section{
    padding: 10rem 3% 2rem;
   }
   .footer{
    padding: 2rem 3%;
   }
   .skills{
    padding-bottom: 7rem;
   }
   .project{
    padding-bottom: 7rem;
   }
   .contact{
    min-height: auto;
   }
}

@media(max-width:768px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
        transition: all 0.5s;
        }
        .active{
            display: block;
        }
    
    .navbar a{
        display: block;
        font-size: 2rem;
        margin:3rem 0;     
    }
    .home{
        flex-direction: column;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
            font-size: 5rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
        display: none;
    }
    .about{
        flex-direction: column-reverse;
    }
    
    .about-img img{
        width: 90vw;
        height: auto;
        margin-top: 0.5rem;
    }
    .about-content h3{
        margin-top: 3rem;
    }
    .skills h2{
        margin-bottom: 3rem;
    }
    .footer-iconTop a{
        right: 7rem;
    }
    }

    @media(max-width:617px){
        .project-container {
                grid-template-columns: 1fr;
                margin-top: 2rem;
            }
        
            .project-box {
                min-height: auto;   }
      
        .footer-iconTop a {
        right: 2rem;
        }
    }


    @media(max-width:450px){
      html{
       font-size: 50%;
      } 
      .contact form .input-box input{
        width: 100%;
      }
          .skill-box {
              width: 17rem;
          }
      
    }
    @media(max-width:425px){
.footer-iconTop a {
        right: 1.5rem;
        bottom: 7rem;
    }
        .skill-box {
            width: 17rem;
        }

    }

    @media(max-width:365px){
        .about-img img{
          width: 90vw;
        }
    }
