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

:root {
  --bg-color: #080808;
  --second-bg-color: #001005;
  --text-color: white;
  --main-color: #00ff51;
  --hover-color: #12f7ff;
  --neo-box-shadow: 0 0 5rem #12f7ff;
}

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

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

/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 2rem 9%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.sticky {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
  margin-right: auto;
}

.logo span {
  color: var(--main-color);
}

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

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

.btn-group {
  margin-left: 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--main-color);
  border-radius: 3rem;
  font-size: 1.6rem;
  color: var(--bg-color);
  font-weight: 600;
  border: 2px solid transparent;
  transition: 0.3s ease;
}

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

/* General Section Styling */
section {
  min-height: 30vh;
  padding: 10rem 9% 6rem;
  background: transparent;
}

.sub-title {
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 3rem;
  color: var(--main-color);
}

.sub-title span {
  color: var(--text-color);
}

/* Home Section */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.home-content p {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 2rem;
}

.home-img {
  flex-shrink: 0;
  text-align: center;
  flex: 1;
  max-width: 400px;
}

.home-img img {
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}

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

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  height: 6rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 2rem 1.5rem 2rem 0;
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: var(--main-color);
  color: var(--text-color);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--main-color);
}

/* About Section */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.about .home-img {
  flex: 1;
  max-width: 350px;
}

.about .about-content {
  flex: 2;
}

.about-box {
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid var(--main-color);
  border-radius: 1rem;
  padding: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px var(--main-color);
}

.about-box h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-info-list li i {
  font-size: 2.8rem;
  color: var(--main-color);
  margin-right: 2rem;
  min-width: 30px;
  text-align: center;
}

/* Hobbies Section */
.hobbies-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.info-box {
  border: 3px solid var(--main-color);
  border-radius: 2rem;
  padding: 3rem;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.info-box:hover {
  transform: scale(1.05);
}

.info-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-color: transparent;
}

.info-content {
  position: relative;
  z-index: 2;
}

.info-content i {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--main-color);
  transition: color 0.3s ease;
}

.info-content h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-content p {
  font-size: 1.4rem;
  line-height: 1.6;
}

#hobby-books:hover::before {
  opacity: 1;
  background-image: linear-gradient(rgba(8, 8, 8, 0.2), rgba(8, 8, 8, 0.2)),
    url("./img/sach1.png"), url("./img/sach2.png");
  background-position: center, left center, right center;
  background-size: cover, 48% auto, 48% auto;
  background-repeat: no-repeat;
}

#hobbies .info-box:hover .info-content {
  opacity: 0;
}
#hobby-music:hover::before {
  opacity: 1;
  background-image: linear-gradient(rgba(8, 8, 8, 0.2), rgba(8, 8, 8, 0.2)),
    url("./img/music1.png"), url("./img/music9.jpg");
  background-position: center, left center, right center;
  background-size: cover, 50% 100%, 50% 100%;
  background-repeat: no-repeat;
}

#hobby-games:hover::before {
  opacity: 1;
  background-image: linear-gradient(rgba(8, 8, 8, 0.2), rgba(8, 8, 8, 0.2)),
    url("./img/game1.png"), url("./img/game3png.png");
  background-position: center, left center, right center;
  background-size: cover, 50% 100%, 50% 100%;
  background-repeat: no-repeat;
}
.hover-contact a:hover {
  color: #00ff51;
}
/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: auto;
}

.skills-left,
.skills-right {
  padding: 3rem;
  border-radius: 1rem;
  border: 2px solid var(--main-color);
}

.skills-right:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px var(--main-color);
}

.skills-left h3.heading1,
.skills-right h3.heading1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--main-color);
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}

.skill-list li:hover {
  transform: translateX(10px);
  color: var(--main-color);
}

.skill-list i {
  font-size: 2.2rem;
}

.skill-list .bxl-html5 {
  color: #c95d2e;
}

.skill-list .bxl-figma {
  color: #a259ff;
}

.skill-list .bxl-javascript {
  color: #f7df1e;
}

.skill-list .bxl-nodejs {
  color: #339933;
}

.skill-list .bxl-css3 {
  color: #147cce;
}

.skill-list .bxl-react {
  color: #61dafb;
}

.skill-bar {
  transition: transform 0.3s ease;
  margin-bottom: 2.5rem;
}

.skill-bar:hover {
  transform: scale(1.03);
}

.skill-bar:hover .bar span {
  background: var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
}

.skill-bar:hover .info p {
  color: var(--main-color);
}

.skill-bar .info {
  display: flex;
  justify-content: space-between;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.skill-bar .bar {
  width: 100%;
  height: 10px;
  background: var(--bg-color);
  border-radius: 25px;
  border: 1px solid var(--main-color);
  overflow: hidden;
}

.skill-bar .bar span {
  display: block;
  height: 100%;
  background: var(--main-color);
  border-radius: 25px;
  width: 0;
  transition: width 1.5s ease;
}

.skills-in-view .skill-bar .bar span {
  width: var(--skill-width);
}

/* Awards Section */
.awards {
  background: var(--second-bg-color);
}

.awards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.awards-section .info-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.awards-section .info-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px var(--main-color);
}

/* Projects Section */
.projects {
  padding: 10rem 9% 5rem;
}

.projects .sub-title {
  margin-bottom: 5rem;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
  justify-content: center;
}

.project-item {
  background: rgba(0, 16, 5, 0.2);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 2px solid var(--main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.project-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px var(--main-color);
}

.project-link-wrapper {
  flex: 0 0 40%;
  max-width: 250px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.project-image-wrapper img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-link-wrapper:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 81, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-align: center;
  padding: 1rem;
}

.project-link-wrapper:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4,
.project-overlay p {
  color: var(--bg-color);
}

.project-overlay h4 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-overlay p {
  font-size: 1.4rem;
}

.project-details {
  flex: 1 1 60%;
}

.project-details h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.project-details p {
  font-size: 1.6rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.project-details a {
  font-size: 1.6rem;
  color: var(--main-color);
  font-weight: 600;
}

.project-details a:hover {
  text-decoration: underline;
  color: var(--hover-color);
}

/* Footer */
.footer {
  padding: 3rem 9%;
  text-align: center;
  background: transparent;
}

.footer .social-icons {
  margin-bottom: 2rem;
}

.footer .copyright {
  font-size: 1.4rem;
}

/* Responsive Design */
#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  cursor: pointer;
  display: none;
}

@media (max-width: 992px) {
  .header {
    padding: 2rem 4%;
  }

  section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
    background: transparent;
  }

  .home {
    padding: 0 4%;
  }

  .footer {
    padding: 3rem 4%;
  }
}

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

  .navbar {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    padding: 1rem 4%;
    background: var(--bg-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    transition: 0.25s ease;
  }

  .home-img {
    margin-top: 9rem;
  }

  .navbar.active {
    left: 0;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .btn-group {
    display: none;
  }

  .home {
    flex-direction: column-reverse;
    gap: 3rem;
  }

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

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

  .about .about-content {
    text-align: left;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }
}
/* --- FIX ABOUT ME TEXT ON MOBILE --- */
@media (max-width: 650px) {
  .project-container {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .project-item {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .project-link-wrapper {
    max-width: 100%;
  }

  .project-details {
    text-align: center;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #001005;
}

::-webkit-scrollbar-thumb {
  background: #00ff51;
  border-radius: 10px;
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  background-color: var(--main-color);
  color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  border-radius: 50%;
  z-index: 100;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
    background-color 0.3s ease;
}

.back-to-top-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--main-color);
  box-shadow: 0 0 15px var(--main-color);
}
