:root {
  --accent-color: #00ffcc;
  --highlight: #ffea00;
  --main-bg: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px rgba(0, 255, 200, 0.2);
  --border-style: 1px solid rgba(255, 255, 255, 0.2);
  --text-color: #f2f2f2;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  background: var(--main-bg);
  color: var(--text-color);
}

/* 📌 Sticky Navbar by HEMA */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 34, 62, 0.8);
  padding: 20px 50px;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(8px);
  box-shadow: var(--glass-shadow);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--highlight);
}

.navbar nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.navbar nav a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s ease;
}
.navbar nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-color);
}

/* 📚 Quiz Selector */
.container {
  background: var(--card-bg);
  box-shadow: var(--glass-shadow);
  border: var(--border-style);
  border-radius: 16px;
  padding: 30px;
  margin: 60px auto;
  width: 90%;
  max-width: 700px;
  text-align: center;
}

.tech-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

button {
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--accent-color);
  color: #002f2f;
  font-weight: bold;
  font-size: 1em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}
button:hover {
  transform: scale(1.05);
  background: #ffaa00;
  color: #fff;
}

/* 🧠 Quiz Area */
#quiz-area {
  margin-top: 30px;
  border-top: 2px dashed rgba(255,255,255,0.2);
  padding-top: 20px;
}

#quiz-area button {
  margin: 10px auto;
  width: 90%;
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--accent-color);
  color: var(--text-color);
}
#quiz-area button:hover {
  background: var(--accent-color);
  color: #002f2f;
}


.tech-notes {
  margin-top: 100px;
  padding-bottom: 100px;
}

.note-card {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(0, 255, 200, 0.2);
  box-shadow: 0 8px 24px rgba(0, 255, 200, 0.15);
  border-radius: 14px;
  margin: 30px auto;
  padding: 25px 30px;
  max-width: 700px;
  color: #fff;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 255, 200, 0.3);
}

.note-card h2 {
  font-size: 1.6em;
  color: var(--accent-color);
  margin-bottom: 15px;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
  padding-bottom: 5px;
}

.note-card ul {
  list-style: square inside;
  line-height: 1.6;
}

.note-card li {
  margin: 10px 0;
  font-size: 1rem;
  color: #eaeaea;
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #102030, #203a43, #2c5364);
  color: #00ffcc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  z-index: 1000;
  animation: fadeOut 3s forwards ease-in;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { opacity: 0; visibility: hidden; }
}

@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
  }

  h1, h2, h3 {
    font-size: 1.3em;
    line-height: 1.4;
    text-align: center;
  }

  /* 🧠 Quiz Skill Container Fix */
  .container {
    padding: 20px 15px;
    margin: 25px auto;
    width: 95%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tech-selector {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
  }

  .tech-selector button {
    width: 100%;
    max-width: 350px;
    font-size: 1rem;
    padding: 10px 18px;
    margin: 6px 0;
  }

  #quiz-area {
    padding: 20px 10px;
    text-align: center;
  }

  #quiz-area button {
    display: block;
    width: 100%;
    margin: 10px 0;
    font-size: 1em;
  }

  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 15px;
    gap: 10px;
  }

  .logo {
    font-size: 1.5rem;
    width: 100%;
    text-align: left;
  }

  .navbar nav {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    width: 100%;
  }

  .navbar nav a {
    font-size: 1rem;
    padding: 8px 12px;
  }

  /* Footer & Splash */
  footer {
    font-size: 0.9rem;
    padding: 15px;
    text-align: center;
  }

  #splash-screen {
    font-size: 1.4rem;
    padding: 20px;
    text-align: center;
  }
}

  /* 📘 Notes Section */
  .notes-heading {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
  }

  .note-card {
    padding: 20px;
    margin: 20px auto;
    max-width: 95%;
    font-size: 0.95rem;
  }

  .note-card h2 {
    font-size: 1.3em;
    text-align: left;
  }

  .note-card li {
    font-size: 0.95em;
    line-height: 1.5;
  }

  



