*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system,  sans-serif;
}

:root {
    --bg-color: #001;
    --second-bg-color: #112;
    --text-color: #fff;
     --main-color: #16ff00;
}
.container {
  width: calc(100% - 120px);
  margin: auto;
}
html {
    font-size: 65.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}
section .container {
    min-height: 100vh;
    padding: 9rem 4% 5rem 4%;
    margin-top: 30px;
}
.header {
    background-color: rgba(0 , 0, 0, 0.4);  
      position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
      padding: 2rem 4%;
    backdrop-filter: blur(10px);
     transition: all 0.3s ease;
}
.header .container {
     display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo{
    font-size: 2.5rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(#16ff00,#ffed00);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar {
    display: flex;
}
.navbar a {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 4rem;
     transition: all 0.3s ease;
     border-bottom: 3px solid transparent;
}
.navbar a:hover ,.navbar a:active {
    color: var(--main-color);
   border-bottom: 3px solid var(--main-color);
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    cursor: pointer;
    display: none;
}
.nav-btn{
display: inline-block;
padding: 1rem 2.8rem;
background: transparent;
color: var(--main-color);
border: 2px solid var(--main-color);
border-radius: 4rem;
font-size: 1.6rem;
font-weight: 600;
transition: all 0.3s ease;
}
.nav-btn:hover {
    background: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 20px var(--main-color) ;
    transform: scale(1.05);
}
/*==================== HomeSection ====================*/
.home {
background-color: var(--bg-color);
}
.home .container {
display: flex;   
justify-content: space-between; 
gap: 20px;
align-items: center;
}
.home-content h3{
font-size: 3.2rem;
font-weight: 700;
}
.home-content h3:nth-of-type(2){
margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}
.home-content h1 {
  font-size: 5.8rem;  
  font-weight: 700;
  line-height: 1.3;
  background: linear-gradient(#16ff00,#ffed00);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-img img {
width: 25vw;
border: 3px solid var(--main-color);
border-radius: 51% 49% 48% 52% /49% 49% 51% 51% ;
animation: borderAnimation 5s linear infinite;
}

@keyframes borderAnimation {
   0%{
    border-radius: 51% 49% 48% 52% /49% 49% 51% 51% ;
   } 
   35%{
    border-radius: 60% 40% 57% 43% /40% 54% 46% 60% ;
   } 
   65%{
    border-radius: 67% 33% 68% 32% /27% 70% 30% 73% ;
   } 
   100%{
    border-radius: 51% 49% 48% 52% /49% 49% 51% 51% ;
   } 
}

.home-content p {
   font-size: 1.6rem; 
}
.social-media a {
    display: inline-flex;
justify-content: center;
align-items: center;
width: 4rem;
height: 4rem;
background: transparent;
border: 0.2rem solid var(--main-color);
border-radius: 50%;
font-size: 2rem;
color: var(--main-color);
margin: 3rem 1.5rem 3rem 0;
transition: 0.3s ease;
}
.social-media a:hover {
    transform: scale(1.2) translateY(-8px);
    background: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 20px var(--main-color) ;
}
.btn {
display: inline-block; 
padding: 1rem 2.8rem;
background-color:var(--main-color) ;
border-radius: 4rem;
box-shadow: none;
font-size: 1.6rem;
color: var(--bg-color);
letter-spacing: 0.1rem;
font-weight: 600;
cursor: pointer;
transition: 0.3s ease;
}
.btn:hover{
    box-shadow: 0 0 1.6rem var(--main-color) ;
}

/*==================== AboutSection ====================*/

.about {
background-color: var(--second-bg-color);
}
.about .container {
display: flex;
justify-content: space-between;
align-items: center;
gap: 2rem;
}

.about-img img {
width: 25vw;
border: 3px solid var(--main-color);
border-radius: 51% 49% 48% 52% /49% 49% 51% 51% ;
animation: borderAnimation 5s linear infinite;
}
.heading{
    font-size: 4.5rem;
    text-align: center;
}
.about-content{
padding: 0 4rem;
}
.about-content h2{
text-align: left;
line-height: 1.2;
}
.about-content h3 {
    font-size: 2.6rem;
}
.about-content p {
font-size: 1.6rem;
margin: 2rem 0 3rem;
}

/* Scrollbar Design */

::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
    width: 50px;
}


/*==================== PortfolioSection ====================*/

.portfolio{
    background: var(--bg-color);
}

.portfolio-content{
display: grid;
grid-template-columns:repeat(auto-fit,minmax(350px,auto));
align-items: center;
gap: 2.3rem;
margin-top: 4.2rem;
}

.row {
   background-color: var(--second-bg-color); 
   border-radius: 28px;
   border: 1px solid transparent;
   box-shadow: 0 0 5px var(--main-color);
   padding: 20px;
   min-height: 390px;
   transition: all 0.3s ease;
}
.row img {
    height: 200px;
    width: 100%;
    border-radius: 28px;
    margin-bottom: 1.4rem;
}
.main-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
     margin-bottom: 0.5rem;
}
.row h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}
.row i {
   display: inline-flex;
   align-items: center;
   justify-content: center; 
   width: 55px;
   height: 55px;
   font-size: 27px;
   border-radius: 50%;
   color: var(--text-color);
   background: #075fe4;
}
.row h4 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.row:hover {
border: 1px solid var(--main-color);
transform: translateY(-5px) scale(1.03);
cursor: pointer;
}

