:root {
  --bg:#161616;
  --primary: #ffff10;
  }
  
*{
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  margin: 0;
  
}

body{
  background-color: var(--bg);
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior:smooth;
}

/* Navbar Start */
.navbar{
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 2px solid #575705;
  background-color: #00000080;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  display: flex;
  z-index: 9999;
}

.navbar .navbar-logo{
  font-weight: 600;
  color: #fff;
}

.navbar .navbar-logo span{
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

.navbar .navbar-link a{
  margin: 0 1rem;
  color:#fff;
  font-size: 1rem;
  display: inline-block;
}

.navbar .navbar-link a:hover{
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

.navbar .navbar-link a::after{
  content: '';
  display: block;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}
  
.navbar .navbar-link a:hover::after{
  transform: scaleX(1);
}

#hamburger-menu{
  display: none;
}
/* Navbar End */


/* Hero Start */
.hero {
  width: 100%;
  height: 100vh;
  opacity: 0; /* Awalnya tidak terlihat */
  transform: translateY(20px); /* Berada sedikit di bawah */
  animation: fadeIn 1.5s ease-out forwards; /* Animasi selama 1.5 detik */
}

.animate {
  animation: fadeIn 1.5s ease-out forwards;
}

/* Animasi */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.hero-selection {
  background-color: var(--bg);
  height: 100%;
  width: 100%;
  padding: 7rem 7%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-title{
  text-align: center;
  margin-bottom: 6rem;
  color:var(--primary);
  font-size: 2rem;
  text-shadow: 0 0 10px var(--primary);
  font-weight: 700;
  animation: zoomInOut 2s ease-in-out infinite;
}

/* Animasi Start */
@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
/* Animasi End */

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-around;
  width: 100%;
}

.hero-img{
  text-align:right;
  width: 40%;
}

.hero-img img {
  width: 180px;
  border-radius: 50%;
  box-shadow: 0 0 15px 2px var(--primary);
}

.hero-desc {
  text-align: left;
}

.hero-desc h1 span {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

.hero-social {
  margin-top: 1rem;
  text-align: center;
}

.hero-social a {
  margin: 0 1rem;
  filter: grayscale(1);
  font-size: 1.5rem;
  transition: all 0.3s ease-in-out;
}

.hero-social a:hover {
  filter: grayscale(0);
  color: var(--primary);
}

.hero-btn {
  margin-top: 3rem;
  text-align: center;
}

.hero-btn a {
  padding: 5px 20px;
  background-color: var(--primary);
  color: var(--bg);
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-btn a:hover {
  background-color: var(--bg);
  color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
/* Hero End */

/* About Start */
.about .about-container {
  min-height: 100vh;
  padding: 4rem;
}

.about-container h1 {
  text-align: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.about-container h1 span {
  color: var(--primary);
}

.about-cards {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin-top: 3rem;
  border: 1px solid var(--primary);
  background-color:#464608;
  height: 55vh;
  margin-bottom: 2rem;
  transition: all 0.3s ease-in-out;
}

.about-cards:hover{
  box-shadow: 0 0 10px 2px var(--primary);
}

.about-cards .about-img img{
  margin:2rem 2.5rem;
  width: 18rem;
  border-radius: 10%;
  box-shadow:0 0 15px 3px var(--primary) ;
  transition: all 0.3s ease-in-out;
}

.about-cards .about-img img:hover{
  transform: scale(1.1);
}

.about-cards .about-desc{
  padding: 4rem 0;
}
/* About End */


/* Skill Star */
.skill .skill-container {
  min-height: 100vh;
  padding: 4rem;
}

.skill-container .skill-title{
  text-align: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.skill-container .skill-title span{
  color: var(--primary);
}

.skill-cards{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cards{
  border: 2px solid var(--primary);
  background-color:#262604;
  margin: 1rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cards:hover{
  box-shadow: 0 0 10px 2px var(--primary);
}

.cards .cards-img{
  width: 10rem;
}

.cards .img-caption{
  position: absolute;
  bottom: -6rem;
  background-color: rgba(0, 0, 0, 0.531);
  padding: 0.3rem 0;
  width: 100%;
  text-align: center;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.cards:hover .img-caption{
  bottom: 0;
}
/* Skill End */

/* Kontak Start */
.contact .contact-container {
  min-height: 80vh;
  padding: 4rem;
}

.contact-container .contact-title{
  text-align: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.contact-container .contact-title span{
  color: var(--primary);
}

.contact-container .contact-desc{
  font-size: 2rem;
  margin-top: 2rem ;
  text-align: center;
  font-weight: 500;
}

.contact-container .contact-description{
  text-align: center;
  font-size: 1.5rem;
  margin-top:1rem;
  font-weight: 500;
  color: #caca0e;
}

.contact-btn{
  text-align: center;
  margin-top: 3rem;
}

.contact-btn .email{
  padding: 10px 20px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  color:#fff;
  background-color:#464608;
  transition: all 0.3s ease-in-out;
}

.contact-btn .email:hover{
  background-color: transparent;
  box-shadow: 0 0 10px 2px var(--primary);
  color: var(--primary);
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 3rem;
}

.contact-social a {
  text-decoration: none;
  color: #333;
  font-size: 2rem;
  margin: 0 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-social a:hover {
  color: #ff9800;
  transform: scale(1.2); 
}

.contact-social a:nth-child(1):hover {
  color: #000; 
}

.contact-social a:nth-child(2):hover {
  color: #E4405F; 
}

.contact-social a:nth-child(3):hover {
  color: #FF0000;
}

.contact-social a:nth-child(4):hover {
  color: #4078c0; 
}

.contact-social a:nth-child(5):hover{
  color :#0088cc;
}

.contact-menu{
  margin-top: 2rem;
  text-align: center;
}

.contact-menu a{
  color: #fff;
  font-size: 1rem;
  margin: 0 1rem;
}

.contact-menu a:hover{
  color: var(--primary);
  text-decoration: underline;
}

.contact-footer p{
  text-align: center;
  margin-top: 8rem;
  color: #5b5b5b;
}

/* Kontak End */



/* GAME TEBAK ANGKA */
.game-angka{
  padding: 5rem 7% 1.4rem;
}




/* Media Querys */
@media (max-width: 768px) {
    html {
      font-size: 70%;
    }

    .navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    border-top: 2px solid #575705 ;
    margin-bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    color: #fff;
}

.navbar-logo {
    font-size: 1rem;
    color: #fff;
    text-align: center;
}

.navbar-logo span {
    color: #ffa500; /* Highlight color */
}


.navbar-link {
    display: flex;
    gap: 1rem;
}

.navbar-link a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.about-cards .about-img{
  width: 100%;
  text-align: center;
}

.about-cards .about-img img{
  width: 25%;
  margin-top: 2rem;
}

.about-cards {
  height: 60vh;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

  .about-cards .about-desc {
    padding: 0 1rem ;
    width: 100%;
    text-align: center;

  }
  
}

/* Mobile Phone */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-img{
    text-align: center;
  }

  .hero-img img{
    width: 90%;
  }

  .hero-desc h1{
    text-align: center;
    margin:1rem 2rem;
  }

  .about-cards{
    height: 50vh;
  }


  .about-cards .about-img img{
    width: 15rem;
  }

  .contact .contact-container{
    min-height: 40vh;
  }
}