:root {
  --light-accent: #97ecfe;
  --main-accent: #1734c2;
  --black: #000000;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

section {
  margin-block-end: 2rem;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

header {
  background: var(--main-accent);
  color: var(--white);
  padding: 1rem 0;
  position: relative; /* ✅ allows absolute positioning inside */
}

.logo-wrapper {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.nav-logo {
  height: 50px;
  width: auto;
  background-color: white; /* since the icon has a white background */
  border-radius: 3px;
  padding: 4px;
  margin-right: 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 1rem;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

#menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hamburger to X animation */
#menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive nav */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  nav {
    justify-content: flex-start;
    padding-left: 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: var(--main-accent);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
  }

  nav ul.show {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
  }

  nav ul.hide {
    animation: slideUp 0.2s ease-in forwards;
  }

  nav ul li {
    margin: 0.5rem 0;
  }
}

/* Slide down animation */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slide up animation */
@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Main content */
.container {
  padding: 1rem;
  max-width: 1000px;
  margin: auto;
}

h1 {
  color: var(--main-accent);
}

h3 {
  margin: 0;
}

.video-section video {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--light-accent);
  border-radius: 8px;
  margin-top: 1rem;
}

video {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--light-accent);
  border-radius: 8px;
  margin-top: 1rem;
}

/* Examples page */
.media-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.media-item p {
  padding: 0;
}

/* Homepage table */
.comparison-table {
  margin: 2rem 0;
  text-align: center;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
}

table th,
table td {
  border: 1px solid var(--light-accent);
  padding: 0.75rem;
}

table th {
  background: var(--main-accent);
  color: white;
}

table td i.fa-check {
  color: green;
}

table td i.fa-times {
  color: red;
}

/* Support Page */
.doc-toggle {
  background-color: var(--light-accent);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

.doc-toggle:hover {
  background-color: var(--main-accent);
  color: var(--white);
}

.doc-content {
  display: none;
  padding: 1rem;
  background-color: #f9f9f9;
  border-left: 4px solid var(--main-accent);
  margin-bottom: 1rem;
}

/* Tutorial */
.tutorial-step {
  display: none;
  text-align: center;
}

.tutorial-step.active {
  display: block;
}

.tutorial-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.tutorial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tutorial-nav button {
  background-color: var(--main-accent);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.tutorial-nav button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}


/* Installation */
.tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab-button {
  background: var(--light-accent);
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
}

.tab-button.active {
  background: var(--main-accent);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active-tab {
  display: block;
}

.install-step {
  display: none;
  text-align: center;
}

.install-step.active-step {
  display: block;
}

.install-step img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.install-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.install-nav button {
  background-color: var(--main-accent);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.step-indicators {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  gap: 0.5rem;
}

.step-indicators .dot {
  width: 12px;
  height: 12px;
  background: var(--light-accent);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.step-indicators .dot.active {
  background: var(--main-accent);
}

.toggle-all {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--main-accent);
  color: var(--main-accent);
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.tab-content.all-visible .install-step {
  display: block !important;
}

.tab-content.all-visible .step-indicators,
.tab-content.all-visible .install-nav {
  display: none;
}


/* Purchase Page */

.product-card ul {
  text-align: left;
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.product-card ul li {
  margin: 0.5rem 0;
  list-style-type: disc;
}


/* Examples Page */

.tab-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab-button {
  background: var(--light-accent);
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
}

.tab-button.active {
  background: var(--main-accent);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active-tab {
  display: block;
}


.media-image {
  max-width: 100%;
  height: auto;
  /* border: 2px solid var(--light-accent); */
  border-radius: 8px;
  margin-top: 1rem;
  cursor: zoom-in;
}

.image-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  overflow: auto;
  z-index: 9999;
  padding: 2rem;
}

.image-overlay img {
  max-width: none;
  height: auto;
}

/* Footer */

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--light-accent);
    margin-top: 2rem;
    color: var(--black);
  }

  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left; /* Override center for content alignment */
  }

  .footer-col {
    flex: 1 1 200px;
    min-width: 150px;
  }

  .footer-col p, .footer-col a {
    margin: 4px 0;
    color: var(--black);
    text-decoration: none;
  }

  .footer-col a:hover {
    text-decoration: underline;
  }

  @media (max-width: 600px) {
    .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .footer-col {
      text-align: center;
    }
  }