/* ═══════════════════════════════════════════════════════════
   FABBROART.CSS — Fabbroart Sayfasına Özel Stiller
   ═══════════════════════════════════════════════════════════ */

body {
  position: relative;
  overflow-x: hidden;
}

/* Custom cursor model-viewer üstünde grab cursor göstersin */
.cine-model model-viewer {
  cursor: grab;
}
.cine-model model-viewer:active {
  cursor: grabbing;
}

.fabart-hero,
#art-portfolio,
footer {
  position: relative;
  z-index: 1;
}

/* ─── Hero ─── */
.fabart-hero {
  min-height: 100vh;
  padding: 120px 6vw 60px;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Sol: Metin */
.fabart-text {
  max-width: 560px;
  padding-left: 2vw;
}

.fabart-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 6px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
  opacity: 0;
  transform: translateX(-30px);
  animation: artSlideLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.fabart-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateX(-40px);
  animation: artSlideLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.fabart-title em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-primary);
}

.fabart-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateX(-30px);
  animation: artSlideLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.fabart-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  padding: 14px 36px;
  border-radius: 0;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-30px);
  animation: artSlideLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.fabart-cta:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

@keyframes artSlideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── 3D Model Container ─── */
.fabart-model-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  max-height: 750px;
}

/* Spotlight glow — Daha belirgin ve geniş */
.cine-model::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%; /* Boyut artırıldı */
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
      rgba(255, 180, 50, 0.35) 0%,  /* Daha güçlü altın rengi */
      rgba(255, 120, 30, 0.15) 45%,
      transparent 75%);
  filter: blur(60px); /* Daha yumuşak yayılım */
  z-index: 0;
  animation: spotPulse 8s ease-in-out infinite; /* Biraz daha yavaş ve akıcı */
  pointer-events: none;
}

[data-theme="dark"] .cine-model::before {
  background: radial-gradient(ellipse at center,
      rgba(0, 255, 220, 0.3) 0%,
      rgba(0, 180, 160, 0.15) 45%,
      transparent 75%);
}

@keyframes spotPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.7;
  }
}

.fabart-model-wrapper model-viewer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  --progress-bar-color: transparent;
  --poster-color: transparent;
}

/* ─── Landscape Cinematic Banner ─── */
.fabart-landscape {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  margin: 60px 0 120px 0;
  overflow: hidden;
}

.landscape-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: contrast(1.1) brightness(0.85);
}

.landscape-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-color) 0%, transparent 15%, transparent 85%, var(--bg-color) 100%);
  pointer-events: none;
}


/* ─── Fabbroart Cinematic Scroll ─── */
.cinematic-scroll-container {
  position: relative;
  width: 100%;
  height: 400vh;
  background: var(--bg-color);
  z-index: 1;
}

.cinematic-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Arka Plan Gradyanı */
.cine-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--surface2) 0%, var(--bg-color) 70%);
  z-index: 0;
}

/* Yazılar — z-index model'den DÜŞÜK, pointer-events yok */
.cine-text {
  position: absolute;
  left: 48%;
  top: 50%;
  transform: translate(-100%, -50%);
  z-index: 2;
  width: 100%;
  max-width: 450px;
  pointer-events: none;
}
.cine-text .fabart-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--text-secondary);
  margin-bottom: 20px; display: inline-block;
}
.cine-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 6vw, 90px);
  font-weight: 700; line-height: 1.05;
  color: var(--text-primary); text-transform: uppercase;
  margin-bottom: 24px;
}
.cine-text h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: #b48c5a; /* Menüdeki ART rengiyle aynı */
  -webkit-text-stroke: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cine-text p {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  font-size: 16px; line-height: 1.7;
}

/* ─── 3D MODEL ─── */
.cine-model {
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(0%, -50%);
  width: 580px;
  height: 580px;
  z-index: 6;
}
#fabbro-model {
  width: 100%;
  height: 100%;
}

/* Karanlık Katman (Geçiş için) */
.cine-dark-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Manzara Görseli */
.cine-landscape {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cine-landscape img {
  width: 100vw;
  height: 120vh;
  object-fit: cover;
  transform: scale(1.5);
  filter: blur(20px);
}

/* Mobil */
/* Mobil */
@media (max-width: 768px) {
  .cine-text {
    left: 0;
    right: 0;
    top: 15%; /* Yazıyı yukarı al */
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding-left: 0 !important; /* Önemli: Masaüstü paddingini sıfırla */
    transform: none;
    text-align: center;
    z-index: 10;
  }
  .cine-text h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .cine-text p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
  }
  .cine-model {
    width: 280px; 
    height: 280px;
    left: 50%; 
    top: 65%; /* Modeli yazının altına al */
    transform: translate(-50%, -50%);
    z-index: 5;
  }
}

/* ─── Scroll Indicator ─── */
.cine-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  color: var(--text-secondary);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mouse-icon {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
  opacity: 0.6;
}

.mouse-icon .wheel {
  width: 2px;
  height: 6px;
  background: var(--text-secondary);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ─── Art Portfolio Depth Reveal ─── */
#art-portfolio {
  position: relative;
  z-index: 10;
  background: var(--bg-color);
  padding: 40px 6vw 120px;
}

.art-card.depth-reveal {
  opacity: 0;
  transform: scale(0.8) translateY(60px);
  filter: blur(15px);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 1s ease;
}

.art-card.depth-reveal.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.art-section-header {
  padding-bottom: 60px;
  text-align: center;
}

.art-section-header .section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 16px;
}

.art-section-header .section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  color: var(--text-primary);
}

.art-section-header .section-title em {
  font-style: italic;
  color: #b48c5a;
  -webkit-text-stroke: 0;
}

/* Masonry Grid */
.art-masonry {
  columns: 3;
  column-gap: 24px;
}

.art-card {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.art-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .art-card:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.art-card img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-card:hover img {
  transform: scale(1.04);
}

.art-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
}

.art-card:hover .art-card-overlay {
  opacity: 1;
}

.art-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.art-card-meta {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.art-card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

/* ─── Art Empty State ─── */
.art-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.art-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.art-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .fabart-hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    text-align: center;
  }

  .fabart-model-wrapper {
    order: 1;
    height: 55vw;
    min-height: 280px;
    max-height: 480px;
  }

  .fabart-model-wrapper::before {
    filter: blur(24px);
  }

  .fabart-text {
    order: 2;
    max-width: 100%;
    padding-left: 0;
  }

  .fabart-cta {
    margin: 0 auto;
  }

  .art-masonry {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .fabart-hero {
    padding: 120px 6vw 40px;
    gap: 16px;
  }

  #art-portfolio {
    padding: 20px 6vw 80px;
  }

  .art-masonry {
    columns: 1;
    column-gap: 0;
  }
}
