/* Main Slider Styles (Homepage) */
.project-slider-wrap {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 20px;
}

.project-slider {
  position: relative;
  overflow: hidden;
}

.project-slider .swiper-wrapper {
  align-items: stretch;
}

.project-slider .swiper-slide {
  height: 430px;
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  /* Visibility by default - HIDDEN initially for animation */
  opacity: 0;
  transform: translateY(60px);
}

@keyframes projectCardSlideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-slider-wrap.is-loaded .project-card {
  animation: projectCardSlideUp 2s ease-out forwards;
}

.project-slider-wrap.is-loaded .swiper-slide:nth-child(1) .project-card {
  animation-delay: 0s;
}

.project-slider-wrap.is-loaded .swiper-slide:nth-child(2) .project-card {
  animation-delay: 0.5s;
}

.project-slider-wrap.is-loaded .swiper-slide:nth-child(3) .project-card {
  animation-delay: 1.0s;
}

.project-slider-wrap.is-loaded .swiper-slide:nth-child(4) .project-card {
  animation-delay: 1.5s;
}

.project-slider-wrap.is-loaded .swiper-slide:nth-child(5) .project-card {
  animation-delay: 2.0s;
}

.project-slider-wrap.is-loaded .swiper-slide:nth-child(n+6) .project-card {
  animation-delay: 2.5s;
}

.project-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.8s ease;
}

.project-card-overlay {
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.8s ease;
  z-index: 2;
}

.project-card-title {
  position: absolute;
  inset: 0;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px;
  text-align: center;
  color: #ffffff !important;
  font-family: "Marcellus SC", serif;
  font-size: 32px;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.9);
  z-index: 10;
  text-transform: uppercase;
  pointer-events: none;
}

.project-card-title span {
  display: block;
}

.project-card:hover .project-card-bg {
  transform: scale(1.06);
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.7));
}

.project-nav-prev,
.project-nav-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cabe9e;
  color: #fff;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s;
}

.project-nav-prev {
  left: 10px;
}

.project-nav-next {
  right: 10px;
}

.project-nav-prev:hover,
.project-nav-next:hover {
  background: #b09c7b;
}

.project-pagination {
  margin-top: 15px;
  text-align: center;
}

.project-pagination .swiper-pagination-bullet-active {
  background: #c9b27c;
}

/* Detail View Styles (Modern) */
.immo-detail-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.immo-detail-wrap .left-slider {
  width: 50%;
}

.immo-detail-wrap .slider-wrapper {
  width: 100%;
  position: relative;
  padding-top: 56.1%;
  /* 16:9 Aspect Ratio */
  overflow: hidden;
  border-radius: 8px;
}

.immo-detail-wrap .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity .8s ease, transform 5s ease;
}

.immo-detail-wrap .slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.immo-detail-wrap .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.immo-detail-wrap .slider-dots {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.immo-detail-wrap .slider-dots span {
  width: 11px;
  height: 11px;
  background: #bfbfbf;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease;
}

.immo-detail-wrap .slider-dots .active {
  background: #4b4b4b;
  transform: scale(1.25);
}

.immo-detail-wrap .right-content {
  width: 50%;
}

.immo-detail-wrap .right-content h2 {
  font-family: "Marcellus SC", serif;
  font-size: 36px;
  line-height: 40px;
  color: rgb(63, 68, 72);
  font-weight: 400;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: immoFadeUp 0.7s ease forwards;
  animation-delay: .2s;
}

.immo-detail-wrap .project-content {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 26px;
  color: rgb(122, 122, 122);
}

.immo-detail-wrap .project-content p {
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: immoFadeUp 0.7s ease forwards;
}

.immo-detail-wrap .project-content p:nth-child(1) {
  animation-delay: .35s;
}

.immo-detail-wrap .project-content p:nth-child(2) {
  animation-delay: .45s;
}

.immo-detail-wrap .project-content p:nth-child(3n) {
  animation-delay: .55s;
}

@keyframes immoFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .immo-detail-wrap {
    flex-direction: column;
    gap: 30px;
  }

  .immo-detail-wrap .left-slider,
  .immo-detail-wrap .right-content {
    width: 100%;
  }

  .immo-detail-wrap .slide.active {
    transform: scale(1.0) !important;
  }

  .immo-detail-wrap .right-content h2 {
    font-size: 28px;
    line-height: 32px;
  }
}

/* Archive Grid Styles */
.immo-projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
}

.immo-grid-item {
  flex: 0 1 calc(33.333% - 20px);
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(40px);
}

