/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
  }
  .container {
    max-width: 1280px;
    margin: auto;
    padding: 0 20px;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
  }
  
  /* Buttons */
  .btn-primary {
      background-color: transparent;
    border: 2px solid #99ffff;
    color: #99ffff;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 16px;
    transition: background 0.2s, color 0.2s;
    
  }
  .btn-primary:hover {
    background: #99ffff;;
    color: #0f172a;
  }
   .btn-secondary {
    background-color: transparent;
    border: 2px solid #00ffc3;
    color: #00ffc3;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 16px;
    transition: background 0.2s, color 0.2s;
  }
  .btn-secondary:hover {
    background: #00ffc3;
    color: #0f172a;
  }
  
  /* Header */
  .navbar {
    background: #1e293b;
    padding: 20px 0;
  }
  .navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    display: flex;
    align-items: center;
    color: #0ff;
    font-size: 20px;
    font-size: 1.3em;
    font-weight: bold;
  }
  nav a {
    margin: 0 10px;
    font-weight: 500;
  }
  nav {
    display: flex;
    align-items: center;
  }
  nav button {
    margin-left: 20px;
  }
  
  /* Hero */
  .hero-section {
    padding: 60px 0;
    background: linear-gradient(to bottom right, #0f172a, #1e293b);
  }
  .hero {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
  }
  .hero-content {
    flex: 1;
  }
  .hero-content h1 {
    font-size: 2.5rem;
    color: white;
  }
  .hero-content .highlight {
    color: #00ffc3;
    text-shadow: 0 0 8px #00ffc3;
  }
  .hero-content p {
    margin-top: 20px;
    color: #cbd5e1;
  }
  .hero-buttons {
    margin-top: 30px;
  }
  .hero-buttons button {
    margin-right: 15px;
  }
  .hero-icons {
    margin-top: 40px;
    display: flex;
    gap: 30px;
  }
  .hero-icons div {
    text-align: center;
    color: #7dd3fc;
  }
  /*authentication form*/
  .auth-form {
    max-width: 400px;
    margin: 80px auto;
    background: #1e293b;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
  }
  .auth-form h2 {
    margin-bottom: 20px;
    color: #38bdf8;
  }
  .auth-form input {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
  }
  .auth-form button {
    margin-top: 10px;
  }
  .auth-form p {
    margin-top: 15px;
    font-size: 14px;
  }
  .auth-form a {
    color: #38bdf8;
    text-decoration: underline;
  }
  
  /* Terminal Simulation */
  .terminal-window {
    flex: 1;
    background-color: #0f172a;
    border: 2px solid #334155;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  }
  .terminal-header {
    background: #1e293b;
    padding: 10px;
    border-bottom: 1px solid #334155;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #cbd5e1;
  }
  .dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
  }
  .red { background: #f87171; }
  .yellow { background: #facc15; }
  .green { background: #4ade80; }
  .terminal-title {
    margin-left: 12px;
    color: #00ffc3;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1.1rem;
    min-height: 1.2em;
    font-family: inherit;
    animation: typing 2.2s steps(18, end) 1;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00ffc3;
  }
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  .terminal-body {
    padding: 28px 22px 22px 22px;
    background: transparent;
  }
  .terminal-label {
    display: block;
    color: #38bdf8;
    font-size: 0.98em;
    margin: 18px 0 4px 0;
    font-family: inherit;
  }
  .terminal-input {
    width: 100%;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 10px;
    font-size: 1em;
    margin-bottom: 8px;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
  }
  .terminal-input:focus {
    border: 1.5px solid #00ffc3;
    background: #172554;
  }
  .terminal-btn {
    width: 100%;
    margin-top: 14px;
    background: #00ffc3;
    color: #0f172a;
    font-weight: bold;
    font-family: inherit;
    border-radius: 5px;
    transition: background 0.2s;
  }
  .terminal-btn:hover {
    background: #38bdf8;
    color: #0f172a;
  }
  .terminal-links {
    margin-top: 18px;
    font-size: 0.97em;
    color: #cbd5e1;
    text-align: center;
  }
  .terminal-links a {
    color: #00ffc3;
    text-decoration: underline;
    margin: 0 4px;
  }
  .terminal-links a:hover {
    color: #38bdf8;
  }
  
  /* Blinking green cursor for terminal prompt */
.blinking-cursor {
  color: #00ffc3;
  font-weight: bold;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    opacity: 0;
  }
}

/* Sections Titles */
  .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-top: 80px;
    color: white;
  }
  .section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #94a3b8;
  }
  
  /* Courses */
  .courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .view-all-container {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 40px;
  }
  .course-card {
    background: rgba(30, 41, 59, 0.7); /* semi-transparent */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(8px); /* frosted glass */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    transition: box-shadow 0.3s, transform 0.3s;
  }
  .course-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0,255,255,0.18), 0 1.5px 8px 0 rgba(31,38,135,0.18);
    transform: translateY(-4px) scale(1.03);
  }
  .course-icon {
    font-size: 2rem;
  }
  .badge {
    display: normal;
    background: #00ffc3;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    margin: 6px 4px;
    height:50px;
    text-align:center;
    align-content:center;
    justify-content:center;
    font-size: 13px;
    animation: pop 0.5s ease-in-out;
    letter-spacing: 0.5px;
  }
    .badge:not(.visible) {
        display: none;
    }
    .badge.visible {
        animation: fadeIn 0.4s ease-in-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


  .badge.green   { background: #00ffc3; color: #0f172a; font-weight: bold; }
.badge.yellow  { background: #facc15; color: #1e293b; font-weight: bold; }
.badge.purple  { background: #c084fc; color: #581c87; font-weight: bold; }
.badge.red     { background: #ef4444; color: #fff; font-weight: bold; }
.badge.blue    { background: #3b82f6; color: #fff; font-weight: bold; }
.badge.gray    { background: #64748b; color: #fff; font-weight: bold; }
  .details {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 10px;
  }
  
  /* Badge animation on hover */
  .course-card .badge {
    transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    will-change: transform;
  }
  .course-card:hover .badge {
    transform: scale(1.15) rotate(-6deg);
    box-shadow: 0 4px 24px 0 #00ffc388;
    z-index: 2;
  }
  
  /* Challenge Section */
  .challenge-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .challenge-card {
    background-color: #1e293b;
    border-left: 4px solid #334155;
    padding: 20px;
    border-radius: 10px;
    position: relative;
  }
  .challenge-card .meta {
    font-size: 13px;
    color: #cbd5e1;
  }
  .challenge-card .badge {
    position: absolute;
    top: 5px;
    right: 15px;
  }
  
  /* Paths Section */
  .paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .path-card {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 10px;
  }
  .path-card ul {
    margin: 20px 0;
    list-style: none;
  }
  .path-card li {
    margin-bottom: 8px;
  }
  .path-help-box {
    margin-top: 18px;
    background: rgba(15,23,42,0.92);
    padding: 16px 12px 12px 12px;
    text-align: center;
  }

.path-help-box span {
  display: block;
  color: #00ffc3;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1em;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.path-email-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.path-email-input {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 1em;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
  width: 60%;
  min-width: 120px;
}

.path-email-input:focus {
  border: 1.5px solid #00ffc3;
  background: #172554;
}
  
  /* Testimonials */
  .testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .testimonial {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 10px;
  }
  .average-rating {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    font-size: 18px;
    color: #38bdf8;
  }
  
  /* CTA */
  .cta-section {
    padding: 60px 0;
    background: #1e293b;
  }
  .cta-box {
    text-align: center;
    background-color: #0f172a;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #334155;
  }
  .cta-buttons {
    margin-top: 20px;
  }
  .cta-buttons button {
    margin: 0 10px;
  }
  /*Dashboard*/
  .dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}
.dashboard-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.progress-card {
    background-color: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(0,255,255,0.1);
}
.course-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #38bdf8;
}
.progress-bar-container {
    background: #334155;
    border-radius: 10px;
    height: 20px;
    margin-top: 10px;
}
.progress-bar {
    height: 100%;
    background: #00ffc3;
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease-in-out;
}
.badges-container {
    margin-top: 40px;
}
.badge {
    display: inline-block;
    background: #00ffc3;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    margin: 6px 4px;
    font-size: 13px;
    animation: pop 0.5s ease-in-out;
    letter-spacing: 0.5px;
}
@keyframes pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.theme-switch {
    margin-top: 30px;
}
.theme-switch button {
    background: #3b82f6;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
  /* Footer */
  footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
  }
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
  }
  .footer-column h4 {
    color: white;
    margin-bottom: 10px;
  }
  .footer-column ul {
    list-style: none;
    padding-left: 0;
  }
  .footer-column li {
    margin-bottom: 8px;
  }
  footer .copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #64748b;
  }
  
  
  /* Responsive */
  @media (max-width: 768px) {
    .hero {
      flex-direction: column;
    }
    .hero-icons {
      flex-wrap: wrap;
      justify-content: center;
    }
  }
  /*----------------------------*/
#c1, #c2, #c3, #c4 {
}
#c1complete, #c2complete, #c3complete, #c4complete {
  display:none;
}
/*#b1, #b2, #b3, #b4 {*/
    /*display:normal; */
    /*display:none;
}*/
.theme-switch {
    display:none;
}
.courses-section {
  position: relative;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  font-size: 5rem;
  pointer-events: none;
  user-select: none;
  z-index: 10;
  opacity: 0.92;
  transition: filter 0.2s;
}

.floating-emoji.book-emoji {
  top: 120px;
  left: 60px;
  animation: floatUpDown 2.2s ease-in-out infinite;
}

.floating-emoji.pen-emoji {
  bottom: 1px;
  right: 60px;
  animation: floatUpDown 2.2s 1.1s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

.courses-section:hover .floating-emoji {
  filter: brightness(1.2) drop-shadow(0 2px 8px #00ffc3aa);
}
.animated-nav {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.animated-nav span {
  display: inline-block;
  transition: color 0.3s, transform 0.3s;
  color: inherit;
  font-size: 1em;
  will-change: color, transform;
}

/* Animate each letter with a delay */
.animated-nav:hover span {
  color: #00ffc3;
  transform: translateY(-4px) scale(1.2) rotate(-6deg);
}

.animated-nav span:nth-child(1) { transition-delay: 0.02s; }
.animated-nav span:nth-child(2) { transition-delay: 0.04s; }
.animated-nav span:nth-child(3) { transition-delay: 0.06s; }
.animated-nav span:nth-child(4) { transition-delay: 0.08s; }
.animated-nav span:nth-child(5) { transition-delay: 0.10s; }
.animated-nav span:nth-child(6) { transition-delay: 0.12s; }
.animated-nav span:nth-child(7) { transition-delay: 0.14s; }
.animated-nav span:nth-child(8) { transition-delay: 0.16s; }
.animated-nav span:nth-child(9) { transition-delay: 0.18s; }
.animated-nav span:nth-child(10) { transition-delay: 0.20s; }
.animated-nav span:nth-child(11) { transition-delay: 0.22s; }
.animated-nav span:nth-child(12) { transition-delay: 0.24s; }
/* Add more if needed for longer words */

.animated-nav:hover span {
  /* Animate back on mouse leave */
  transition: color 0.3s, transform 0.3s;
}

/* Matrix background canvas styling */
#matrix-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.auth-form, .modal, .modal-content {
  position: relative;
  z-index: 2;
}
/* Terminal Login Box */
.login-terminal {
  max-width: 420px;
  margin: 80px auto 0 auto;
  background: rgba(15,23,42,0.97);
  border-radius: 10px;
  box-shadow: 0 0 24px #00ffc355;
  border: 1.5px solid #334155;
  overflow: hidden;
  font-family: 'Fira Mono', 'Consolas', monospace;
  position: relative;
  z-index: 2;
}
.terminal-header {
  background: #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #334155;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  margin-right: 4px;
}
.red { background: #f87171; }
.yellow { background: #facc15; }
.green { background: #4ade80; }
.terminal-title {
  margin-left: 12px;
  color: #00ffc3;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1.1rem;
  min-height: 1.2em;
  font-family: inherit;
  animation: typing 2.2s steps(18, end) 1;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #00ffc3;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
.terminal-body {
  padding: 28px 22px 22px 22px;
  background: transparent;
}
.terminal-label {
  display: block;
  color: #38bdf8;
  font-size: 0.98em;
  margin: 18px 0 4px 0;
  font-family: inherit;
}
.terminal-input {
  width: 100%;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 5px;
  padding: 10px;
  font-size: 1em;
  margin-bottom: 8px;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
}
.terminal-input:focus {
  border: 1.5px solid #00ffc3;
  background: #172554;
}
.terminal-btn {
  width: 100%;
  margin-top: 14px;
  background: #00ffc3;
  color: #0f172a;
  font-weight: bold;
  font-family: inherit;
  border-radius: 5px;
  transition: background 0.2s;
}
.terminal-btn:hover {
  background: #38bdf8;
  color: #0f172a;
}
.terminal-links {
  margin-top: 18px;
  font-size: 0.97em;
  color: #cbd5e1;
  text-align: center;
}
.terminal-links a {
  color: #00ffc3;
  text-decoration: underline;
  margin: 0 4px;
}
.terminal-links a:hover {
  color: #38bdf8;
}
.testimonials-section {
  position: relative;
  overflow: hidden;
}

#emoji-float-container {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.floating-emoji-thumb {
  position: absolute;
  bottom: 0;
  opacity: 0.85;
  will-change: transform, opacity;
  pointer-events: none;
  animation: floatThumbsUp 2.8s linear forwards;
}

@keyframes floatThumbsUp {
  0% {
    transform: translateY(0) scale(var(--scale,1));
    opacity: 0.9;
  }
  60% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-60%) scale(var(--scale,1)); /* Use section height */
    opacity: 0;
  }
}

/* Add to styles.css */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fefefe;
  padding: 15px 20px;
  border: 1px solid #888;
  max-width: 480px;
  width: auto;
  border-radius: 8px;
  color: black;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}
.closeBtn {
  position: absolute;
  top: 5px;
  left: 10px;
  color: #aaa;
  font-size: 16px;
  font-weight: bold;
}
.closeBtn:hover, .closeBtn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}