/* Simple Portfolio CSS */
:root {
  --accent: #F05F40;
  --accent-dark: #d44e34;
}

body {
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Comfortaa', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Consistent Scrollbar Styling */
/* For Firefox */
* {
  scrollbar-color: #333333 #1c1c1c;
  scrollbar-width: thin;
}

/* For Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 0.5em;
  background-color: #1c1c1c;
}

*::-webkit-scrollbar-thumb {
  background-color: #c84b15;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #555555;
}

#portfolio {
  padding-top: 110px;
  padding-bottom: 50px;
  min-height: 100vh;
}

.portfolio-section {
  margin-bottom: 80px;
}

.portfolio-card {
  transition: all 0.3s ease !important;
}

.portfolio-card:hover {
  transform: translateY(-5px) !important;
}

/* Custom Audio Player Styles */
.custom-audio-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #333;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}

.custom-audio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #F05F40;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.custom-audio-slider::-webkit-slider-thumb:hover {
  background: #d44e34;
  transform: scale(1.1);
}

.custom-audio-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #F05F40;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.custom-audio-slider::-moz-range-thumb:hover {
  background: #d44e34;
  transform: scale(1.1);
}

.simple-modal {
  backdrop-filter: blur(5px);
}

.simple-modal>div {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #portfolio {
    padding-top: 92px;
  }

  .portfolio-section h2 {
    font-size: 2rem !important;
  }

  .simple-modal {
    padding: 10px !important;
  }

  .simple-modal>div {
    max-height: 95vh !important;
  }

  .simple-modal .modal-body {
    padding: 15px !important;
  }

  .simple-modal h2 {
    font-size: 1.5rem !important;
    padding-right: 40px !important;
  }
}

@media (max-width: 480px) {
  .portfolio-section>div:last-child {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 15px !important;
  }
}

/* Carousel Styles */
.portfolio-carousel .carousel-slide {
  pointer-events: none;
}

.portfolio-carousel .carousel-slide.active,
.portfolio-carousel .carousel-slide[style*="opacity: 1"] {
  pointer-events: auto;
}

/* Responsive carousel */
@media (max-width: 768px) {
  .portfolio-carousel > div:first-child {
    height: 250px !important;
  }
}

@media (max-width: 480px) {
  .portfolio-carousel > div:first-child {
    height: 200px !important;
  }
}

/* Podcast card grid alignment */
.portfolio-grid[data-podcast-grid="true"] {
  align-items: stretch;
}

.portfolio-grid[data-podcast-grid="true"] .podcast-card {
  height: 100%;
}