/*====================Contact Section ====================*/
.contact {
    background-color: var(--second-bg-color);
}
.contact h2 {
margin-bottom: 3rem;
color: var(--text-color);
}
.contact form {
max-width: 90rem;
margin: 1rem auto;
text-align: center;
margin-bottom: 3rem;
}
.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact form .input-box input , .contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 1px solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}
.contact form .input-box input{
    width: 49%;
    margin: 0.7rem 0.35rem;
}
.contact form .btn {
    margin-top: 2rem;
} 

/*====================Footer Section ====================*/
.footer {
position: relative;
bottom: 0;
width: 100%;
padding: 40px 0;
background: var(--bg-color);
}
.footer .social{
text-align: center;
padding-bottom: 25px;
color: var(--main-color);
}
.footer .social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color) ;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}
.footer .social a:hover {
  transform: scale(1.2) translateY(-8px);
  background: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 0 20px var(--main-color);  
}
.footer .copyright{
    margin-top: 20px;
    text-align: center;
    font-size: 15.5px;
    color: var(--text-color);
}

/*====================For Responsive Design ====================*/
/* .header
{
  transform: translateX(-50%);
  left:50%;
} */


@media screen and (max-width:1400px) {
     html {
        font-size:60%;
    }
    .home-img img ,.about-img img{
    width: 28vw;
}


}
@media screen and (max-width:1300px) { 
    .home-img img ,.about-img img {
    width: 32vw;
}
}
@media screen and (max-width:1130px) {
.home-content h1 {
    font-size: 4.8rem;
}
}
@media screen and (max-width:1024px) {
       html {
        font-size:57%;
    }
.container {
    width: 98%;
}
.header .logo{
     font-size: 2rem;
}
.home .container   {
    flex-direction: column-reverse;
}
.home-img img ,.about-img img {
    margin-top: 50px;
    width: 55vw;
}
.about .container {
    flex-direction: column;
}
}

@media screen and (max-width:768px) {

    .header #menu-icon
    {
     display: block;
    }   
     
       .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: rgba(0 , 0, 0, 0.9);
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);


    }
    .navbar a {
        display: block;
        padding: 17px;
        font-size: 22px;
    }
    .navbar.active{
        right: 0;
    }
    .contact form .input-box {
        flex-direction: column;
    }
    .contact form .input-box input {
        width: 100%;
    }
}
@media screen and (max-width:690px) {
   
.home-img img ,.about-img img{
    width: 75vw;
}
}
@media screen and (max-width:560px) { 
    .home-content h1 {
    font-size: 4.8rem;
}
.home-content h3 {
    font-size: 2.2rem;
}
@media screen and (max-width:500px) {
      .header .nav-btn{
        display: none;
     }
         .header #menu-icon
    {
     flex-grow: 1;
    text-align: right;
    }   
    .home-img img ,.about-img img {
    width: 85vw;
}
    .home-content h1 {
    font-size: 3.8rem;
}
}
}
@media screen and (max-width:425px) {
        .home-content h1 ,.about-content h2 {
    font-size: 3rem;
}
.about-content {
    padding: 0 ;
    text-align: left;
}
.about-content h3 {
  font-size: 2rem;  
}
.portfolio .row {
    min-height: 310px;
}
.portfolio .main-row {
    flex-direction: column;
    gap: 15px
}
.portfolio .row h5 {
    font-size: 15px; 
}
.portfolio .row i {
   width: 40px;
   height: 40px;
}
.portfolio .row h4{
    font-size: 18px;
   text-align: center;
    margin-top: 10px;
}
.portfolio-content {
    grid-template-columns:repeat(auto-fit,minmax(270px,auto));
}
.portfolio .row img {
    height: 150px;
}
}
@media screen and (max-width:375px) {
    .footer .copyright{
        font-size: 12px;
    }

}
@media screen and (max-width:320px) {
}