* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #a1f001;
}

html{
  font-size: 60%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 4rem 15%;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

#menu-icon {
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
}

.logo{
  font-size: 3rem;
  color:var(--text-color);
  font-weight: 800;
  cursor:pointer;
  transition: 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.1);
}

span {
  background: linear-gradient(269deg,  #a1f001 10%, #deff23);
  background-clip: text;
  color: transparent;
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}

.navbar a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

.gradient-btn {
  font-size: 1.8rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: linear-gradient(270deg, #a1f001 10%, #deff23);
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: black;
  border: none;
  text-wrap: nowrap;
}

.gradient-btn:hover{
  transform: scale(1.05);
}

section {
  min-height: 100vh;
  padding: 10rem 15%;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.home-content h1 {
  font-size: 8rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}

.home-content h3 {
  margin: 1rem 0;
  font-size: 4rem;
}

.home-content p {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
}
.home-img img {
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 25px var(--main-color),
              0 0 25px var(--main-color);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  margin: 1rem 0.5rem;
  transition: 0.3s ease-in-out;
}
.social-icons a:hover {
  color: var(--text-color);
  background-color: var(--main-color);
  transform: scale(1.2)translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}
.btn-group {
  display: flex;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: black;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  transform:  scale(1.05);
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color);
}

.btn-group a:nth-of-type(2) {
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
  background-color: var(--main-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  background: var(--second-bg-color);
}

.about-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-wrapper {
  position: relative;
  width: 32vw;
  height: 32vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
  position: relative;
  z-index: 1;
}

.profile-pic:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color),
              0 0 100px var(--main-color);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.orbit-ball {
  position: absolute;
  width: 5.5rem;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--second-bg-color);
  border: 2px solid var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--main-color);
  animation: float 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.5s);
  z-index: 2;
  transition: box-shadow 0.3s ease;
}

.orbit-ball:nth-child(2)  { top: -8%;    left: 50%;  translate: -50% 0; }
.orbit-ball:nth-child(3)  { top: 8%;     right: -8%; }
.orbit-ball:nth-child(4)  { bottom: 8%;  right: -8%; }
.orbit-ball:nth-child(5)  { bottom: -8%; left: 50%;  translate: -50% 0; }
.orbit-ball:nth-child(6)  { bottom: 8%;  left: -8%;  }
.orbit-ball:nth-child(7)  { top: 8%;     left: -8%;  }

.orbit-ball:hover {
  box-shadow: 0 0 20px var(--main-color),
              0 0 40px var(--main-color);
}

.orbit-ball img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: contain;
}

.orbit-emoji {
  font-size: 2.4rem;
  line-height: 1;
}

.about-content h2 {
  font-size: 7rem;
  text-align: left ;
}

.about-content p {
  font-size: 1.8rem;
}

.about-content .btn {
  margin: 3rem 0;
}

::-webkit-scrollbar {
  width: 20px;
}

::webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
}

.heading{
  text-align: center;
  font-size: 7rem;
  margin: 5rem 0;
}

.skills-section {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
  gap: 2.5rem;
}

.skill-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 420px;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
  overflow: hidden;
}

.skill-box:hover {
  background: var(--second-bg-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color);
}

.skill-face {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  inset: 0;
}

.skill-front {
  color: black;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.skill-back {
  position: absolute;
  color: var(--main-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-box:hover .skill-front {
  opacity: 0;
  pointer-events: none;
}

.skill-box:hover .skill-back {
  opacity: 1;
  pointer-events: auto;
}

.skill-face h4 {
  font-size: 3.5rem;
  font-weight: 800;
}

.skill-face p {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-color);
}

.skill-face i {
  font-size: 7rem;
}

.skill-icons {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.projects {
  background-color: var(--second-bg-color);
}

.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  place-items: center;
  gap: 3rem;
  row-gap: 5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  background-color: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 3rem;
  gap: 1.8rem;
  padding: 4rem;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 0 5px var(--main-color);
  transition: 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color);
  transform: scale(1.02);
}

.project-card h3 {
  font-size: 2.8rem;
  line-height: 1.2;
}

.project-card p {
  font-size: 1.5rem;
  line-height: 1.8;
  opacity: 0.85;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.project-tag {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  border: 1.5px solid var(--main-color);
  color: var(--main-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
}

.project-status {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.6;
}

.status-active {
  color: var(--main-color);
  opacity: 0.9;
}

.status-paused {
  color: #888;
  opacity: 1;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.project-links .btn {
  font-size: 1.5rem;
  padding: 0.8rem 2.5rem;
}

.no-repo {
  font-size: 1.4rem;
  opacity: 0.4;
  font-style: italic;
}

.contact {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-subtitle {
  font-size: 1.8rem;
  opacity: 0.6;
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 5rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 900px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 3.5rem;
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  background-color: var(--second-bg-color);
  color: var(--text-color);
  box-shadow: 0 0 8px rgba(161, 240, 1, 0.15);
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.contact-card:hover {
  box-shadow: 0 0 20px var(--main-color),
              0 0 40px var(--main-color);
  transform: scale(1.03);
  border-color: var(--main-color);
}

.contact-card i {
  font-size: 4rem;
  color: var(--main-color);
  flex-shrink: 0;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.contact-label {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--main-color);
  opacity: 0.8;
}

.contact-value {
  font-size: 1.6rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-card.no-link {
  cursor: default;
}

.contact-card.no-link:hover {
  box-shadow: 0 0 20px var(--main-color),
              0 0 40px var(--main-color);
  transform: scale(1.03);
}

.footer {
  background-color: var(--second-bg-color);
  padding: 50px 0;
}

.footer .social-icons {
  text-align: center;
}

.footer ul {
  text-align: center;
  font-size: 1.8rem;
}

.footer ul li {
  display: inline-block;
  margin-left: 20px;
}

.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
}

@media(max-width:1285px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3rem;
    background: rgba(0,0,0,0.8);
    border-bottom-left-radius: var(--main-color);
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }

  .navbar.active {
    display: block;
  }

  .gradient-btn {
    display: none;
  }

  .home {
    flex-direction: column-reverse;
    margin: 5rem 0;
    gap: 5rem;
  }

  .home-content {
    align-items: center;
    text-align: center;
  }

  .home-img img {
    width: 56vw;
  }

  .about {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about h2 {
    text-align: center;
    margin: 2rem 0;
  }

  .orbit-wrapper {
    width: 52vw;
    height: 52vw;
  }

}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}