*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
  font-family:'Poppins', sans-serif;
}

body{
  background:#050816;
  color:white;
  overflow-x:hidden;
}

/* ================= NAVBAR ================= */

.navbar{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 8%;
  position:fixed;
  top:0;
  z-index:1000;
  backdrop-filter:blur(10px);
  background:rgba(0,0,0,0.4);
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.logo{
  font-size:32px;
  font-weight:800;
  letter-spacing:2px;
}

.logo span{
  color:#ff4f00;
}

.nav-links{
  display:flex;
  list-style:none;
  gap:35px;
}

.nav-links a{
  text-decoration:none;
  color:white;
  font-weight:500;
  transition:0.3s;
}

.nav-links a:hover{
  color:#00e5ff;
}

/* ================= HERO ================= */

.hero{
  width:100%;
  height:100vh;

  background:
  linear-gradient(rgba(0,0,0,0.7),
  rgba(0,0,0,0.8)),
  url('foto/latar belakang.jpg');

  background-size:cover;
  background-position:center;

  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
}

.hero-content h1{
  font-size:85px;
  font-weight:800;
  margin-bottom:20px;
  animation:fadeDown 1s ease;
}

.hero-content span{
  color:#ff4f00;
  text-shadow:0 0 20px #ff4f00;
}

.hero-content p{
  max-width:750px;
  margin:auto;
  font-size:20px;
  line-height:1.8;
  color:#d1d5db;
  margin-bottom:35px;
  animation:fadeUp 1.2s ease;
}

.btn{
  display:inline-block;
  padding:15px 40px;
  background:#ff4f00;
  color:#000;
  text-decoration:none;
  border-radius:50px;
  font-weight:700;
  transition:0.4s;
  box-shadow:0 0 25px #ff4f00;
}

.btn:hover{
  transform:scale(1.1);
  background:white;
}

/* ================= SECTION TITLE ================= */

.title{
  text-align:center;
  margin-bottom:70px;
}

.title h2{
  font-size:50px;
  margin-bottom:15px;
}

.title p{
  color:#bfc5d3;
}

/* ================= SPORTS ================= */

.sports-section{
  padding:120px 8%;
}

.sports-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:35px;
}

.sport-card{
  position:relative;
  overflow:hidden;
  border-radius:25px;
  height:420px;
  cursor:pointer;
  transition:0.5s;
  border:1px solid rgba(255,255,255,0.1);
}

.sport-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.6s;
}

.sport-card:hover img{
  transform:scale(1.15);
}

.overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,
  rgba(0,0,0,0.95),
  rgba(0,0,0,0.2));

  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:30px;
}

.overlay h3{
  font-size:30px;
  margin-bottom:10px;
}

.overlay p{
  color:#d1d5db;
  line-height:1.7;
}

.sport-card:hover{
  transform:translateY(-10px);
  box-shadow:0 0 35px rgba(0,229,255,0.5);
}

.sport-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    transparent,
    rgba(0,229,255,0.15)
  );
  opacity:0;
  transition:0.5s;
  z-index:1;
}

.sport-card:hover::before{
  opacity:1;
}

.overlay{
  position:absolute;
  z-index:2;
}

/* ================= ABOUT ================= */

.about{
  padding:120px 8%;
  text-align:center;
  background:#0b1020;
}

.about h2{
  font-size:50px;
  margin-bottom:25px;
}

.about p{
  max-width:900px;
  margin:auto;
  line-height:2;
  color:#c7cfdb;
  font-size:18px;
}

/* ================= CONTACT ================= */

.contact{
  padding:100px 8%;
  text-align:center;
}

.contact h2{
  font-size:45px;
  margin-bottom:40px;
}

.contact-icons{
  display:flex;
  justify-content:center;
  gap:35px;
}

.contact-icons i{
  width:75px;
  height:75px;
  background:#0b1020;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:28px;
  transition:0.4s;
  cursor:pointer;
}

.contact-icons i:hover{
  background:#00e5ff;
  color:#000;
  transform:translateY(-10px);
  box-shadow:0 0 25px #00e5ff;
}

/* ================= FOOTER ================= */

footer{
  padding:30px;
  text-align:center;
  background:#02050f;
  color:#8c95a8;
  border-top:1px solid rgba(255,255,255,0.08);
}

/* ================= ANIMATION ================= */

@keyframes fadeDown{
  from{
    opacity:0;
    transform:translateY(-40px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(40px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){

  .navbar{
    flex-direction:column;
    gap:20px;
  }

  .hero-content h1{
    font-size:50px;
  }

  .hero-content p{
    font-size:16px;
  }

  .title h2,
  .about h2,
  .contact h2{
    font-size:38px;
  }

}

@media(max-width:500px){

  .nav-links{
    gap:15px;
    font-size:14px;
  }

  .hero-content h1{
    font-size:38px;
  }

  .sport-card{
    height:350px;
  }

}

/* ================= POPUP ================= */

.popup{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:rgba(0,0,0,0.8);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
  padding:20px;
}

.popup-content{
  background:#0b1020;
  width:90%;
  max-width:700px;
  border-radius:25px;
  overflow:hidden;
  animation:popupShow 0.4s ease;
  position:relative;
  box-shadow:0 0 40px rgba(0,229,255,0.4);
}

.popup-content img{
  width:100%;
  height:350px;
  object-fit:cover;
}

.popup-content h2{
  font-size:40px;
  padding:25px 30px 10px;
}

.popup-content p{
  padding:0 30px 35px;
  color:#d1d5db;
  line-height:1.9;
  font-size:17px;
}

.close-btn{
  position:absolute;
  top:15px;
  right:20px;
  font-size:40px;
  cursor:pointer;
  color:white;
  transition:0.3s;
}

.close-btn:hover{
  color:#00e5ff;
  transform:rotate(180deg);
}

@keyframes popupShow{
  from{
    opacity:0;
    transform:scale(0.7);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}