*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   


}
html,body{
    width: 100%;
    height: 100vh;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    /* background: linear-gradient(135deg, #0a0a1a, #121212); */
     user-select: none;
           scroll-behavior: smooth;


}

nav{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(10,10,30,0.8);
    position: fixed;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(138,43,226,0.2);
}

.nav-logo{
    font-size: 1.8rem;
    font-weight: bold;
    color:#8a2be2;
    text-shadow: 0 0 10pxb  #8a2be2, 0 0 20px rgba(138,43,226,0.2);
    letter-spacing: 1px;
}
.nav-links{
    display: flex;
    gap: 2rem;
    animation:float 4s ease-in-out infinite;

}

@keyframes float{
0%{transform:translateY(0)}
50%{transform:translateY(-10px)}
100%{transform:translateY(0)}
}

.nav-links a{
    text-decoration: none;
    color:#e0e0e0;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3 ease;
    position: relative;
        font-weight: bold;

}
.nav-links a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom:-5px;
    background-color: #8a2be2;
    transition: width 0.3s ease;

}

.nav-links a:hover{
    color:white;
    transition: all 0.3 ease;


}
.nav-links span{
    color:#8a2be2;
}
.nav-links span:hover{
    color: orange;
}
.nav-links a:hover::after{
    width: 100%;

}
.nav-contact img{
    cursor:pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
   
  
}
.nav-contact{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor:pointer;
    transition: 0.4s ease;

}



.nav-contact:hover{
    box-shadow: 0 6px 20px #8a2be2 ;
    transform: translateY(-4px);
    transition: 0.4s ease;

}

.container{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8rem 2rem 2rem;
    min-height: 100vh;
    gap: 2rem;
    flex-wrap: wrap;

}
.content{
   flex: 1 1 45%;
   max-width: 600px;
   z-index: 1;
}
.content h1{
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background:linear-gradient(135deg, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.content p{
    font-size: 1.2rem;
    color:#b8b8b8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.buttons{
    display: flex;
    gap:1.5rem;
    margin-bottom: 3rem;

}

.buttons a button:hover{
    color:orange;
    
}
.buttons  button{
    background: transparent;
    border: 2px solid #8a2be2;
    color:white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;

}
.buttons  button::before{
    content: '';
    position:absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #8a2be2);
    
    transition: width 0.3s ease;
    z-index: -1;
   
}
.buttons button:hover::before{
    width: 100%;
    color:white;
    
  
     
    
}

.buttons button:first-child{
    background: linear-gradient(135deg, #8a2be2);
    box-shadow:  0 4px 15px rgba(138,43,226,0.2) ;
    
}
.buttons button:first-child:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.2) ;
    
}
 #sec {
    color:#8a2be2;
    transition: all 0.3s ease;
    background: transparent;
}
 #sec:hover{
    color:orange;
    transition: all 0.3s ease;
    
}
.social-icons{
    display: flex;
    gap: 1.5rem;
}
.social-icons a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 50%;
    color: #8a2be2;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid  rgba(138, 43, 226, 0.3);
        text-decoration: none;

}
.social-icons a:hover{
    background:#8a2be2;
    color:orange;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(138,43,226,0.2);
    font-weight: bold;

    

}

.bg-main-container{
    flex: 1 1 45%;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    max-width: 600px;

}
.bg-main{
    width: 100%;
    height: 375px;
    display: flex;
    justify-content: center;
    align-items: center;
}
spline-viewer{
    width: 100%;
    user-select: none;
    pointer-events: none;
    height: 500px;



}
.bg-elements::before,
.bg-elements::after{
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138,43,226,0.2));
    pointer-events: none;
    filter:blur(20px)
}
.bg-elements::before{
    top: 10%;
    left: 10%;

}
.bg-elements::after{
    bottom: 10%;
    right: 10%;
    
}
/* Hamburger Menu */
.hamburger{
    display: none;
    cursor:pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 100;
}
.hamburger span{
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background: #8a2be2;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}
.hamburger span:nth-child(1){
    top: 0;

}
.hamburger span:nth-child(2),
.hamburger span:nth-child(3){
    top: 10px;

}
.hamburger span:nth-child(4){
    top: 20px;

}

.hamburger span:nth-child(1),
.hamburger span:nth-child(4){
    top: 10px;
    width: 0%;
    left: 50%;


}

.hamburger span:nth-child(2){
    transform: rotate(45deg);
}


.hamburger span:nth-child(3){
    transform: rotate(-45deg);
}

.mobile-menu{
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background:rgba(10, 10 ,30, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    transition: all 0.5s ease;
    z-index: 99;
    padding: 5rem 2rem 2rem;
    border-left: 1px solid rgba(138,43,226,0.3);
    box-shadow: -5px 0 30px rgba(0 0 0 0.3);



}
.mobile-menu.open{
    right: 0;
}
.mobile-menu a{
    color:#e0e0e0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position:relative;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;

}

.mobile-menu a::after{
    content: '';
    position:absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #8a2be2;
    transition: width 0.3s ease;

}

.mobile-menu a:hover{
    color:#fff;
}
.mobile-menu a:hover::after{
    width: 100%;
    
}
.mobile-menu .nav-contact{
    margin-top: 1rem;
    width: 80%;
}
.close-btn{
  position:absolute;
  top:1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color:#e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.close-btn:hover{
    color:#8a2be2;
    transform: rotate(90deg);
}
.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0 0 0 0.5);
    z-index: 98;
    opacity:0;
    visibility: hidden;
    transition: all 0.3s ease;


}

