/* Existing styles (unchanged, included for context) */
body.light-theme {
  background-color: rgb(212, 204, 204);
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.267);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

body.light-theme .navbar-item {
  color: rgb(0, 0, 0);
}

body.light-theme .navbar-item:hover {
  background: rgb(255, 255, 255);
}

body.light-theme .testimonials-section h1,
body.light-theme .testimonials-section h3,
body.light-theme .testimonials-section p {
  color: black;
}

body.light-theme .commands-container h1 {
  color: #2e3a59;
}

.theme-toggle-button {
  cursor: pointer;
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.theme-toggle-button:hover {
  background: rgba(255, 255, 255, 0.4);
}

body.light-theme .theme-toggle-button:hover {
  background: rgb(255, 255, 255);
}

.theme-toggle-button .navbar-icon {
  width: 35px;
  height: 35px;
  filter: invert(0);
}

body.light-theme .theme-toggle-button .navbar-icon {
  filter: invert(1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: monospace;
  background-color: black;
}

body:not(.light-theme) .hero h1,
body:not(.light-theme) .hero p {
  color: white;
}

body:not(.light-theme) .badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.navbar {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 5px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 12px;
  left: 10%;
  right: 10%;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}
.commands-icon{
  background: rgba(255, 255, 255, 0.4); /* Kept user's hover */
}


.navbar-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.navbar-item span {
  margin-left: 8px;
  white-space: nowrap;
}

.navbar-item {
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 15px;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-item:hover {
  background: rgba(255, 255, 255, 0.4);
}

.theme-toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
}

.theme-toggle-button:hover {
  background: rgba(255, 255, 255, 0.4);
}

.theme-toggle-button span {
  display: none;
}

.theme-toggle-button .navbar-icon {
  width: 24px;
  height: 24px;
  margin: 0;
}

.menu-toggle {
  display: none;
}

.commands-section {
  padding: 50px 20px;
}

.commands-container {
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
}

.commands-container h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-top: -30px;
  margin-bottom: 20px;
  color: #F8F4E1;
}

/* Updated Command Card with Glass Effect */
.command-card {
  /* Glass effect: semi-transparent background with blur */
  background: rgba(255, 255, 255, 0.2); /* Default dark theme: low opacity white */
  backdrop-filter: blur(10px); /* Frosted glass blur */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle white border */
  padding: 20px 30px;
  margin: 0 auto 20px auto;
  width: 100%;
  max-width: 1000px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; /* Smooth transition for hover and theme changes */
}

/* Light theme adjustments for command card */
body.light-theme .command-card {
  background: rgba(255, 255, 255, 0.3); /* Slightly more opaque for light theme */
  border: 1px solid rgba(0, 0, 0, 0.1); /* Darker border for contrast */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* Hover effect for both themes */
.command-card:hover {
  background: rgba(255, 255, 255, 0.2); /* Slightly more opaque on hover (dark theme) */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px); /* Subtle lift effect */
}

body.light-theme .command-card:hover {
  background: rgba(255, 255, 255, 0.4); /* Slightly more opaque for light theme */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Ensure text readability */
.command-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff; /* White text for dark theme */
}

body.light-theme .command-card h2 {
  color: #1f2d40; /* Original color for light theme */
}

.command-card p {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #e0e0e0; /* Light gray for dark theme readability */
}

body.light-theme .command-card p {
  color: #333; /* Darker text for light theme */
}

.command-card code {
  background-color: rgba(0, 0, 0, 0.2); /* Slightly darker code background for dark theme */
  padding: 5px 10px;
  border-radius: 5px;
  font-family: "Courier New", Courier, monospace;
  display: block;
  margin-top: 5px;
  font-size: 0.95rem;
  color: #f5f5f5; /* Light text for code in dark theme */
}

body.light-theme .command-card code {
  background-color: #eff1f5; /* Original light theme code background */
  color: #333; /* Darker text for light theme */
}

.code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2); /* Darker for dark theme */
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
}

body.light-theme .code-block {
  background: #f5f5f5; /* Original light theme code block background */
}

.copy-btn {
  padding: 4px 10px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.copy-btn:hover {
  background-color: #0056b3;
}

.search-container {
  display: flex;
  justify-content: center;
  margin: 100px auto 0;
  width: 100%;
}

#commandSearch {
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 500px;
  font-size: 16px;
}

#loadMoreBtn {
  margin: 50px auto 0;
  padding: 12px 25px;
  display: block;
  background-color: #4e60ff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  width: auto;
}

#loadMoreBtn:hover {
  background-color: #3b4ad9;
}

