/*
  =============================================================================
  Project: 3D Transform Gallery - Experiments Page Styles
  Author: Molla Samser | rskworld.in | 2026
  - Website: https://rskworld.in
  - Email: help@rskworld.in | support@rskworld.in
  - Phone: +91 93305 39277
  - Address: Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India, 713147
  =============================================================================
*/

/* Bent Panel - rskworld.in | 2026 */
.bent-panel-scene {
  perspective: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.bent-panel {
  width: 160px;
  height: 80px;
  background: linear-gradient(145deg, var(--accent) 0%, #0a58ca 100%);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: transform 0.5s var(--ease-in-out);
  transform: rotateX(0deg);
  box-shadow: 0 8px 24px var(--shadow-accent);
}

.bent-panel-scene:hover .bent-panel {
  transform: rotateX(20deg) rotateY(-5deg);
}

/* Rotating 3D Text - Molla Samser | rskworld.in | 2026 */
.rotate-text-scene {
  perspective: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.rotate-text {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
  animation: rotateText3d 6s linear infinite;
  transform-style: preserve-3d;
}

@keyframes rotateText3d {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Card Reveal - rskworld.in | 2026 */
.reveal-cards {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal-card {
  width: 80px;
  height: 100px;
  perspective: 300px;
  cursor: pointer;
}

.reveal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out-back);
  transform-style: preserve-3d;
}

.reveal-card:hover .reveal-inner {
  transform: rotateY(180deg);
}

.reveal-front,
.reveal-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid var(--accent);
}

.reveal-front {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.reveal-back {
  background: var(--accent);
  color: #fff;
  transform: rotateY(180deg);
}

/* Folding Card - Molla Samser | rskworld.in | 2026 */
.fold-scene {
  perspective: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.fold-card {
  display: flex;
  width: 160px;
  height: 100px;
  cursor: pointer;
  transform-style: preserve-3d;
}

.fold-left,
.fold-right {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 2px solid var(--accent);
  color: var(--accent-light);
  transition: transform 0.6s var(--ease-in-out);
}

.fold-left {
  border-radius: 8px 0 0 8px;
  transform-origin: right center;
}

.fold-right {
  border-radius: 0 8px 8px 0;
  transform-origin: left center;
}

.fold-scene:hover .fold-left {
  transform: rotateY(-75deg);
}

.fold-scene:hover .fold-right {
  transform: rotateY(75deg);
}

/* Stacked Layers - rskworld.in | 2026 */
.stacked-scene {
  perspective: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 140px;
}

.stacked-layer {
  width: 80px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 8px;
  color: var(--accent-light);
  transition: transform 0.4s var(--ease-in-out);
}

.stacked-back { transform: translateZ(-30px); }
.stacked-mid { transform: translateZ(0); }
.stacked-front { transform: translateZ(30px); }

.stacked-scene:hover .stacked-back { transform: translateZ(-45px) scale(1.05); }
.stacked-scene:hover .stacked-mid { transform: translateZ(0) scale(1.05); }
.stacked-scene:hover .stacked-front { transform: translateZ(45px) scale(1.05); }
