@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffd564;
}
.splash-active {
  overflow: hidden !important;
}
@keyframes splash-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
.transition-all-custom {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-stroke {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
  color: transparent;
}
.grayscale-map {
  filter: grayscale(1) contrast(1.1) brightness(0.95);
  transition: filter 0.5s ease;
}
.grayscale-map:hover {
  filter: grayscale(0.2) contrast(1) brightness(1);
}
::selection {
  background-color: #ffd564;
  color: #000000;
}
body.cad-crosshair-container,
body.cad-crosshair-container * {
  cursor: none !important;
}
#cad-crosshair {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cad-line-h {
  position: absolute;
  top: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(254, 212, 100, 0.5);
}
.cad-line-v {
  position: absolute;
  left: 0;
  height: 100%;
  width: 1px;
  background-color: rgba(254, 212, 100, 0.5);
}
.cad-box {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid #fed464;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}
.cad-box.is-hovering {
  width: 24px;
  height: 24px;
  background-color: rgba(254, 212, 100, 0.2);
}
.cad-coords {
  position: absolute;
  color: #fed464;
  font-family: monospace;
  font-size: 10px;
  padding-left: 15px;
  padding-top: 15px;
}
.project-item.force-hover .group-hover\:opacity-100 { opacity: 1 !important; }
.project-item.force-hover .group-hover\:translate-y-0 { transform: translateY(0) !important; }
.project-item.force-hover .group-hover\:scale-\[1\.03\] { transform: scale(1.03) !important; }
.project-item.force-hover .group-hover\:\[clip-path\:inset\(0_0_0_0\)\] { clip-path: inset(0 0 0 0) !important; }
.project-item.force-hover .slider-arrow { opacity: 1 !important; }
/* Projeler sayfası kristal kartlar: ilk dokunuşta proje adını göster */
.project-card.force-hover .group-hover\:opacity-100 { opacity: 1 !important; }
.project-card.force-hover .text-center.mt-4 { opacity: 1 !important; }
/* Mobilde ilk dokunuştan sonra "tekrar bas" rozetini kart üstünde göster */
@media (max-width: 767px) {
  .project-card { position: relative; }
  .project-card.force-hover::after {
    content: attr(data-tap-hint);
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    background: rgba(24, 24, 27, 0.86);
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.38rem 0.55rem;
    border-radius: 9999px;
    z-index: 6;
    white-space: nowrap;
    pointer-events: none;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-draw {
  position: relative;
}
.reveal-draw::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, #fed464, rgba(254, 212, 100, 0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-draw.is-visible::before {
  transform: scaleX(1);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
.bp-frame {
  position: relative;
}
.bp-frame:not(.bp-loaded) {
  background-color: #fafafa;
  background-image:
    linear-gradient(rgba(254, 212, 100, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254, 212, 100, 0.10) 1px, transparent 1px);
  background-size: 18px 18px;
}
.bp-frame:not(.bp-loaded)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: bpShimmer 1.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bpShimmer {
  100% { transform: translateX(100%); }
}
@keyframes flipOut {
  0% { transform: perspective(1000px) rotateY(0deg); opacity: 1; }
  100% { transform: perspective(1000px) rotateY(90deg); opacity: 0.3; }
}
@keyframes flipIn {
  0% { transform: perspective(1000px) rotateY(-90deg); opacity: 0.3; }
  100% { transform: perspective(1000px) rotateY(0deg); opacity: 1; }
}
.flip-out {
  animation: flipOut 0.25s ease-in forwards !important;
}
.flip-in {
  animation: flipIn 0.25s ease-out forwards !important;
}
#project-layout-content .bg-zinc-50,
#project-layout-content .bg-zinc-100 {
  background-color: transparent !important;
  box-shadow: none !important;
}
#project-layout-content .bg-black\/5.opacity-100 {
  display: none !important;
}
#cad-chip {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #fed464;
  background: rgba(9, 9, 11, 0.78);
  border: 1px solid rgba(254, 212, 100, 0.5);
  padding: 3px 7px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(14px, -50%);
  transition: opacity 0.18s ease;
}
#cad-chip.is-active { opacity: 1; }
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}
#page-transition .pt-panel {
  position: absolute;
  inset: 0;
  background: #09090b;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: opacity;
}
#page-transition .pt-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 1px;
  background: #fed464;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.45s ease, opacity 0.4s ease;
}
#page-transition.is-leaving { pointer-events: all; }
#page-transition.is-leaving .pt-panel { opacity: 1; }
#page-transition.is-leaving .pt-line { width: 50vw; opacity: 1; }
#page-transition.is-arriving .pt-panel,
#page-transition.is-arriving .pt-line { opacity: 0; }
#page-transition.is-instant .pt-panel,
#page-transition.is-instant .pt-line { transition: none !important; }
@media (max-width: 767px) {
  .project-detail-page {
    overflow-x: hidden;
  }
  #project-layout-content {
    overflow-x: hidden;
  }
  #project-layout-content [class*="w-[90%]"],
  #project-layout-content [class*="w-[100%]"] {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #project-layout-content .absolute.left-2,
  #project-layout-content .absolute.-top-10,
  #project-layout-content .absolute.top-1\/2,
  #project-layout-content .absolute.top-\[1\%\],
  #project-layout-content .absolute.top-\[50\%\],
  #project-layout-content .absolute.bottom-\[4\%\] {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.75rem 0 0 !important;
    pointer-events: auto !important;
  }
  #project-layout-content ul.w-max {
    width: 100% !important;
    max-width: 100% !important;
  }
  #project-layout-content ul.w-max li {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }
  #project-layout-content ul.w-max li span:last-child {
    white-space: normal !important;
  }
  #project-layout-content .flex.flex-row.items-stretch,
  #project-layout-content .flex.flex-row.items-end,
  #project-layout-content .flex.flex-row.justify-between {
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    gap: 0.75rem;
  }
  #project-layout-content .flex.flex-row.items-stretch > *,
  #project-layout-content .flex.flex-row.items-end > *,
  #project-layout-content .flex.flex-row.justify-between > * {
    width: 100% !important;
    flex: none !important;
    height: auto !important;
    min-height: 12rem;
    max-height: 70vh;
  }
  #project-layout-content .flex.flex-row.items-stretch img,
  #project-layout-content .flex.flex-row.justify-between img {
    object-fit: contain;
    max-height: 70vh;
  }
  #project-layout-content .flex.flex-row.gap-6.items-center {
    flex-direction: column !important;
    width: 100% !important;
  }
  #project-layout-content .flex.flex-row.gap-6.items-center > * {
    width: 100% !important;
  }
  #project-layout-content .grid.grid-cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  #project-layout-content .min-h-\[100dvh\] {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  #project-layout-content .min-h-\[100dvh\] > .absolute {
    position: static !important;
    transform: none !important;
    margin-top: 1.5rem;
    order: 10;
  }
  #project-layout-content .text-justify {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
  }
  #project-layout-content > div.mx-auto {
    padding-top: 1rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-draw::before, .reveal-stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bp-frame::after { animation: none; }
  #page-transition .pt-panel,
  #page-transition .pt-line { transition: none; }
}