/* Footer and other existing styles (unchanged) */
.container-footer {
  width: 100%;
  margin: 0 auto;
  margin-top: 100px;
  padding: 40px 20px 20px 20px;
  background-color: white;
  box-sizing: border-box;
  overflow-x: hidden;
}

.newsletter {
  text-align: center;
  margin-bottom: 50px;
}

.newsletter h2 {
  font-size: 24px;
  font-weight: 600;
  color: black;
  letter-spacing: 1px;
  margin-bottom: 15px;
  text-align: center;
}

.newsletter p {
  margin-bottom: 25px;
  color: #555;
  padding: 0 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.email-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.email-form input[type="email"] {
  padding: 12px 15px;
  border: none;
  outline: none;
  flex-grow: 1;
  min-width: 200px;
  font-size: 16px;
  box-sizing: border-box;
  border-radius: 8px 0 0 8px;
}

.email-form button {
  padding: 12px 25px;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
  border-radius: 0 8px 8px 0;
  transition: background-color 0.3s ease;
}

.email-form button:hover {
  background-color: #333;
}

footer {
  display: flex;
  flex-wrap: nowrap;
  padding: 30px 0;
  border-top: 1px solid #eee;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.footer-section {
  width: 33%;
  padding: 0 10px;
  box-sizing: border-box;
  margin-bottom: 30px;
  vertical-align: top;
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.footer-section ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: color 0.3s ease;
  display: inline-block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

.footer-section ul li a:hover {
  color: #000;
  text-decoration: underline;
}

.footer-section.bio p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  padding: 15px 0 0 0;
  border-top: 1px solid #eee;
  margin-top: -10px;
}

/* Responsive styles (updated for command card) */
@media (max-width: 768px) {
  .navbar {
    left: 10%;
    right: 10%;
    height: 40px;
    align-self: center;
  }

  .navbar-item span {
    display: none;
  }

  .navbar-items {
    justify-content: space-between;
    padding: 0px;
  }

  .navbar-item {
    padding: 0px;
  }

  .commands-container {
    padding: 0 15px;
  }

  .command-card {
    padding: 15px;
    width: 90%;
    max-width: none;
    /* Maintain glass effect on smaller screens */
    background: rgba(255, 255, 255, 0.1); /* Dark theme */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.light-theme .command-card {
    background: rgba(255, 255, 255, 0.3); /* Light theme */
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .search-container {
    margin: 100px auto 0;
  }

  #commandSearch {
    width: 90%;
  }

  #loadMoreBtn {
    width: 90%;
  }

  .command-card {
    margin-bottom: 20px;
  }

  #loadMoreBtn {
    padding: 12px 20px;
    width: 80%;
  }

  footer {
    flex-wrap: nowrap;
    padding: 20px 0;
  }

  .footer-section {
    width: 33%;
    padding: 0 8px;
    text-align: left;
  }

  .footer-section h3 {
    font-size: 15px;
    text-align: left;
  }

  .footer-section ul {
    display: block;
    text-align: left;
  }

  .footer-section ul li a {
    font-size: 13px;
  }

  .footer-section.bio p {
    font-size: 13px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .navbar {
    left: 5%;
    right: 5%;
    height: 35px;
    align-self: center;
  }

  .navbar-items :hover {
    padding: 0px;
  }

  .commands-container {
    margin-top: 0px;
  }

  .commands-container h1 {
    font-size: 24px;
    margin-top: 0px;
  }

  .container-footer {
    margin-top: 100px;
    padding: 30px 10px 15px 10px;
  }

  .search-container {
    margin-top: 100px;
    margin-bottom: 0px;
  }

  .email-form input[type="email"] {
    padding: 8px;
    border: none;
    outline: none;
    width: 200px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
  }

  .email-form button {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
  }

  .email-form {
    flex-direction: column;
    border: none;
    border-radius: 0;
    max-width: 100%;
  }

  .copyright {
    text-align: center;
    margin: -20px 0px -20px 0px;
    font-size: 11px;
    padding-top: 10px;
  }

  .newsletter h2 {
    font-size: 20px;
  }

  .newsletter p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .footer-section {
    width: 33%;
    padding: 0 5px;
    margin-bottom: 20px;
    text-align: left;
  }

  .footer-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: left;
  }

  .footer-section ul {
    display: block;
    text-align: left;
  }

  .footer-section ul li {
    margin-bottom: 8px;
  }

  .footer-section ul li a {
    font-size: 12px;
  }

  .footer-section.bio p {
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
  }

  .command-card {
    padding: 15px;
    width: 90%;
    max-width: none;
    /* Maintain glass effect */
    background: rgba(255, 255, 255, 0.1); /* Dark theme */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.light-theme .command-card {
    background: rgba(255, 255, 255, 0.3); /* Light theme */
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}
