*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, sans-serif;
}
:root{
    --bg-color : #001;
    --secondary-bg-color : #112;
    --text-color : #fff;
    --main-color : #16ff00;
    }

html{
    font-size: 62.5%;
    overflow-x: hidden;

}

body{
    background-color: var(--bg-color);
    color: var(--text-color);
    
}
section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:  2rem 9%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}
.logo{
    font-size: 3rem;
    font-weight: 800;
    cursor: pointer;
    background:-webkit-linear-gradient(#16ff00, #ffed00) ;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar{
    display: flex;
    
}
.navbar a{
    font-size: 1.6rem;
    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{
    display: none;
    font-size: 3.6rem;
    cursor: pointer;
    color: var(--main-color);
}
.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(--bg-color);
    box-shadow:0 0 20px var(--main-color);
    transform: scale(1.05); ;
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color:var(--secondary-bg-color) ;
}

.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:-webkit-linear-gradient(#16ff00, #ffed00) ;
    background-clip: text;
    -webkit-text-fill-color: transparent;

}

.home-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% 40% 60%;
  }
  65% {
    border-radius: 67% 33% 68% 32% / 27% 70% 30% 73%;
  }
  100% {
    border-radius: 51% 49% 48% 52% / 49% 49% 51% 51%;
  }
}

 p{
    font-size: 1.6rem;
}

.social-media a{
    display:inline-flex ;
    align-items: center;
    justify-content: center;
    width:4rem ;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition:all  0.3s ease;

}
.social-media a:hover{
    transform: scale(1.2) translateY(-8px);
    background-color: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 20px var(--main-color);
    
}
.social-media a:not(:hover):not(:focus):not(:active) {
  box-shadow: none !important;
  outline: none !important;
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing:.1rem ;
    font-weight: 600;
    transition:  0.3s ease;

}
.btn:hover{
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 1.6rem var(--main-color);
    transform: scale(1.05);
}

#about{

    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10rem;
}
.about-content{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.about-content .btn {
  align-self: flex-start;
}
h2{
    font-size: 4rem;
    font-weight: 700;
   
}
.about-content p{
    font-size: 1.6rem;
    color: #ccc;
    
}
.about-content h3{
    font-size: 2.4rem;
    font-weight: 600;
}
.portfolio-box{
    height: 36rem;
    width: 36rem;
    border: .1rem solid var(--main-color);
    border-radius: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transition: all 0.3s ease;
   

}
.portfolio-box:hover{
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--main-color);
    background-color: var(--secondary-bg-color);
}
.portfolio{
    display: flex;
    flex-direction: column;
    align-items: center;   
    background-color:var(--secondary-bg-color) ;
    gap: 3rem;
}
.portfolio-heading{
    text-align: center;
    font-size: 2.4rem;
   
}
.project-img{
    width: 34rem;
    height: 22rem;
    border-radius: 10px;
    opacity: 0.8;

}

.portfolio-container{
    display: flex;
    flex-wrap: wrap;
    gap: 2.36rem;
    justify-content: space-between;
    
    
}
.portfolio-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1.5rem;
}


.p-svg a {
    font-size: 6rem;
    color: var(--main-color);
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block; 
}

.p-svg a:hover {
    transform: scale(1.3) translateY(-8px);
    color: var(--text-color);
    
    
}

.p-content h3{
    font-size: 1.6rem;
    font-weight: 600;   
    color: var(--text-color);
    
}
.p-content h2{
    font-size: 2.5rem;
    font-weight: 500;
    color: #ccc;
    margin-top: 2rem;
}


.contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    
    
}

.contact-message{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    
    
}
.contact-container{
   margin: 4rem;
   
}

.contact-content1{
    height: 5rem;
    width: 38rem;
    padding: 1rem;
    margin: 1rem;
    background-color: var(--secondary-bg-color);
    border: .1rem solid var(--main-color);
    border-radius: 2rem;
    color: var(--text-color);
    
}
#message{
    width: 78rem;
    height: 15rem;
    padding: 1rem;
    margin: 1rem;
    background-color: var(--secondary-bg-color);
    border: .1rem solid var(--main-color);
    border-radius: 2rem;
    color: var(--text-color);

}
.contact-form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.footer-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 9%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    gap: 1rem;
    margin: 1rem ;
}

