* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #ededed;
  background: #081b29;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: #051129;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.navbar a {
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  transition: .3s;
}

.navbar a:hover {
  color: #0ef;
}

.home {
  width: 100%;
  height: 100vh;
  background: #081b29;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 70px 10% 0;
}

.home-content {
  max-width: 600px;
}

.home-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.home-img img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #00abf0;
  box-shadow: 0 0 40px #00abf0, 0 0 80px #00abf0;
}

.home-content h3 {
  font-size: 32px;
  font-weight: 700;
}
.home-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin: -3px 0;
}
.home-content p {
  font-size: 20px;
}

.home-sci {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.home-sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid #0ef;
  border-radius: 50%;
  font-size: 22px;
  color: #0ef;
  background: transparent;
  transition: 0.3s ease;
  text-decoration: none;
  box-shadow: 0 0 10px #0ef, 0 0 20px #0ef inset;
}

.home-sci a:hover {
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 20px #0ef, 0 0 40px #0ef;
  transform: scale(1.1);
}

.btn-box {
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
}

.btn-box:hover {
  box-shadow: 0 0 5px cyan,
              0 0 25px cyan, 0 0 50px cyan,
              0 0 100px cyan, 0 0 200px cyan;
}

.about {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.5rem;
  padding: 80px 10%;
}

.about-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #00abf0;
}

.about-text h2 {
  font-size: 60px;
}
.about-text h2 span {
  color: #0ef;
}
.about-text h4 {
  font-size: 29px;
  font-weight: 600;
  color: #fff;
  line-height: 1.7;
  margin: 15px 0 30px;
}
.about-text p {
  color: aliceblue;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4rem;
}

/* Skills Section */
.sub-title {
  text-align: center;
  font-size: 60px;
  margin-top: 50px;
}
.sub-title span {
  color: #0ef;
}

.skills {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
  padding: 40px 10%;
}

.container1 {
  flex: 1 1 400px;
  padding: 20px;
}

.headings {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

/* Technical Skills Bars */
.Technical-bars .bar {
  margin: 25px 0;
}
.Technical-bars .bar .info span {
  font-size: 18px;
  font-weight: 500;
}
.Technical-bars .bar .progress-line {
  position: relative;
  border-radius: 10px;
  width: 100%;
  height: 8px;
  background-color: #000;
}
.Technical-bars .bar .progress-line span {
  height: 100%;
  background: #0ef;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px;
}
.progress-line.html span { width: 70%; }
.progress-line.css span { width: 60%; }
.progress-line.java span { width: 50%; }
.progress-line.javascript span { width: 45%; }

/* Radial Progress Circles */
.radial-bars {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
}
.radial-bar {
  width: 45%;
  height: 170px;
  position: relative;
}
.radial-bar svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 120px;
  height: 120px;
}
.progress-bar {
  stroke-width: 10;
  stroke: #000;
  fill: transparent;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  stroke-linecap: round;
}
.path {
  stroke-width: 10;
  stroke: #0ef;
  fill: transparent;
  stroke-dasharray: 502;
  stroke-linecap: round;
}
.path-1 { stroke-dashoffset: 50; }
.path-2 { stroke-dashoffset: 175; }
.path-3 { stroke-dashoffset: 125; }
.path-4 { stroke-dashoffset: 150; }

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px;
  font-weight: 500;
}
.text {
  width: 100%;
  position: absolute;
  text-align: center;
  bottom: -25px;
  font-size: 17px;
  font-weight: 500;
}

.main-text {
    padding-top: 0;
    margin-top: 60px;
}

.main-text h2 {
    font-size: 60px;
    line-height: 1;
    text-align: center;
}

.main-text h2 span {
    color: #0ef;
}

.portfolio-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(359px, auto));
  gap: 20px;
}

.row {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.row img {
  width: 100%;
  border-radius: 8px;
  display: block;
  transition: transform 0.5s;
}

.layer {
  width: 100%;
  height: 0;  /* initially hidden */
  background: linear-gradient(rgba(0,0,0,0.6), #0ef);
  position: absolute;
  border-radius: 8px;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  transition: height 0.5s;
}

.layer h5 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.layer p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.layer i {
  color: #ff004f;
  margin-top: 20px;
  font-size: 20px;
  background: #e0e0e0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.row:hover img {
  transform: scale(1.1);
}

.row:hover .layer {
  height: 100%; /* expand on hover */
}
.portfolio-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* smaller min size */
  gap: 20px;
  justify-content: center;
}

.row {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  max-width: 320px;   /* limit the size */
  margin: auto;       /* center items */
}

.row img {
  width: 100%;
  height: auto;       /* keep aspect ratio */
  border-radius: 8px;
  display: block;
  transition: transform 0.5s;
}
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 50px 20px;
  margin-top: 80px;
  text-align: center;
}

.contact-text h2 {
  font-size: 60px;
  line-height: 1.2;
}
.contact-text h2 span {
  color: #0ef;
}
.contact-text ul {
  list-style: none;
  padding: 0;
}
.contact-text ul li {
  margin: 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: #0ef;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.contact-icons i {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0ef;
  border-radius: 50%;
  font-size: 22px;
  color: #0ef;
  transition: 0.4s ease;
}
.contact-icons i:hover {
  background: #0ef;
  color: #000;
  box-shadow: 0 0 20px #0ef;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
}
.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  outline: none;
  background: #555557;
  color: #fff;
  font-size: 1rem;
  border-radius: 8px;
}
.contact-form form textarea {
  resize: none;
  height: 180px;
}
.contact-form form .send {
  background: #0ef;
  color: #081b29;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 50px;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.4s ease;
}
.contact-form form .send:hover {
  box-shadow: 0 0 5px cyan,
              0 0 25px cyan,
              0 0 50px cyan,
              0 0 100px cyan;
}
.last-text p {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: rgb(7, 85, 91);
    font-weight: 300;
    margin-top: 70px;
}

.top {
    position: fixed;
    bottom: 2.1rem;
    right: 2.1rem;
}

.top i {
    color: #000;
    background: #0ef;
    font-size: 20px;
    padding: 10px;
    border-radius: 0.5rem;
}
