/* tutorials.css */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0a0a0a;
  color: #eee;
}

.navbar {
  background: linear-gradient(to right, #00aaff, #004466);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
}
.logo span {
  color: #ffcc00;
}

.nav-links ul {
  display: flex;
  gap: 15px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #004466;
}

.menu-btn {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

.hero {
  background: #111;
  padding: 80px 20px;
  text-align: center;
  animation: fadeIn 2s ease;
}

.hero h1.glow {
  font-size: 3rem;
  color: #00aaff;
  text-shadow: 0 0 10px #00aaff, 0 0 20px #0077cc;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 20px;
  color: #ccc;
}

.accordion-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}
.accordion-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.accordion-item {
  background: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  padding: 15px 20px;
  background: #222;
  cursor: pointer;
  font-weight: bold;
  position: relative;
}

.accordion-header::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  color: #00aaff;
}

.accordion-header.active::after {
  content: '-';
}

.accordion-content {
  padding: 15px 20px;
  background: #111;
  display: none;
  color: #bbb;
}

.grid-section {
  padding: 60px 20px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.grid-box {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
  cursor: pointer;
  font-weight: 500;
}

.grid-box:hover {
  background: #0077cc;
  transform: translateY(-5px);
}

.typewriter-section {
  background: #000;
  padding: 60px 20px;
  text-align: center;
}

.typewriter {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem;
  color: #00aaff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00aaff;
  animation: typing 4s steps(40, end) infinite, blink 0.75s step-end infinite;
}

@keyframes typing {
  0% { width: 0 }
  50% { width: 100% }
  100% { width: 0 }
}

@keyframes blink {
  50% { border-color: transparent }
}

footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links ul {
    flex-direction: column;
    display: none;
    background: #004466;
    position: absolute;
    right: 20px;
    top: 60px;
    padding: 20px;
    border-radius: 6px;
  }
  .nav-links ul.show {
    display: flex;
  }
  .menu-btn {
    display: block;
  }
}
