
body {
  font-family: 'Poppins', sans-serif;
margin:0 ;
padding: 0;
box-sizing:border-box ;
text-decoration:none ;
border: none;
outline: none;
}

html{
 font-size: 62.5%;  
}

body{
    width:100% ;
    min-height:100vh ;
    overflow-x: hidden;
    background-color: black;
    color: rgb(242, 240, 236);
}

.header{
    margin-top: 20px;
    position:fixed;
    top:0 ;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content:space-between ;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #9090d544;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: rgb(242, 240, 236);
  text-decoration: none;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.logo:hover{
  transform: scale(1.1);  
}

nav a{
    font-size: 1.8rem;
    color: rgb(241, 241, 234);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
   border-bottom: 3px solid transparent; 
}

nav a:hover{
    color: #9090d544;
    border-bottom: 3px solid#9090d544;
}
nav a:active{
nav a:active {
  color: #948cd7; /* red when clicked */
}

}

@media(max-width:995px){
    nav{
        position: absolute;
        display: flex;
        top: 0;
        right: 0;
        width: 40%;
        padding: 1rem ;
        background: transparent;
      border: none;          
    border-radius: 0;      
    outline: none;         
    box-shadow: none;   
        
    }

 nav.active{
    display: block;
 }   

 nav a{
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
 }

 nav a.hover,
 nav a.active{
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom:0.5rem solid #9090d544 ;
    
 }

 
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
    background-color:#111  ;
    color: #f2f0ec ;
    text-align: center;
}

section h2{
  font-size: 2.5rem;
  margin-bottom: 20px;
  color:#a5bed991  ;
}

section p{
   max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
  font-size: 1.3rem;
}


.skills-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;

}

.skills-list span{
  background:#222 ;
  padding: 15px;
  border-radius: 8px;
  transition: 0,3s;
  font-size: 1.4rem;  /* bigger text */
}

.skills-list span:hover{
  background: #333 ;
  color: #020533;
}
.skill-fill {
  background: #391bb1;
  height: 100%;
  width: 0; /* start empty */
  border-radius: 10px;
  transition: width 1.5s ease;
}

.service{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
  gap: 30px;
}

.service-card {
  background: #222;
  padding: 20px;
   border-radius: 10px;
  width: 250px;
  transition: 0.3s;
  text-align: center;
}

.service-card img.service-img {
    width: 100%;          
    height: 180px;        
    object-fit: cover;    
    border-radius: 8px;   
    margin-bottom: 15px;  
}

.service-card:hover {
  background: #333;
  transform: translateY(-5px);
}

.footer {
  background-color: #141946;
  color: #f2f0ec;
  text-align: center;
  padding: 20px;
  font-size: 1.1rem;
  border-top: 1px solid #333;
}

.footer p {
  margin: 0;
}
.contact-details {
   margin: 20px 0;
  text-align: center;
}
.contact-details p {
  margin: 10px 0;
  font-size: 1.3rem; 
}

.contact-details a {
  color: #020533 ; /* accent color */
  text-decoration: none;
}


.contact-details a:hover {
  text-decoration: underline;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.contact-buttons .btn {
  background: #020533;
  color: #111;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.contact-buttons .btn:hover {
  background: #020533 ;
}
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:8rem ;
    background-color: #020533;
}

.home .home-content h1{
  font-size: 6rem;
  font-weight: 700; 
  line-height:1.3 ; 
}

span{
    color: #9090d544 ;
}

.home-content h3{
   font-size: 4rem; 
   margin-bottom: 1rem;
   font-weight: 700;
}

.home-img{
 border-radius: 50%;
}

.home-img img{
   position: relative; 
   width: 32vw;
   border-radius: 50%;
   box-shadow:0 0 25px solid  #9090d544;
   cursor: pointer;
   transition: 0.2 linear;
}

.home-img img:hover{
 font-size: 1.8rem; 
 font-weight:500 ;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color:transparent ;
    border: 0.2rem solid  #9090d544;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
  transition:0.3s ease ;
  color: #9090d544;
}

.social-icons a:hover{
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #9090d544; 
  box-shadow:0 0 25px  #9090d544; 
}

.btn{
display: inline-block;
padding: 0.8rem 2rem;
background-color: black;
border-radius: 4rem;
font-size: 1.4rem;
color: #9090d544;
letter-spacing:0.3rem ;
font-weight: 600;
border: 2px solid #9090d544;
transition: 0.3s ease;
cursor: pointer;
}

.btn:hover{
    transform:scale3d(1.03) ;
    background-color: #9090d544;
    color: black;
    box-shadow: 0 0 25px #9090d544;
}

.typing-text{
 font-size: 34px; 
 font-weight: 600; 
 min-width: 280px; 
}

.typing-text span{
 position: relative;   
}

.typing-text span::before{
content: "Software Developer";
color: #9090d544;
animation:  typing 4s steps(20) infinite, words 20s infinite;
 white-space: nowrap;
 overflow: hidden;
 display: inline-block;
}
.typing-text span::after{
    content: "";
    position: absolute;
    width: calc(3px);
    height: 100%;
    background-color: #9090d544;
    right: 0;
animation: cursor 0.6s infinite;
}

@keyframes cursor{
  0%{
    background-color: transparent;  
  }
  50%{
    background-color: #9090d544;
  }
  100%{
    background-color: transparent;
  }

}
@keyframes typing{
 from{
    width: 0; 
 } 
 to{
   width: 100%;  
 }   
}

@keyframes words{
   0%, 20%{
    content: " Developer";
   }
   21%, 40%{
    content: "Web Designer" ;
   }

   41%, 60%{
    content:"Software Developer" ;
   }
   61%, 80%{
     content: "UI/UX Enthusiast";
   }

   81%, 100%{
    content: "Script Writer";
   }
   
}

@media(max-width: 600px){
.home{
    margin: 3rem 2rem;
}    
}

@media(max-width: 850px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2rem;
    }

    .home-content h1{
        font-size: 3.5rem;
    }

   .home-img{
    width: 70vw;
    margin-top: 4rem;
   } 
}

@media (max-width: 850px) {
  .nav-links {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 0 20px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }

  .nav-links.active {
    max-height: 700px;
    opacity: 1;
    transform: translateY(0);
  }

  .hamburger {
    display: block;
    color: rgba(242, 240, 236);
background: none; 
 border: none;
 outline: none;



  }
  html {
  scroll-behavior: smooth;
}

}
 #experience {
  background: linear-gradient(135deg, #1a1a6b, #2e2eb8);
  color: white; /* optional: makes text stand out */
  padding: 50px 20px; /* optional: spacing */
}

#service {
  background: linear-gradient(135deg, #0a0a3d, #1a1a6b);
}
#skills {
  background: linear-gradient(135deg, #2e2eb8, #4a4aff);
}
#contact {
  background: linear-gradient(135deg, #4a4aff, #00ffff);
}




