/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  padding-top: 70px;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 70%;
  max-width: 900px;
  max-height: 85vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.8) translateY(50px);
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 30px 40px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.modal-title {
  color: #fff;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-close span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-content {
  padding: 30px 40px 40px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.modal-section {
  margin-bottom: 40px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-subtitle {
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 0;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 15px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

.video-links {
  text-align: center;
}

.video-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  padding: 12px 25px;
  border: 2px solid #667eea;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: rgba(102, 126, 234, 0.1);
}

.video-link:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.cta-section {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2em;
  margin-bottom: 25px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 600;
  padding: 15px 35px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-container {
    width: 90%;
    max-height: 90vh;
    margin: 20px;
  }

  .modal-header {
    padding: 20px 25px 15px;
  }

  .modal-title {
    font-size: 1.8em;
  }

  .modal-content {
    padding: 20px 25px 30px;
    max-height: calc(90vh - 90px);
  }

  .modal-subtitle {
    font-size: 1.2em;
  }

  .modal-description {
    font-size: 1em;
  }

  .cta-section {
    padding: 20px;
  }

  .cta-text {
    font-size: 1.1em;
  }

  .cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  .modal-container {
    width: 95%;
  }

  .modal-header {
    padding: 15px 20px 10px;
  }

  .modal-title {
    font-size: 1.5em;
  }

  .modal-content {
    padding: 15px 20px 25px;
  }

  .modal-section {
    margin-bottom: 30px;
  }
}