.overlay.active{
    opacity: 1;
    visibility: visible;
}

@media (max-width:992px){
    .content h1{
        font-size: 2.8rem;
    }
}
@media (max-width:768px){
    .container{
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 6rem;
    }
    .bg-main-container,
.content{
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;


   
}

.bg-main{
    width: 100%;
    height: 238px;
}
spline-viewer{
    margin-left: 70px;
    width: 100%;
    height: 350px;

}
.nav-links{
    display: none;
}
.nav-contact{
    display: none;
}
.hamburger{
    display: block;
}
.buttons{
    justify-content: center;
}
.social-icons{
    justify-content: center;
}
.content h1{
    font-size: 2.5rem;
}

}

@media (max-width:480px){
    .content h1{
        font-size: 2rem;
    }
    .content p{
        font-size: 1rem;
    }

    .buttons{
        flex-direction: column;
        gap: 1rem;
    }
     .buttons button{
        width: 100%;
    }
    spline-viewer{
        height: 250px;
     }
     .mobile-menu{
        width: 85%;
     }
     .bg-elements::before,
     .bg-elements::after
     {
        width: 200px;
        height: 200px;

     }
      
    }

    /* project section */
     .projects {
      padding: 50px;
      text-align: center;
      background: black;
    }
    .projects h2 {
      font-size: 36px;
      color: #a64dff;
      margin-bottom: 40px;
    }
    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
    }
    .project-card {
      /* background-color: #1a1a1a; */
      border-radius: 10px;
      overflow: hidden;
      transition: transform 0.3s ease;
    }
    .project-card:hover {
      transform: scale(1.05);
     
    }
    .project-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }
    .project-card h3 {
      margin: 15px;
      color: #fff;
    }
    .project-card p {
      margin: 0 15px 15px;
      color: #aaa;
      font-size: 14px;
    }
    .project-card .buttons {
      margin: 15px;
    }
       .project-card .buttons i{
        font-size:1.2rem;
        color:#8a2be2;
                    transition: all 0.3s ease;

       }
           .project-card .buttons i:hover{
            color:orange;
            transform: translateY(-3px);
            transition: all 0.3s ease;
            font-weight: bold;
           }
   

    /* project card 8 */
    
    .project-card8 {
      background: #111;
      color: #fff;
      padding: 20px;
      border-radius: 12px;
      text-align: center;
      width: auto;
      height: 185px;
      box-shadow: 0 0 20px rgba(0,255,200,0.4);
    }

    .project-info8 {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 15px;
      animation: glowText 3s infinite alternate;
    }

    .project-info8 i {
      font-size: 1.5rem;
      animation: pulseIcon 2s infinite;
    }

    h3 {
      margin: 10px 0;
      font-size: 1.4rem;
      color: #00ffcc;
    }

    .buttons8 {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 15px;
    }
.buttons8 #pro{
    color:blueviolet;
    font-size: 1.3rem;
    transition: 0.3s ease;  

}
  .buttons8 #pro:hover{
    color:orange;
transition: 0.3s ease;  
            transform: translateY(-3px);

}

  

    

    /* Text glow animation */
    @keyframes glowText {
      from { color: #fff; text-shadow: 0 0 5px #fff; }
      to { color: #00ffcc; text-shadow: 0 0 15px #00ffcc; }
    }

    /* Icon pulse animation */
    @keyframes pulseIcon {
      0% { transform: scale(1); color: #fff; }
      50% { transform: scale(1.3); color: #ff4081; }
      100% { transform: scale(1); color: #fff; }
    }