/*
 * Whopps Website - Modal & 3D Cards
 * Styles for project modal and 3D card effects
 */

/* ===== PROJECT MODAL STYLES ===== */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.project-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1001;
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  z-index: 1002;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-modal.active .modal-container {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
}

.modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

@media (min-width: 992px) {
  .modal-content {
    flex-direction: row;
  }
}

.modal-gallery {
  flex: 1;
  padding: 30px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-main-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-thumbnails {
  display: flex;
  gap: 10px;
}

.modal-thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-thumbnail:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.modal-thumbnail.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.modal-description h3 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-color);
}

.modal-description p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.detail-item h4 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 5px;
  color: var(--text-color);
}

.detail-item p {
  margin: 0;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

/* ===== 3D CARD EFFECTS ===== */
.work-item {
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.work-image {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.work-item:hover .work-image {
  transform: rotateY(10deg) rotateX(5deg) translateZ(10px);
}

.work-overlay {
  backface-visibility: hidden;
  transform: translateZ(20px);
}

.work-info {
  transform: translateZ(30px);
}

.work-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.3s ease;
  transform: translateZ(40px);
}

.work-link:hover {
  color: white;
  background-color: var(--accent-color);
  transform: translateZ(40px) translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add shine effect to cards */
.work-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.work-item:hover .work-image::after {
  transform: translateX(0%) translateY(0%);
}
