* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.opened {
  display: block;
}

#openModalBtn {
  padding: 15px 30px;
  font-size: 18px;
  background: #000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#openModalBtn:hover {
  background: #333;
}

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

.custom-modal .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.custom-modal .modal-content {
  position: relative;
  width: 99%;
  max-width: 810px;
  height: auto;
  max-height: 88vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.9));
}

.custom-modal .modal-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

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

.custom-modal .modal-text {
  color: #ffffff;
  padding: 30px;
  position: relative;
  z-index: 2;
  margin-top: 330px;
  background: linear-gradient(180deg, transparent, rgba(4, 25, 45, 0.95));
  padding-top: 50px;
}

.custom-modal .modal-text h1 {
  font-family: 'BMW Type Next', Arial, sans-serif;
  font-size: 42px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-transform: none;
}

.custom-modal .modal-text .modal-inner-text {
  font-family: 'BMW Type Next', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  opacity: 1;
  max-width: 800px;
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 0;
}

.custom-modal .close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  font-size: 20px;
  transition: background 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-modal .close:hover {
  background: #e0e0e0;
}

/* Tablet için medya sorgusu */
@media screen and (max-width: 768px) {
  .custom-modal .modal-content {
    width: 95%;
    height: 50%;
  }

  .custom-modal .modal-text h1 {
    font-size: 32px;
  }

  .custom-modal .modal-text .modal-inner-text {
    font-size: 14px;
  }
}

/* Mobil için medya sorgusu */
@media screen and (max-width: 480px) {
  .custom-modal .modal-content {
    width: 100%;
    height: 60vh;
    border-radius: 0;
  }

  .custom-modal .modal-text {
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: 0;
    background: linear-gradient(180deg, transparent, rgba(4, 25, 45, 0.95));
    max-height: 100%;
    overflow-y: auto;
  }
  
  .custom-modal .modal-text::-webkit-scrollbar {
    display: none;
  }

  .custom-modal .modal-text h1 {
    font-size: 28px;
  }

  .custom-modal .modal-text .modal-inner-text {
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
  }

  .custom-modal .close {
    right: 10px;
    top: 10px;
  }
}

/* three.js */
#model-container {
  width: 100%;
  height: 50%;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
}

#model-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.project-details-image {
  width: 100%;
  /*height: 900px;*/
  position: relative;
  margin-bottom: 20px;
}

.blurred {
  filter: blur(10px);
  /* Arka planı bulanıklaştır */
  -webkit-filter: blur(10px);
  /* WebKit tarayıcılar için */
}

/****************** loading model ******************/
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  padding-right: 20px;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  font-size: 1.5em;
  z-index: 9999;
  pointer-events: all;
  margin: 0;
  padding: 0;
}


.loading-content {
  text-align: center;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background-color: #555;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

#loading-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #019ee3);
  border-radius: 5px;
  transition: width 0.1s ease-in-out;
}

.custom-modal .modal-text {
  line-height: 1.5;
}

@media screen and (max-width: 480px) {
  .custom-modal .modal-content {
    margin: 10px;
    border-radius: 10px;
  }
}