/* Projects Page Styles */
.projects-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a148c 0%, #7b2cbf 100%);
  padding: 120px 40px 80px;
  text-align: center;
}

.projects-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
}

.projects-hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
}

.projects-section {
  padding: 80px 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 123, 0, 0.3);
  border-color: rgba(255, 123, 0, 0.5);
}

.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #7b2cbf 0%, #4a148c 100%);
}

.project-image img {
  width: 100%;
  height: auto;

  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-card:hover .project-image video {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.project-category {
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
}

.project-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span {
  background: rgba(255, 123, 0, 0.2);
  color: #ff7b00;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 123, 0, 0.3);
}

.cta-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, #4a148c 0%, #7b2cbf 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.nav-links a.active {
  color: #ff7b00;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(45deg, #ff7b00, #ff4500);
}

/* Responsive Projects */
@media (max-width: 768px) {
  .projects-hero h1 {
    font-size: 2.5rem;
  }

  .projects-hero p {
    font-size: 1.1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1rem;
  }
}

/* Video carousel for services */
.service-video-container {
  position: relative;
  background: linear-gradient(135deg, #7b2cbf 0%, #4a148c 100%);
}

/* Add logo background to service video containers */
.service-video-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background-image: url('../img/Logo_BYTOKIO_004.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

/* YouTube video container */
.youtube-video-container {
  position: relative;
  background: linear-gradient(135deg, #7b2cbf 0%, #4a148c 100%);
  width: 100%;
  height: 250px;
  overflow: hidden;
  cursor: pointer;
}

/* Add logo background to YouTube video containers */
.youtube-video-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background-image: url('../img/Logo_BYTOKIO_004.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

.youtube-video-container iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300%;
  height: 300%;
  border: none;
  pointer-events: none;
}

.service-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: transparent;
  position: relative;
  z-index: 2;
}

.video-carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.carousel-prev,
.carousel-next {
  background: rgba(255, 123, 0, 0.9);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 123, 0, 1);
  transform: scale(1.1);
}

/* Audio Player Styles */
.service-audio-container {
  background: linear-gradient(135deg, #7b2cbf 0%, #4a148c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.audio-player {
  width: 100%;
  max-width: 100%;
}

.audio-visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 80px;
  gap: 4px;
  margin-bottom: 20px;
}

.audio-wave {
  width: 6px;
  background: linear-gradient(to top, #ff7b00, #ff4500);
  border-radius: 3px;
  animation: wave 1s ease-in-out infinite;
}

.audio-wave:nth-child(1) {
  height: 30%;
  animation-delay: 0s;
}

.audio-wave:nth-child(2) {
  height: 50%;
  animation-delay: 0.1s;
}

.audio-wave:nth-child(3) {
  height: 70%;
  animation-delay: 0.2s;
}

.audio-wave:nth-child(4) {
  height: 50%;
  animation-delay: 0.3s;
}

.audio-wave:nth-child(5) {
  height: 30%;
  animation-delay: 0.4s;
}

@keyframes wave {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.5);
  }
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.audio-btn {
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.audio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4);
}

.audio-info {
  flex: 1;
  color: white;
}

.audio-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
}

.audio-time {
  font-size: 0.85rem;
  opacity: 0.8;
}

.audio-progress-container {
  width: 100%;
}

.audio-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.audio-progress {
  height: 100%;
  background: linear-gradient(to right, #ff7b00, #ff4500);
  width: 0%;
  transition: width 0.1s linear;
}

/* Track Indicators */
.track-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.track-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.track-dot:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.track-dot.active {
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.15);
}

/* Video Indicators */
.video-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.video-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.video-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.video-dot.active {
  background: #ff7b00;
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.3);
}

/* Video Mute Button */
.video-mute-btn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.video-mute-btn:hover {
  background: rgba(255, 123, 0, 0.9);
  transform: scale(1.1);
}

/* Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.video-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-video-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  max-height: 80vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-video-container iframe {
  width: 45vh;
  height: 80vh;
  max-height: 80vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.modal-video {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 123, 0, 0.9);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-close:hover {
  background: rgba(255, 123, 0, 1);
  transform: scale(1.1) rotate(90deg);
}

.modal-info {
  padding: 30px;
  color: white;
}

.modal-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #ff7b00, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-info p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-tags span {
  background: rgba(255, 123, 0, 0.2);
  color: #ff7b00;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 123, 0, 0.3);
}

/* Make cards clickable */
.project-card {
  cursor: pointer;
}

.project-card:hover {
  cursor: pointer;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-info h2 {
    font-size: 1.5rem;
  }

  .modal-info p {
    font-size: 1rem;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
  }
}

/* Modal Video Indicators (Dots) */
.modal-video-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.modal-video-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.modal-video-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.modal-video-dot.active {
  background: #ff7b00;
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.4);
}

/* Responsive Modal Indicators */
@media (max-width: 768px) {
  .modal-video-indicators {
    bottom: 15px;
    gap: 10px;
  }

  .modal-video-dot {
    width: 10px;
    height: 10px;
  }
}