.immo-projects-grid.is-loaded .immo-grid-item {
  animation: projectCardSlideUp 2s ease-out forwards;
}

/* Archive Staggered Delays */
.immo-projects-grid.is-loaded .immo-grid-item:nth-child(1) {
  animation-delay: 0.1s;
}

.immo-projects-grid.is-loaded .immo-grid-item:nth-child(2) {
  animation-delay: 0.2s;
}

.immo-projects-grid.is-loaded .immo-grid-item:nth-child(3) {
  animation-delay: 0.3s;
}

.immo-projects-grid.is-loaded .immo-grid-item:nth-child(4) {
  animation-delay: 0.4s;
}

.immo-projects-grid.is-loaded .immo-grid-item:nth-child(5) {
  animation-delay: 0.5s;
}

.immo-projects-grid.is-loaded .immo-grid-item:nth-child(6) {
  animation-delay: 0.6s;
}

.immo-projects-grid.is-loaded .immo-grid-item:nth-child(7) {
  animation-delay: 0.7s;
}

.immo-projects-grid.is-loaded .immo-grid-item:nth-child(8) {
  animation-delay: 0.8s;
}

.immo-projects-grid.is-loaded .immo-grid-item:nth-child(9) {
  animation-delay: 0.9s;
}

.immo-projects-grid.is-loaded .immo-grid-item:nth-child(n+10) {
  animation-delay: 1.0s;
}

.immo-grid-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.immo-grid-card:hover {
  transform: translateY(-5px);
}

.immo-grid-img {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
}

.immo-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
  z-index: 1;
}

.immo-grid-card:hover .immo-grid-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.immo-grid-title-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.immo-grid-title-wrap h3 {
  margin: 0;
  color: #fff;
  font-family: "Marcellus SC", serif;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 1024px) {
  .project-slider .swiper-slide {
    height: 380px;
  }

  .immo-detail-wrap {
    flex-direction: column;
    gap: 30px;
  }

  .immo-detail-wrap .left-slider,
  .immo-detail-wrap .right-content {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .project-card-title {
    font-size: 24px;
  }

  .project-slider .swiper-slide {
    height: 320px;
  }
}

/* Showcase Styles */
.project-showcase {
  font-family: 'Marcellus SC', serif;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.tabs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
}

.tab-item {
  padding: 15px 20px;
  background-color: #f9f9f9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-align: center;
  min-width: 180px;
  color: #555;
  border-radius: 2px;
  text-transform: uppercase;
}

.tab-item.active {
  background-color: #c4b498;
  color: white;
  position: relative;
  box-shadow: 0 4px 15px rgba(196, 180, 152, 0.3);
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #c4b498;
}

/* Showcase Animations */
@keyframes showcaseFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-content-display {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: stretch;
}

/* Animasyon uygulanacak elementler */
.project-content-display.animate .detail-row,
.project-content-display.animate .apply-btn,
.project-content-display.animate .project-image-preview img {
  opacity: 0;
  animation: none;
}

.project-content-display.active .detail-row,
.project-content-display.active .apply-btn,
.project-content-display.active .project-image-preview img {
  animation: showcaseFadeUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* Staggered Delays for Showcase */
.project-content-display.active .detail-row:nth-child(1) {
  animation-delay: 0.2s;
}

.project-content-display.active .detail-row:nth-child(2) {
  animation-delay: 0.3s;
}

.project-content-display.active .detail-row:nth-child(3) {
  animation-delay: 0.4s;
}

.project-content-display.active .detail-row:nth-child(4) {
  animation-delay: 0.5s;
}

.project-content-display.active .detail-row:nth-child(5) {
  animation-delay: 0.6s;
}

.project-content-display.active .apply-btn {
  animation-delay: 0.7s;
}

.project-content-display.active .project-image-preview img {
  animation-delay: 0.3s;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detail-row.border-none {
  border-bottom: none;
}

.label {
  color: #999;
  font-weight: 400;
}

.value {
  color: #222;
  font-weight: 600;
  text-align: right;
}

.apply-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  margin-top: 35px;
  border: 1px solid #c4b498;
  color: #c4b498;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 3px;
  transition: all 0.3s ease;
  font-size: 13px;
  text-transform: uppercase;
}

.apply-btn:hover {
  background-color: #c4b498;
  color: white;
}

.project-image-preview {
  height: 100%;
}

.project-image-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
  .project-content-display {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-image-preview {
    order: -1;
  }
}

@media (max-width: 640px) {
  .tab-item {
    flex: 1 1 100%;
  }

  .detail-row {
    flex-direction: column;
    gap: 5px;
  }

  .value {
    text-align: left;
  }
}