/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Matrix Background */
#matrix {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: black;
}

/* Navbar */
header {
  background: rgba(17,17,17,0.9);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
}
.logo span {
  color: #0f0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #e0e0e0;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #0ff;
  text-shadow: 0 0 8px #0ff;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.burger div {
  width: 25px;
  height: 3px;
  background: #0ff;
  margin: 4px;
}

/* Hero */
.hero {
  background: rgba(0,0,0,0.6);
  color: #fff;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0f0;
}
.hero h1 span {
  color: #0ff;
}
.hero p {
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* News Section */
.news-container {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}
.news-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0f0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  border: 2px solid transparent;
  animation: neon-border 2s infinite alternate;
}
.news-card a {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 15px;
}
.news-card:hover {
  transform: scale(1.03);
}
@keyframes neon-border {
  from { border-color: #0ff; box-shadow: 0 0 10px #0ff; }
  to   { border-color: #0f0; box-shadow: 0 0 20px #0f0; }
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card h3 {
  margin: 1rem;
  color: #0f0;
  text-shadow: 0 0 10px #0f0;
}

.news-card p {
  margin: 0 1rem 1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #111;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  color: #fff;
  position: relative;
  box-shadow: 0 0 15px #0ff, 0 0 25px #0f0;
}
#closeModal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: #0ff;
}

/* Footer */
footer {
  background: rgba(17,17,17,0.9);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  .nav-links.active {
    display: flex;
  }
  .burger {
    display: flex;
  }
}
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #111;
}

/* Styling untuk pesan sebelum scroll */
#pre-scroll-message {
  color: #FFFFFF; /* Ganti ke PUTIH agar kontras */
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3rem; /* Sedikit diperbesar agar lebih jelas */
  margin-top: 40px;
  opacity: 1;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transform: translateY(0);
  text-shadow: 0 0 10px #000000, 0 0 7px #000000; /* Tambahkan bayangan hitam tebal */
}

/* Class untuk menyembunyikan pesan saat di-scroll */
#pre-scroll-message.hidden {
  opacity: 0;
  transform: translateY(-20px);
}

/* Efek kursor berkedip */
.blinking-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to {
    color: transparent;
  }
  50% {
    color: #00ff00;
  }
}