*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
html{
    scroll-behavior:smooth;
    scroll-padding-top: 80px;
}

body{
    color: #ededed;
    background:#081b29;
}

/* Navbar */
nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 40px;
background:#051129;
position:fixed;
width:100%;
top:0;
z-index:1000;
}

nav ul{
display:flex;
gap:20px;
list-style:none;
}
nav ul li:nth-child(1) a { animation-delay: 0.2s; }
nav ul li:nth-child(2) a { animation-delay: 0.4s; }
nav ul li:nth-child(3) a { animation-delay: 0.6s; }
nav ul li:nth-child(4) a { animation-delay: 0.8s; }
nav ul li:nth-child(5) a { animation-delay: 1s; }

nav a{
text-decoration:none;
color: #fff;
font-weight:bold;
font-size: 20px;
opacity: 0;
animation: slideTop 1s ease forwards
}

nav a:hover{
    color: #0ef;
}

.logo{
    position: relative;
    font-size: 30px;
    color:#fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

/* Hero */
.home{
    position: relative;
    width: 100%;
    justify-content: space-between;
    text-align: left;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    color:white;
}
.home-content{
    max-width: 500px;
}
.home-content h3{
    font-size: 30px;
    font-weight: 700;
    margin: 5px 0;
    letter-spacing: 1px;
    opacity: 1;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}
.home-content h3 span{
    color: #0ef;

}
.home-content h1{
    font-size: 55px;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: 1px;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}
.home-content p{
    text-align: left;
    max-width: 450px;
    line-height: 1.3;
    font-size: 18px;
    letter-spacing: 1px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;

}
.home-sci a:nth-child(1){ animation-delay: 0.2s; }
.home-sci a:nth-child(2){ animation-delay: 0.4s; }

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    animation: slideLeft 1s ease forwards;
    margin: 30px 15px 30px 0;
}
.home-sci a:hover{
    background: #0ef;
    color:#081b29;
    box-shadow: 0 0 20px #0ef;
}


/* Buttons */
.btn-box{
    display: inline-block;
    padding: 10px 20px;
    background: #0ef;
    border-radius: 40px;
    font-size: 13px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 1s;
    box-shadow: 0 0 5px #0ef,
    0 0 15px #0ef;
    transition: 0.3s;
}
.btn-box:hover{
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan;
    transform: scale(1.05);
}

.about{
    text-align: center;
}
.about h2{
    font-size: 40px;
}
.about h2 span{
    color: #0ef;
}
.about p{
    color: aliceblue;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 4rem;
    padding: 5px;
}

/* Sections */
section{
padding:120px 20px;
text-align:center;
}

/* Skills Section */
.skills h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

/* Center container */
.skill-container {
  max-width: 500px;
  margin: auto;
}

/* Each skill */
.skill-bar {
  margin: 20px 0;
}

/* Top row */
.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Icons */
.skill-info i {
  font-size: 22px;
  margin-right: 8px;
}

/* Different colors */
.bxl-html5 { color: #e34c26; }
.bxl-css3 { color: #264de4; }
.bxl-javascript { color: #f0db4f; }
.bxl-python { color: #306998; }

/* Text */
.skill-info span {
  font-size: 16px;
}

/* Percentage */
.percent {
  font-weight: bold;
  color: #0ef;
}

/* Bar background */
.bar {
  width: 100%;
  height: 8px;
  background: #1f242d;
  border-radius: 10px;
  overflow: hidden;
}

/* Progress */
.progress {
  height: 100%;
  width: 0;
  background: #0ef;
  border-radius: 10px;
  animation: fillBar 2s ease forwards;
}

/* Skill widths */
.progress.html { --width: 90%; }
.progress.css { --width: 80%; }
.progress.js { --width: 70%; }
.progress.python {--width: 65%; }

/* Animation */
@keyframes fillBar {
  from { width: 0; }
  to { width: var(--width); }
}
/* Projects */
.projects h2{
    font-size: 35px;
    text-align: center;
}
.project-container{
padding: 50px ;
display: flex;
flex-wrap: wrap;
gap: 30px;
margin-top: 50px;
width: 100%;
justify-content: center;
}

.project-card{
background-color: transparent;
padding: 20px;
width: 300px;
font-size: 13px;
border-right: 10px;
border-radius: 20px;
transition: background 0.5s , transform 0.5s;
box-shadow: 1px 1px 20px #012290f7,
1px 1px 40px #0053b8f7;
opacity: 0;
animation: fadeIn 0.8s ease forwards;

}
.project-card h3{
    font-size: 22px;
    margin:15px 0;
}
.project-card p{
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
}
.project-card:hover{
    transform: translateY(-10px);
   
}

.project-card img{
width:100%;
border-radius:10px;
transition:0.4s;
object-fit: contain;
max-height: 180px;
display: block;
margin: auto;
}
.project-card img:hover{
transform: scale(1.05);
transition: 0.3s;
}
.tech span{
background:white;
color:#051129;
padding:4px 10px;
margin:3px;
border-radius:10px;
font-size:12px;
}

.project-card a{
display: inline-block;
margin-top: 10px;
margin-right: 10px;
text-decoration: none;
background:#0ef;
color: #051129;
border-radius:20px;
box-shadow: 0 0 5px #0ef,
0 0 25px #0ef;
padding: 8px 15px;
font-size: 12px;
transition: 0.3s;
}
.project-card a:hover{
     box-shadow: 0 0 5px cyan,
    0 0 25px cyan, 0 0 50px cyan;
}

.project-card:nth-child(1){ animation-delay: 0.2s; }
.project-card:nth-child(2){ animation-delay: 0.4s; }
.project-card:nth-child(3){ animation-delay: 0.6s; }
@keyframes fadeIn{
  from{
    opacity: 0;
    transform: translateY(30px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
/* contact*/
.contact {
  padding: 60px 10%;
  text-align: center;
}

.contact p {
  margin: 10px 0 30px;
  color: #ccc;
}

/* Form */
.contact form {
  max-width: 500px;
  margin: auto;
}
.contact h2{
    font-size: 35px;
}
.contact p{
    font-size: 20px;
}
/* Inputs */
.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  outline: none;
  border-radius: 8px;
  background: #1f242d;
  color: white;
}

/* Button */
.contact button {
  padding: 10px 20px;
  background: #0ef;
  border: none;
  border-radius: 20px;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 5px #0ef,
    0 0 15px #0ef;
}

.contact button:hover {
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background: #1f242d;
  color: #ccc;
  font-size: 17px;
}

@keyframes slideRight{
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideLeft{
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}
@keyframes slideTop{
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}
@keyframes slideBottom{
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}