/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  background-color: black;
  color: white;
  min-height: 100vh;
  /* Removed overflow: hidden to allow scrolling */
}
#modal video {
  width: 80%;
  max-width: 600px;
  border: 4px solid white;
  border-radius: 20px;
  object-fit: cover;
  pointer-events: none; /* disables right click & dragging */
}

#modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

/* Age Verification Popup */
.age-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.age-popup.active {
  /* Add overflow: hidden to body when popup is active */
}
.age-popup-content {
  background-color: #111827;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  width: 90%;
  max-width: 400px;
}
.age-popup h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.age-popup p {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}
.age-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .age-popup-buttons {
    flex-direction: row;
    justify-content: center;
  }
}
.age-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.age-btn-confirm {
  background-color: #3b82f6;
  color: white;
  border: none;
}
.age-btn-confirm:hover {
  background-color: #2563eb;
}
.age-btn-exit {
  background-color: transparent;
  border: 2px solid #f97316;
  color: #f97316;
}
.age-btn-exit:hover {
  background-color: #f97316;
  color: white;
}
.hidden {
  display: none !important;
}

/* Header styles */
header {
  background-color: black;
  border-bottom: 1px solid #1f2937;
  padding: 0.75rem 1rem;
  display: flex; /* Show header by default */
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.logo-text-blue {
  color: #3b82f6;
  font-size: 1.25rem;
  font-weight: bold;
}
.logo-text-orange {
  color: #f97316;
  font-size: 1.25rem;
  font-weight: bold;
}
.logo-svg {
  width: 2rem;
  height: 2rem;
  color: #f97316;
}
.header-buttons {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .header-buttons {
    display: flex;
  }
}
.btn {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn-blue {
  background-color: #3b82f6;
  color: white;
  border: none;
}
.btn-blue:hover {
  background-color: #2563eb;
}
.btn-orange {
  background-color: #f97316;
  color: white;
  border: none;
}
.btn-orange:hover {
  background-color: #ea580c;
}
.btn-transparent {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}
.btn-transparent:hover {
  background-color: white;
  color: black;
}
.btn-icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  margin-right: 0.25rem;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 60;
}
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}
.hamburger span {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Layout */
.main-container {
  display: none;
  flex-direction: column;
}
.main-container.visible {
  display: flex;
}
@media (min-width: 768px) {
  .main-container.visible {
    flex-direction: row;
  }
}
aside {
  width: 100%;
  background-color: black;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  overflow-y: hidden;
  transition: left 0.3s ease;
  z-index: 40;
}
aside.active {
  left: 0;
}
@media (min-width: 768px) {
  aside {
    width: 16rem;
    position: sticky;
    top: 3.5rem;
    left: 0;
    height: calc(100vh - 3.5rem);
    border-right: 1px solid #1f2937;
  }
}
.language-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.language-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.language-item:hover {
  background-color: #111827;
}
.language-count {
  background-color: white;
  color: black;
  border-radius: 9999px;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.show-all-btn {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid #374151;
  border-radius: 9999px;
  padding: 0.5rem;
  transition: border-color 0.3s;
  background-color: transparent;
  color: white;
  cursor: pointer;
}
.show-all-btn:hover {
  border-color: #6b7280;
}
.plus-icon {
  width: 1rem;
  height: 1rem;
}

/* Main content */
main {
  flex: 1;
  padding: 1rem;
}
h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  h1 {
    font-size: 2rem;
  }
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .profile-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.profile-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
}
.profile-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.profile-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.profile-card:hover .profile-image {
  transform: scale(1.05);
}
.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.badge-orange {
  background-color: #c2410c;
  color: white;
}
.badge-blue {
  background-color: #2563eb;
  color: white;
}
.badge-icon {
  width: 0.875rem;
  height: 0.875rem;
}
.profile-info {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
}
.profile-name {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}
.profile-details {
  color: #d1d5db;
  font-size: 0.75rem;
}

/* Description section */
.description {
  background-color: #047857;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.description-text {
  color: #d1d5db;
  font-size: 0.75rem;
  line-height: 1.5;
}
@media (min-width: 640px) {
  .description-text {
    font-size: 0.875rem;
  }
}

/* Voice Only Shows heading */
h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  h2 {
    font-size: 1.5rem;
  }
}

