@media (max-width: 600px) {
  /* Add bottom space for last course card and courses grid */
  .courses {
    padding-bottom: 32px;
  }
  .course-card:last-child {
    margin-bottom: 24px;
  }

  /* Add padding to all .container elements for challenge pages and others */
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/*CTA and Container Padding on Mobile*/
@media (max-width: 600px) {
  .container,
  .cta-box,
  .footer-content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .cta-box {
    border-radius: 0 0 10px 10px;
  }
  .cta-buttons {
    gap: 16px;
    margin-top: 18px;
  }
  .cta-buttons button {
    width: 100%;
    margin: 0;
  }
}

/*floating emojie size for mobile*/
@media (max-width: 600px) {
  .floating-emoji {
    font-size: 2.2rem !important;
    left: 10px !important;
    right: 10px !important;
  }
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #00ffc3;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border: 2px solid #00ffc3;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffc3aa;
    padding: 6px;
    margin-left: auto;
    z-index: 1101;
  }
  .hamburger span {
    background: #00ffc3 !important;
    height: 4px;
    width: 24px;
    margin: 3px 0;
    border-radius: 2px;
    display: block;
    transition: 0.3s;
  }
  .close-menu {
    display: block;
    background: none;
    border: none;
    color: #00ffc3;
    font-size: 2.2rem;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1100;
    cursor: pointer;
    transition: color 0.2s;
  }
  nav#main-nav {
    position: fixed;
    top: 0; right: 0;
    background: #0f172a;
    height: 100vh;
    width: 220px;
    box-shadow: -2px 0 12px #00ffc355;
    transform: translateX(100%);
    transition: transform 0.3s;
    flex-direction: column;
    padding: 60px 20px 20px 20px;
    z-index: 1000;
  }
  nav#main-nav.open {
    transform: translateX(0);
  }
  nav#main-nav a, nav#main-nav button:not(.close-menu) {
    display: block;
    margin: 18px 0;
    font-size: 1.2em;
  }
  .navbar .container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}


/* 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;
  }
  .logo-icon {
  filter: invert(1) brightness(2) contrast(2);
  height: 32px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin-right: 8px;
}
  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: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.dashboard-title {
    font-size: 2.7rem;
    color: #00ffc3;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 12px #00ffc355;
    margin-bottom: 16px;
}
.progress-card {
    background: linear-gradient(135deg, #1e293b 70%, #0f172a 100%);
    border: 2px solid #334155;
    border-radius: 16px;
    box-shadow: 0 0 18px #00ffc344;
    padding: 28px 24px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    transition: transform 0.15s;
}
.progress-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 0 32px #00ffc388;
}
.course-name {
  font-size: 1.3rem;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.progress-bar-container {
  width: 100%;
  background: #334155;
  border-radius: 8px;
  height: 18px;
  margin: 12px 0 8px 0;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ffc3 60%, #38bdf8 100%);
  border-radius: 8px;
  width: 0%;
  transition: width 1s cubic-bezier(.4,2,.6,1);
  box-shadow: 0 0 8px #00ffc3aa;
}
.progress-status, .progress-card p {
  font-size: 1em;
  color: #00ffc3;
  font-weight: 600;
  margin-bottom: 6px;
}

.badges-container {
  margin: 24px 0 0 0;
  background: #172554;
  border-radius: 12px;
  padding: 24px 18px;
  box-shadow: 0 2px 16px #00ffc344;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.badges-container h2 {
  color: #00ffc3;
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.badge {
  margin: 8px 8px 0 0;
  font-size: 1.1em;
  background: #00ffc3;
  color: #0f172a;
  padding: 6px 18px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 2px 8px #00ffc355;
  letter-spacing: 0.5px;
  display: inline-block;
  animation: pop 0.5s;
}
.theme-switch {
  margin: 32px 0 0 0;
  text-align: right;
}
.theme-switch button {
  background: #3b82f6;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  box-shadow: 0 2px 8px #38bdf8aa;
  transition: background 0.2s;
}
.theme-switch button:hover {
  background: #00ffc3;
  color: #0f172a;
}
@media (max-width: 900px) {
  .dashboard-container { padding: 0 8px; }
  .progress-card { padding: 18px 10px; }
  .badges-container { padding: 14px 6px; }
}
@media (max-width: 600px) {
  .dashboard-title { font-size: 2rem; }
  .badges-container { padding: 10px 2px; }
}
/*----------------------------*/
#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;
}

/* Neon green for hamburger and close button */
.hamburger span {
  background: #00ffc3 !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.close-menu {
  display: none;
  background: none;
  border: none;
  color: #00ffc3;
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1100;
  cursor: pointer;
  transition: color 0.2s;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border: 2px solid #00ffc3;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffc3aa;
    padding: 6px;
    margin-left: auto;
    z-index: 1101;
  }
  .hamburger span {
    background: #00ffc3 !important;
    height: 4px;
    width: 24px;
    margin: 3px 0;
    border-radius: 2px;
    display: block;
    transition: 0.3s;
  }
  .close-menu {
    display: block;
    background: none;
    border: none;
    color: #00ffc3;
    font-size: 2.2rem;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1100;
    cursor: pointer;
    transition: color 0.2s;
  }
  nav#main-nav {
    position: fixed;
    top: 0; right: 0;
    background: #0f172a;
    height: 100vh;
    width: 220px;
    box-shadow: -2px 0 12px #00ffc355;
    transform: translateX(100%);
    transition: transform 0.3s;
    flex-direction: column;
    padding: 60px 20px 20px 20px;
    z-index: 1000;
  }
  nav#main-nav.open {
    transform: translateX(0);
  }
  nav#main-nav a, nav#main-nav button:not(.close-menu) {
    display: block;
    margin: 18px 0;
    font-size: 1.2em;
  }
  .navbar .container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}

/* Footer Layout */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0 0 0;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 180px;
  margin-bottom: 24px;
}

.footer-column h4 {
  color: #00ffc3;
  margin-bottom: 12px;
  font-size: 1.1em;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 1em;
}

@media (max-width: 800px) {
  .footer-content {
    flex-direction: column;
    gap: 32px;
    padding: 24px 0 0 0;
    align-items: center; /* Center columns horizontally */
  }
  .footer-column {
    width: 100%;
    max-width: 320px; /* Prevents columns from being too wide */
    margin-bottom: 0;
    display: block;
    padding-bottom: 18px;
    border-bottom: none;
    text-align: center; /* Center all content in column */
    margin-left: auto;
    margin-right: auto;
  }
  .footer-column h4,
  .footer-column p,
  .footer-column ul {
    text-align: center !important;
    width: 100%;
  }
  .footer-column ul li {
    text-align: center !important;
    width: 100%;
    margin-bottom: 8px;
  }
}

@media (max-width: 600px) {
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Add vertical space between buttons */
    align-items: stretch;
  }
  .cta-buttons button {
    margin: 0; /* Remove horizontal margin on mobile */
    width: 100%;
  }
}