* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

body {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgb(24, 24, 24);
  color: #fff;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  border-radius: 15px;
  background-color: #202020;
  position: fixed;
  z-index: 999;
  top: 0;
  width: 99%;
}

.input {
  margin: 15px;
  background: none;
  border: none;
  outline: none;
  width: 60%;
  padding: 10px 20px;
  font-size: 12px;
  border-radius: 9999px;
  box-shadow: inset 2px 2px 10px rgb(5, 5, 5);
  color: #fff;
}

nav i {
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
  padding: 5px;
  border-radius: 25px;
  margin: 0px 10px;
  border: 1px solid rgb(68, 68, 68);
  cursor: pointer;
  font-size: 18px;
  color: rgb(83, 83, 83);
}

/* Dropdown Menu Styles */
.dropdown-menu {
  display: none; /* Hidden by default */
  position: fixed;
  top: 60px;
  right: 15px;
  background-color: #2e2e2e;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: hidden;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 25px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.dropdown-menu a:hover {
  background-color: #3a3a3a;
}

/* Overlay Styles */
.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1001; /* Above content, below modal */
}

.overlay.show {
  display: block;
}

/* Off-Canvas Modal Styles */
.modal {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #202020;
  z-index: 1002; /* Above overlay */
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(100%); /* Start off-screen */
  transition: transform 0.3s ease-in-out;
}

.modal.show {
  transform: translateY(0); /* Slide in */
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #333;
}

.modal-header h2 {
  font-size: 18px;
}

.modal-header .close-btn {
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.modal-body {
  padding: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.modal-body.contact-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-icons a {
    color: #fff;
    font-size: 28px;
    transition: color 0.2s;
}

.contact-icons a:hover {
    color: #aaa;
}


.cards-display {
  margin: 90px 0px 90px 0px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 190px;
  height: 254px;
  border-radius: 8px;
  overflow: hidden;
  background: rgb(50, 50, 50);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
    rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card i {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.card i:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.toast {
  position: absolute;
  bottom: 10px;
  background: black;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

.loading-indicator {
  margin-top: 100px;
  font-size: 1.2rem;
}

.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #333;
  border-radius: 15px;
  background-color: #202020;
  position: fixed;
  z-index: 999;
  bottom: 0;
  height: 70px;
  width: 99%;
}

.bottom-bar .icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  padding: 0px 40px;
  height: 60px;
}

.bottom-bar i {
  font-size: 23px;
  color: rgb(165, 165, 165);
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
  padding: 10px;
  border-radius: 25px;
  margin: 0px 10px;
  border: 1px solid rgb(68, 68, 68);
  cursor: pointer;
  font-size: 18px;
}

.bottom-bar button {
  border-radius: 5px;
  background-color: black;
  padding: 5px 4px;
  color: rgb(212, 212, 212);
  border: 1px solid rgb(174, 174, 174);
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}

#aiBtn { /* Changed from #ai to target the container */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#aiBtn .ai-img {
  width: 16px;
}

#ai a{
  text-decoration: none;
}
.ai-icons{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.ai-icons img{
  width: 40px;
}
#ai h6{
  color: white;
  margin: 1px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

@media (max-width: 450px) {
  .card {
    width: calc(50% - 15px);
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .card i {
    font-size: 14px;
    padding: 4px;
  }
}