 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  font-family: 'Poppins', sans-serif;
}

 
 
 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "poppins";

 }

 
:root {
  --bg-color: #0f172a;            
  --second-bg-color: #1e293b;     
  --text-color: #f1f5f9;          
  --main-color: #6366f1;          
}
 

html{
    font-size: 9px;
    overflow-x: hidden;

}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 15%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
  
   

}
#menu-icon{
   font-size: 3rem; 
   color: var(--main-color);
   display: none;

}

.logo span {
  color: var(--main-color);
  font-weight: 900;
  font-size: 3rem;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo span:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Underline effect on hover */
.logo span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.4s ease;
}

.logo span:hover::after {
  width: 100%;
}



span{
    background: #6366f1;
        
    background-clip: text;
    color: transparent;
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;

}
.navbar a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
.gradient-btn{
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background:linear-gradient(135deg, #6366f1, #a78bfa);
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: none;
    text-wrap: nowrap;
    
}
.gradient-btn:hover{
    transform: scale(1.1);
}

section{
    min-height: 100vh;
    padding: 10rem 15%;
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;

}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;

}

.home-content h1{
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;

}
.home-content h3{
    margin: 1rem 0;
    font-size: 4rem;
}

.home-content p{
    font-size: 1.4rem;
}
.home-img img{
    width: 20vw;
    border-radius: 23%;
   
    transition: 0.4s ease-in-out;
    
}
.home-img img:hover{
   width: 21vw;
}

.social-icons {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-icons a {
  font-size: 2.5rem;
  color: var(--text-color);
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--main-color);
  transform: scale(1.2) translateY(-4px);
}

.btn-group{
    display: flex;
    gap: 1.5rem;
}
.btn{
    display: inline-block;
    margin: 2rem 0;
    padding: 1rem 2.5rem ;
    background-color: var(--main-color);
    
    border-radius: 3rem;
    font-size: 1.8rem;
    color: white;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    
}
.btn:hover{
    transform: scale(1.1);
}
.btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    
}
.btn-group a:nth-of-type(2):hover{
    background-color: var(--main-color);
    color: white;
}
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background: var(--second-bg-color);
}

.about-img img{
    width: 20vw;
    border-radius: 50%;
    transition: 0.4s ease-in-out;
   
}
.about-img img:hover{
    width:22vw ;
}
.about-content h2{
    font-size: 6rem;
    text-align: left;
}
.about-content p{
    font-size: 1.8rem;
}
.about-content .btn{
    margin: 3rem 0;
}

::-webkit-scrollbar{
    width: 16px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);

}
.heading{
    text-align: center;
    font-size: 6.5rem;
    margin: 1.9rem 0;
}

.services{
    background-color: var(--bg-color);
    color: black;
}

.services h2{
    color: var(--text-color);
}
.services-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    align-items: center;
    gap: 3.5rem;
}

.service-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 440px;
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.4s ease-in-out;
}
.service-box:hover{
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.1);
    
}
.service-info{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 6rem;
}
.service-info h4{
   font-size: 4rem;
   margin: 2rem 0;
   font-weight: 800; 
}
.service-info p{
   font-size: 1.5rem; 
   font-weight: 600;
   line-height: 1.7;
}
.service-info i{
    font-size: 8rem;


}
.typewriter-text {
  color: var(--main-color);
  font-weight: 600;
  border-right: 2px solid var(--main-color);
  white-space: nowrap;
  overflow: hidden;
}

.skills {
  margin-top: 3rem;
  width: 100%;
}

.skill {
  margin-bottom: 2rem;
}

.skill p {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3rem;
  height: 1.8rem;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--main-color);
  width: 0;
  border-radius: 3rem;
  animation: fillBar 2s ease forwards;
}

.skill-level::after {
  content: attr(style);
  position: relative;
  float: right;
  margin-right: 10px;
  color: white;
  font-size: 1.2rem;
}