/* pop up for play video */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-content {
  background: #000;
  padding: 10px;
  border-radius: 12px;
  position: relative;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  text-align: center;
}

.video-modal video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s;
}
.close-btn:hover {
  transform: scale(1.2);
}

.membership-btn {
  margin-top: 10px;
  background: linear-gradient(90deg, #007bff, #00bfff);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.membership-btn:hover {
  background: linear-gradient(90deg, #0056b3, #0099cc);
}

/* ============================= */
/* Responsive adjustments */
/* ============================= */

/* Tablets */
@media (max-width: 992px) {
  .video-modal-content {
    max-width: 600px;
    padding: 8px;
  }

  .close-btn {
    font-size: 24px;
    top: 6px;
    right: 10px;
  }

  .membership-btn {
    font-size: 15px;
    padding: 8px 16px;
  }
}

/* Mobile devices */
@media (max-width: 600px) {
  .video-modal-content {
    width: 95%;
    max-width: 400px;
    padding: 6px;
    border-radius: 10px;
  }

  .video-modal video {
    border-radius: 8px;
  }

  .close-btn {
    font-size: 22px;
    top: 5px;
    right: 8px;
  }

  .membership-btn {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }
}

/* Extra small devices (under 400px width) */
@media (max-width: 400px) {
  .video-modal-content {
    width: 95%;
    max-width: 320px;
  }

  .close-btn {
    font-size: 20px;
  }

  .membership-btn {
    font-size: 13px;
    padding: 8px;
  }
}

/* User Info Modal */
.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.info-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.info-modal-content {
  position: relative;
  background: #0000;
  padding: 20px;
  border-radius: 12px;
  border-color: #fff;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.info-modal-content h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.4rem;
}

.info-modal-content input {
  width: 90%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.info-modal-content input:focus {
  border-color: #007bff;
}

.info-modal-content button {
  background: linear-gradient(90deg, #007bff, #00bfff);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.info-modal-content button:hover {
  background: linear-gradient(90deg, #0056b3, #0099cc);
}

.info-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #333;
  font-size: 26px;
  cursor: pointer;
}

/* ============================= */
/* Responsive adjustments */
/* ============================= */

/* Tablets */
@media (max-width: 992px) {
  .info-modal-content {
    max-width: 380px;
    padding: 18px;
  }

  .info-modal-content h3 {
    font-size: 1.3rem;
  }

  .info-modal-content input {
    font-size: 15px;
  }

  .info-modal-content button {
    font-size: 15px;
    padding: 9px 18px;
  }
}

/* Mobile devices */
@media (max-width: 600px) {
  .info-modal-content {
    width: 95%;
    max-width: 340px;
    padding: 16px;
    border-radius: 10px;
  }

  .info-modal-content h3 {
    font-size: 1.2rem;
  }

  .info-modal-content input {
    width: 100%;
    font-size: 14px;
    padding: 9px;
  }

  .info-modal-content button {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  .info-close-btn {
    font-size: 22px;
    top: 5px;
    right: 8px;
  }
}

/* Extra small devices (under 400px) */
@media (max-width: 400px) {
  .info-modal-content {
    width: 95%;
    max-width: 300px;
    padding: 14px;
  }

  .info-modal-content h3 {
    font-size: 1.1rem;
  }

  .info-modal-content input {
    font-size: 13px;
  }

  .info-modal-content button {
    font-size: 13px;
    padding: 8px;
  }

  .info-close-btn {
    font-size: 20px;
  }
}
