body {
  font-family: "Roboto", sans-serif;
}

body:not(.dark) {
  background: linear-gradient(
    to right,
    #0094ff 0%,
    #0094ff 3%,
    #ffffff 8%,
    #ffffff 100%
  );
}

body.dark {
  background: linear-gradient(
    to right,
    #0094ff 0%,
    #0094ff 3%,
    #0a0a0a 8%,
    #0a0a0a 100%
  );
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: white; /* Or your site’s background color */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow for depth */
}
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 1rem;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #000;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

.main {
  padding-top: 4rem;
}

@media (max-width: 768px) {
  .main {
    padding-top: 5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  #menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-toggle:checked ~ #menu {
    display: flex;
  }
}

form {
  max-width: 500px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: sans-serif;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input:focus,
textarea:focus {
  border-color: #072380;
  outline: none;
  box-shadow: 0 0 0 1px #072380;
}

button[type="submit"] {
  background-color: #072380;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #0a2b9c;
}

.slogan-description {
  display: block;
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 700px;
  color: #444;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

.slogan-divider {
  width: 60%;
  margin: 1.5rem auto;
  border: 0;
  border-top: 1px solid #ccc;
}

.profile-img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.profile img.profile-img {
  border-radius: 0 !important;
  clip-path: none !important;
  mask-image: none !important;
}

footer.custom-footer {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-left img {
  height: 48px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 1rem;
  box-sizing: border-box;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border: none;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

/* 🆕 VIDEO LISTING PANEL */
.video-panel {
  display: flex;
  align-items: center;
  gap: 32px; /* NEW: replaces margin-right for spacing between items */
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 800px;
}

.video-thumbnail {
  width: 120px;
  height: auto;
  border-radius: 8px;
  margin-right: 32px;
  object-fit: cover;
  cursor: pointer;
}

.video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.video-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 8px;
}

.play-button {
  align-self: flex-start;
  font-weight: bold;
  text-decoration: none;
  color: #007acc;
  cursor: pointer;
}
.play-button::before {
  content: "▶ ";
}
.appexplanation-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  position: relative;
  max-width: 100%;
}

.appexplanation-content {
  flex: 1;
  max-width: 100%;
}

.section-nav {
  position: sticky;
  top: 100px;
  width: 180px;
  margin-right: 2rem;
  margin-left: -240px; /* Pushes into the unused left margin */
  background: #0094ff;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.section-nav a {
  display: block;
  margin-bottom: 0.8rem;
  text-decoration: underline;
  color: white;
  font-weight: 500;
}

.section-nav a:hover {
  color: #e0f0ff; /* light blue hover */
  text-decoration: none;
}

/* ✅ Mobile layout adjustment */
@media (max-width: 768px) {
  .appexplanation-layout {
    flex-direction: column;
  }

  .section-nav {
    position: relative;
    top: unset;
    margin: 0 0 1.5rem 0;
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #0094ff; /* corrected background */
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .section-nav a {
    display: block;
    margin: 0.4rem 0;
    padding: 0.4rem 0.75rem;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: white;
    font-weight: 500;
  }

  .section-nav a:hover {
    background: rgba(255, 255, 255, 0.15); /* subtle highlight on hover */
  }

  .appexplanation-content {
    width: 100%;
  }
}

.screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  /* ↓ spacing adjustments ↓ */
  margin-top: -20px; /* tighter to the heading */
  margin-bottom: 32px; /* more air before the next list item */
}

.screenshot-gallery img {
  width: 40px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.screenshot-gallery img:hover {
  transform: scale(7);
  z-index: 1000;
  position: relative;
}

ul#menu li a {
  font-size: 0.95rem !important;
}
