* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Open Sans', sans-serif;
  font-weight: 300;
}

body {
  background: #0c111d;
  color: #f0f0f0;
}

header {
  background: transparent;
  color: #ffffff;
  padding: 1rem;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

nav .logo {
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}

nav .logo a {
  all: unset;
  display: inline;
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  display: inline-block;
  /* Needed for transform to work properly */
  transition: transform 0.3s ease;
  /* Smooth zoom effect */
}

nav .logo a:hover {
  transform: scale(1.1);
  /* Zooms in by 20% */
}

nav .logo .icon {
  font-size: 2rem;
}

nav .logo sup {
  color: #ffcc00;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

nav ul li a:hover {
  color: #ffcc00;
}

sup {
  font-weight: 500;
}

.hero {
  position: relative;
  background: radial-gradient(circle at 50% -75%, #1f2840 0%, #0c111d 70%);
  /* background: radial-gradient(circle at 50% -75%, #8d6f14 0%, #0c111d 70%); */
  color: #ffffff;
  text-align: center;
  padding: 10rem 1rem 6rem;
}

.hero span {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffcc00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .discover {
  color: #a164bb;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .learn {
  color: #4788e3;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero p sup {
  font-weight: 400;
  color: #ffcc00;
}

.hero input,
.hero select {
  padding: 0.5rem;
  font-size: 1rem;
  width: 300px;
  border: none;
  border-radius: 5px;
  background-color: #ffffff;
  color: #1e2a44;
  margin: 0.5rem;
}

.hero button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: #ffcc00;
  color: #1e2a44;
  cursor: pointer;
}

.hero button:hover {
  background-color: #e6b800;
}

.courses {
  max-width: 1200px;
  margin: 0rem auto;
  padding: 0 1rem;
}

.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.course-card {
  flex: 1 1 300px;
  max-width: 300px;
  background: linear-gradient(145deg, #0c111f, #1a2238);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  cursor: default;
}

.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(145deg, #1a2238, #2a3b5a);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.course-card-content {
  padding: 1.5rem;
  text-align: center;
}

.emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.course-card:hover .emoji {
  transform: scale(1.2) rotate(5deg);
}

.course-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.course-card p {
  font-size: 1rem;
  font-weight: 300;
  color: #d3d3d3;
  margin-bottom: 1rem;
}

.level-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover .level-badge {
  opacity: 0.8;
}

.level-badge.beginner::before {
  content: "🟢 ";
}

.level-badge.intermediate::before {
  content: "🔵 ";
}

.level-badge.advanced::before {
  content: "🟣 ";
}

footer {
  background-color: #16213e;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

footer p {
  font-size: 0.9rem;
  font-weight: 300;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero input {
    width: 100%;
    max-width: 300px;
  }

  .emoji {
    font-size: 1.5rem;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: white;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.social-icons {
  list-style: none;
  display: flex;
  gap: 0 rem;
  margin: 0;
  padding: 0;
}

.social-icons li a {
  font-size: 1.2rem;
  text-decoration: none;
}

.social-icons li a svg {
  display: inline-block;
  transition: transform 0.5s ease;
}

.social-icons li a:hover svg {
  transform: scale(1.5);
  color: white;
}

/* Tutorial Overlay */
.tutorial-section {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  display: flex;
  justify-content: center;
  padding: 0 1rem 4rem;
}

.tutorial-card {
  background: linear-gradient(145deg, #0c111f, #1a2238);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1000px;
  width: 100%;
  transform: translateY(-2%);
}

.tutorial-card h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #e1bc5e;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.tutorial-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #5ea8e1;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.tutorial-card p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}


/* Code Block */
.code-block {
  background: #04111a;
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
  margin-left: 4rem;
  margin-right: 4rem;
}


.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border-width: 0px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  background-color: transparent;
  cursor: pointer;
  filter: grayscale(100%) brightness(0.7);
  transition: transform 0.3s ease;
}

.copy-btn:hover {
  transform: scale(1.5) rotate(30deg);
  filter: none;
}

.copy-btn.copied {
  animation: pulse 0.2s ease;
}

@keyframes pulse {
  0% { transform: scale(1.2); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  color: #e0e0e0;
}

code.language-lua,
code.language-lua span {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 200;
  font-variant-ligatures: none;
  text-rendering: optimizeLegibility;
}

/* Comments */
span.lua-comment {
    color: #575b5e;
    font-style: italic;
}

/* Strings */
span.lua-string {
    color: #86c27f;
}

/* Numbers */
span.lua-number {
    color: #eb9a6d;
}

/* Keywords */
span.lua-keyword {
    color: #2771b2;
}

/* Objects (LuaRT modules) */
span.lua-object {
    color: #FAC863;
}

span.lua-function {
    color: #bd7cbd;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.block {
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 300;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.708);
  /* border-left: 8px solid;
  border-right: 8px solid; */
  border-width: 1px;
  margin: 4rem 6rem 4rem 6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: #ffffff;
}

.block strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #ffffff;
}


.block.note {
  /* border: 1px solid; */
  background: linear-gradient(45deg, #846d1887, #0c111f7e);

}

.block.tip {
  background: linear-gradient(145deg, #21335cD7, #0c111f7e);
  /* background: linear-gradient(145deg, #d4bb61, #ccad3b); */
  border: none;
}

.block.warn {
  background: linear-gradient(145deg, #6c1d1dD7 , #0c111f7e);
  border: none;
}

.tutorial-card ul {
  list-style: none;
  padding-left: 0;
}

.tutorial-card ul li {
  position: relative;
  padding-left: 1.5em;
  margin-left: 2em;
  margin-bottom: 0.5em;
  font-weight: 400;
}

.tutorial-card  ul li::before {
  content: "🟪";
  position: absolute;
  left: 0;
  top: 1em;
  font-size: 0.5em;
  line-height: 1;
}