::-webkit-scrollbar {
  width: 6rem;
}

::-webkit-scrollbar-track {
  background: #f0f0f0; 
  border-radius: 2rem;
}

::-webkit-scrollbar-thumb {
  background: var(--main-color); 
  border-radius: 2rem;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-color); 
    
}

* {
  scrollbar-width: 5rem;
  scrollbar-color: var(--main-color) #f0f0f0;
}
.footer-heading {
  font-size: 1.4rem;
  text-align: center;
  margin-top: 2rem;
  color: var(--main-color); 
}

.footer-heading::after {
  content: '|';
  animation: blink 0.7s infinite;
  opacity: 1;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.read-more-section {
  padding: 3rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}
.read-more-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.read-more-section p {
  font-size: 1.1rem;
  line-height: 1.6;
}
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  background-color: var(--main-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
}
.copyright{
    font-size: 1rem;
    color: var(--text-color);
    text-align: center;
    margin-top: 2rem;
}


.sidebar{
    flex-direction: column;
    width: 250px;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #000011ba;
   backdrop-filter: blur(10px);

}

.sidebar li{
    line-height: 3rem;
    margin-top: 2rem;

}


@media (max-width: 991px) {
  html {
    font-size: 55%;
  }
  header {
    padding: 2rem 4%;
  }
  section {
    padding: 10rem 4% 2rem;
  }
  .portfolio-container {
    gap: 2rem;
    justify-content: center;
  }
  #about {
    gap: 4rem;
  }
  .home-img {
    width: 40vw;
  }
  #message {
    width: 90vw;
    max-width: 50rem;
  }
  .contact-content1 {
    width: 90vw;
    max-width: 38rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  header {
    padding: 2rem 2rem;
  }
  .navbar {
    display: none;
  }
  #menu-icon {
    display: inline-flex;
    margin-left: auto;
    cursor: pointer;
  }

  .hideOnMobile {
    display: none !important;
  }
  .home {
    flex-direction: column;
    text-align: center;
    padding-top: 12rem;
    gap: 3rem;
  }
  .home-img {
    width: 60vw;
    margin: 0 auto;
  }
  #about {
    flex-direction: column;
    gap: 3rem;
    padding-top: 12rem;
  }
  .about-img {
    width: 60vw;
    margin: 0 auto;
  }
  .portfolio-container {
    flex-direction: column;
    align-items: center;
  }
  .portfolio-box {
    width: 90vw;
    max-width: 36rem;
    height: auto;
  }
  .project-img {
    width: 100%;
    height: auto;
    max-width: 34rem;
  }
  #message, .contact-content1 {
    width: 90vw;
    max-width: 38rem;
  }
}


@media (max-width: 480px) {
  html {
    font-size: 45%;
  }
  header {
    padding: 1rem 1rem;
  }
  .logo {
    font-size: 2.2rem;
  }
  .home-content h1 {
    font-size: 2.8rem;
  }
  .home-content h3 {
    font-size: 1.8rem;
  }
  .about-content h2 {
    font-size: 2.2rem;
  }
  .about-content h3 {
    font-size: 1.4rem;
  }
  .portfolio-heading {
    font-size: 1.6rem;
  }
  .portfolio-box {
    width: 98vw;
    max-width: 100%;
    padding: 1rem;
  }
  .project-img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  #message, .contact-content1 {
    width: 98vw;
    max-width: 100%;
    font-size: 1.2rem;
  }
  .btn, .nav-btn {
    font-size: 1.2rem;
    padding: 0.7rem 1.5rem;
  }
  .footer-content {
    padding: 1rem 2vw;
  }
}


@media (min-width: 577px) and (max-width: 991px) {
 
}


@media (max-width: 576px) {
  h1, .home-content h1 {
    font-size: 2.2rem;
  }
}