@keyframes fillBar {
  to {
    width: var(--level);
  }
}

.projects {
  background-color: var(--second-bg-color);
  padding: 8rem 10%;
  color: var(--text-color);
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5rem;
  place-items: center;
}

.project-card {
  background-color: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
  max-width: 350px;
}

.project-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 1rem;
  margin-bottom: 2rem;
  transition: 0.3s ease-in-out;
}

.project-card h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project-card p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #cbd5e1;
}

.project-card .btn {
  font-size: 1.6rem;
  padding: 1rem 2rem;
  background-color: var(--main-color);
  border-radius: 2.5rem;
  color: white;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  display: inline-block;
  text-decoration: none;
  border: 2px solid transparent;
}

.project-card .btn:hover {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.project-card:hover {
  transform: scale(1.05);
  background-color: var(--second-bg-color);
  color: var(--main-color);
}


.certificates {
  background-color: var(--bg-color);
  padding: 8rem 10%;
  color: var(--text-color);
}

.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5rem;
  place-items: center;
}

.certificate-card {
  background-color: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
  max-width: 350px;
}

.certificate-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 1rem;
  margin-bottom: 2rem;
  transition: 0.3s ease-in-out;
}

.certificate-card h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.certificate-card p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #cbd5e1;
}

.certificate-card .btn {
  font-size: 1.6rem;
  padding: 1rem 2rem;
  background-color: var(--main-color);
  border-radius: 2.5rem;
  color: white;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  display: inline-block;
  text-decoration: none;
  border: 2px solid transparent;
}

.certificate-card .btn:hover {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.certificate-card:hover {
  transform: scale(1.05);
  background-color: var(--second-bg-color);
  color: var(--main-color);
}



.contact{
    background-color: var(--second-bg-color);

}
.contact h2 {
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;

}

.contact form .input-box input,
.contact form textarea
{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
}

.footer{
    background-color: var(--bg-color);
    padding: 18px 0;
}

.footer .social-icons{
    text-align: center;
}

.footer ul{
    text-align: center;
    font-size: 1.8rem;
}

.footer ul li{
    display: inline-block;
    margin-left: 18px;
}

.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
    margin-bottom: 60px;

}

.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright{
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

.project-card:hover {
  transform: scale(1.05);
  background-color: var(--second-bg-color);
  color: var(--main-color);
}

html {
  scroll-padding-top: 100px;
}

.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

html {
  scroll-padding-top: 47px;
  scroll-behavior: smooth;
}

/* Modal Base Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 23, 42, 0.85); /* Semi-transparent dark */
}

.modal-content {
  background-color: #1e293b;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  color: var(--text-color);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
}

.modal-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.modal-content h2{
    font-size: 25px;
}

.close-btn {
  color: #fff;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: var(--main-color);
}

@media(max-width:1285px){
    #menu-icon{
        display:block;
    }

    .navbar{
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3rem;
        background:rgba(0, 0, 0, 0.8);
        border-bottom-left-radius:2rem ;
        border-left: 2px solid var(--main-color);
        border-bottom:2px solid var(--main-color) ;
}

.navbar a{
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
}

.navbar.active{
    display: block;
    


}
.gradient-btn{
    display:none ;

}
.home{
    flex-direction: column-reverse;
    margin: 5rem 0;
    gap: 5rem;

}
.home-content{
    align-items: center;
    text-align: center;
}
.home-img img{
    width: 56vw;
}
.about{
   flex-direction: column-reverse; 
   text-align: center;
}
.about h2{
    text-align: center;
    margin: 2rem 0;
}
.about img{
    width: 52vw;
}
.contact form{
    flex-direction: column;
}

}

.home-content h1 {
  font-size: clamp(3rem, 8vw, 8rem);
}

.services {
  
  text-align: center;
}

@media (max-width: 768px) {
  .services-container {
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
  }

  .service-box {
    margin: 0 auto;
  }

  .service-info {
    padding: 4rem 2rem;
  }
}
















