* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #020617;
  color: #e5e7eb;
  scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  color: #00ffa2;
  font-weight: bold;
  letter-spacing: 2px;
}

nav a {
  margin-left: 30px;
  color: #cbd5f5;
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #00ffa2;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  height: 100vh;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #0f172a, #020617);
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  animation: floatText 3s ease-in-out infinite;
}

.hero p {
  margin-top: 15px;
  opacity: 0.8;
}

/* SECTIONS */
.section {
  padding: 100px 60px;
}

.dark {
  background: #020617;
}

.section h2 {
  color: #00ffa2;
  margin-bottom: 20px;
}

/* PROGRAM LAYOUT */
.program-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .program-layout {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 15px 20px;
  }

  .section {
    padding: 80px 20px;
  }
}

/* CODE VIEWER */
.code-viewer {
  position: relative;
  background: #05080d;
  padding: 15px;
  border: 1px solid #1f2933;
}

#copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 1px solid #00ffa2;
  color: #00ffa2;
  padding: 4px 10px;
  cursor: pointer;
}

#copy-btn:hover {
  background: #00ffa2;
  color: #020617;
}

pre {
  background: #020617;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
}

/* CATEGORY */
.category-bar {
  position: sticky;
  top: 80px;
  background: #020617;
  display: flex;
  gap: 10px;
  padding: 10px 0;
}

/* PROGRAM LIST */
#program-list {
  list-style: none;
  border: 1px solid #1f2933;
}

#program-list li {
  padding: 10px;
  border-bottom: 1px solid #1f2933;
  cursor: pointer;
}

#program-list li:hover {
  background: rgba(0, 255, 162, 0.1);
}

/* SCROLL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(50px);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.8s ease;
}

@keyframes floatText {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
