*{
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  scroll-behavior: smooth;
  font-family:'Arial Narrow Bold', sans-serif;
}
:root{
  --bg-color: #080808;
  --second-bg-color: #131313;
  --text-color: white;
  --main-color: #00ffee;
}
html{
  font-size: 60%;
  overflow-x: hidden;
}
body{
  background: var(--bg-color);
  color: var(--text-color);
}

.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4rem 8% 4rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.logo{
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3 ease;
}
.logo:hover{
  transform: scale(1.1);
}
.logo span{
  text-shadow: 0 0 var(--main-color);
}

.menu-icon {
  display: none;
  font-size: 3rem;
  color: var(--main-color);
  cursor: pointer;
}

.navbar a{
font-size: 1.8rem;
color: var(--text-color);
margin-left: 4rem;
font-weight: 500;
transition: 0.3s ease;
border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a.active{
color: var(--main-color);
border-bottom: 3px solid var(--main-color);
}

section{
  min-height: 100vh;
  padding: 10rem 8% 10rem;
}

.home{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20rem;
}
.home-content{
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  margin-top: 3rem;
}

span{
  color: var(--main-color);
}
.logo-span{
color: var(--main-color);
}

.home-content h3{
margin-bottom: 2rem;
margin-top: 1rem;
font-size: 3.5rem;
}
.home-content h1{
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
}

.home-img{
  border-radius: 50%;
}
img{
  height: 405px;
}
.home-img img{
  position: relative;
  width: 30vw;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}
.home-img img:hover{
    box-shadow:0 0 25px var(--main-color),
               0 0 50px var(--main-color),
               0 0 100px var(--main-color);
}

.home-content p{
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
}

.text-animation{
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}
.text-animation span{
  position: relative;
}
.text-animation span::before{
  content: "Web Developer";
  color: var(--main-color);
  animation: words 20s infinite;
}
.text-animation span::after{
 content: "";
 background-color: var(--bg-color);
 position: absolute;
 width: calc(100% + 8px);
 height: 100%;
 border-left: 3px solid var(--bg-color);
 right: -8px;
 animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}


@keyframes cursor{
to{
  border-left: 2px solid var(--main-color);
}
}
@keyframes words{
  0%,
  20%{
  content: "Frontend Developer";
   }
  21%,
  40%{
  content:"Web Designer";
  }
  41%,
  60%{
  content: "UI/UX Designer";
  }
  61%,
  80%{
  content: "Graphic Designer";
  }
  81%,
  100%{
  content:"3D Animator";
  }
}
@keyframes typing{
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95%{
  width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85%{
  width: calc(100% + 8px);
  }
}

.container {
 width: 90%;
 max-width: 1100px;
 margin: auto;
}

.section {
  min-height: auto;
  padding: 6rem 8% 10rem;
  text-align: center;
}

.section h2 {
  font-size: 3.5rem;
  margin-bottom: 30px;
  color:  var(--main-color);
}

.section p {
  margin: 15px auto;
  font-size: 2rem;
  color: #ccc;
  line-height: 26px;
}

.about{
  padding: 1rem 8% 10rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 35px;
}

.skill {
  background-color: var(--bg-color);
  color: var(--main-color);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 2rem;
  font-weight: 500;
  transition: 0.3s ease;
  border: 1px solid var(--main-color);
  cursor: pointer;
}

.skill:hover {
  color: var(--text-color);
  transform: scale(1.1) translateY(-6px);
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background-color: var(--bg-color);
  padding: 20px;
  border: 1px solid var(--main-color);
  border-radius: 12px;
  transition: 0.3s;
}

.project-card:hover {
  transform: scale(1.08) translateY(-5px);
  background-color: var(--second-bg-color);
}

.project-card h3 {
  color: var(--main-color);
  margin-bottom: 10px;
  font-size: 2rem;
}

.project-card p {
  color: #ccc;
  font-size: 1.6rem;
}

.contact p {
  color: #ccc;
  margin-bottom: 20px;
}

.contact-info a {
  color: var(--main-color);
  text-decoration: none;
  font-weight: bold;
}

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 30px auto 0;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  Border: none;
  border-radius: 8px;
  background-color: var(--second-bg-color);
  color: #eee;
  font-size: 1.6rem;
}

.contact-form button {
  background-color: var(--main-color);
  color: var(--second-bg-color);
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 2rem;
}

.contact-form button:hover {
 color: var(--text-color);
 box-shadow: 0 0 25px var(--main-color);
 background-color: var(--main-color);
}

.footer {
  background-color: var(--second-bg-color);
  padding: 20px 0;
  text-align: center;
  font-size: 1.8rem;
  border-top: 1px solid #222;
  opacity: 0.6;
}

.custom-confirm-btn{
  background-color: var(--bg-color);
  color: var(--main-color);
  border: 1px solid var(--main-color);
  box-shadow: inset 0 0 0 1px var(--main-color);
  font-size: 1rem;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}
.custom-confirm-btn:hover{
  color: var(--text-color);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
}

@media (max-width: 991px){
  .home{
    flex-direction: column-reverse;
    text-align: center;
  }

  .home-img img{
    width: 220px;
  }

  .home-content h1{
    font-size: 5rem;
  }
}

@media (max-width: 600px){
  html{
    font-size: 50%;
  }

  section{
    padding: 4rem 5%;
  }
}

@media (max-width: 888px) {
  .header{
    padding: 2.5rem 8%;
  }

  .logo{
    font-size: 2.5rem;
  }
  .menu-icon {
    display: block;
    font-size: 3rem;
    color: var(--main-color);
    cursor: pointer;
    z-index: 100;
  }

  .section{
    padding-top: 3rem;
    padding-bottom: 5rem;
  }
  .navbar {
    position: absolute;
    top: 100%;
    right: 5%;
    width: max-content;
    background-color: var(--second-bg-color);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border: 1px solid var(--main-color);
    border-radius: 8px;
    z-index: 99;
    display: none;
    transition: all 0.3s ease;
  }

  .navbar a {
    margin: 0.5rem 0;
    font-size: 1.8rem;
    color: var(--text-color);
  }

  .navbar.active {
    display: flex;
  }

  .home{
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20rem;
    padding-bottom: 1rem;
    gap: 5rem;
  }

  .about{
    padding-top: 1rem;
  }

  .home-img{
    order: -1;
  }

  .home-img img{
    margin-top: 0;
    margin-bottom: 1rem;
    width: 200px;
  }

  .home-content{
    margin-top: 1rem;
    align-items: center;
    text-align: center;
  }

  .home-content h1{
    font-size: 4rem;
    line-height: 1.2;
    text-align: center;
  }

  .home-content h3{
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .text-animation{
    font-size: 2.2rem;
  }

  .home-content p{
    font-size: 1.8rem;
    line-height: 1.8;
    padding: 0 1rem;
    margin-top: 2rem;
    margin-bottom: 0;
  }

  .text-animation span::after{
    width: calc(100% + 4px);
  }
}


