html{
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: #0a0a0f;
    font-family: 'Orbitron', sans-serif !important;
    overflow-x: hidden;
    position: relative;
}

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.container > * {
  position: relative;
  z-index: 1;
}
canvas {
  filter: drop-shadow(0 0 6px #8A2BE2)
          drop-shadow(0 0 8px #00BFFF)
          drop-shadow(0 0 12px #1E90FF);
}


header{
    width: 100% !important;
    height: 4rem !important;
}
nav{
    z-index: 9999;
    width: 40% !important;
    height: 3rem !important;
    position: fixed !important;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(
        90deg,
        rgba(54, 54, 54, 0.16),
        rgba(119, 119, 119, 0.12)
    );
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 1.2rem;
}
a{
    text-decoration: none !important;
}

.nav-item, .nav-item:hover{
    font-size: clamp(0.8rem, 1.2vw, 3rem);
    color: aliceblue;
    font-weight: bold;
    transition: 0.3s ease-in-out background-color;
}
.nav-item.active{
    background: linear-gradient(90deg, #8A2BE2, #1E90FF, #8A2BE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 5px #8A2BE2 !important;
    transition: 0.2s ease-out all;
}
.gradient-text {
    background: linear-gradient(120deg, #8A2BE2, #1E90FF, #8A2BE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.img-div {
  width: clamp(8rem, 15vw, 10rem);
  height: clamp(8rem, 15vw, 10rem); 
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  border: 3px solid #1E90FF;
  padding-bottom: 15px !important;
  border-radius: 50% !important;
}

.img-div img {
  object-fit: cover;
  display: block;
}

.name{
    font-size: clamp(1.5rem, 2.8vw, 3rem);
}
.specialists{
    font-size: clamp(0.7rem, 1.1vw, 2.7rem);
    color: aliceblue;
}

.container {
  gap: 1rem;
  flex-wrap: wrap;
}

.card-div{
    flex-grow: 1;
    flex-basis: clamp(5rem, 20%, 15rem);
    width: clamp(5rem, 5vw, 15rem);
    height: fit-content !important;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(
        90deg,
        rgba(54, 54, 54, 0.16),
        rgba(119, 119, 119, 0.12)
    );
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 1rem;
    transition: all 0.4s ease;
}
.skill-icon{
    font-size: clamp(1.2rem, 1.1vw, 2.7rem);
    color: aliceblue;
    background: linear-gradient(120deg, #8A2BE2, #1E90FF, #8A2BE2) !important;
    padding: 0.6rem 0.9rem !important;
}

.card-div:hover{
    box-shadow: 0 0px 20px rgba(138, 43, 226, 0.3),
        inset 0 0 20px rgba(30, 144, 255, 0.2);
    transition: all 0.4s ease;
}

.project-img{
    border-top-right-radius: 24px;
    border-top-left-radius: 24px;
}

.project-link {
    color: aliceblue !important;
    background: linear-gradient(
        90deg,
        rgba(137, 43, 226, 0.3) 0%,
        rgba(137, 43, 226, 0.05) 100%
    );
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(137, 43, 226, 0.3);
}

.project-link:hover {
    color: aliceblue !important;
    background-size: 100% 100%;
}

.project-card{
    padding: 0 !important;
}

.contact-btn{
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(
        90deg,
        rgba(54, 54, 54, 0.16),
        rgba(119, 119, 119, 0.12)
    );
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.06);
    padding: 0.6rem 0.9rem;
    color: aliceblue;
    transition: cubic-bezier(0.7, 1, 0.7, 0.7) 0.2s all;
}
.contact-btn:hover{
    transform: translateY(-5px);
}
.github:hover{
    color: aliceblue;
    border-color: black;
    background-color: black;
}
.linkedin:hover{
    color: aliceblue;
    border-color: #1E90FF;
    background-color: #1E90FF;
}
.instagram:hover{
    color: aliceblue;
    border-color: rgb(255, 0, 106);
    background-color: rgb(255, 0, 106);
}
.envelope:hover{
    color: aliceblue;
    border-color: black;
    background-color: black;
}
@media(max-width: 1080px) {
    nav{
        width: 80% !important;
    }
    .card-div{
        flex-basis: 90% !important;
        height: auto !important;
    }
}