/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ============================================
   바른선어 Dynamic Landing Page Animations
   ============================================ */

/* Horizontal Scrolling Marquee */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}

.marquee-content-reverse {
  display: inline-flex;
  animation: marquee-reverse 25s linear infinite;
}

.marquee-container:hover .marquee-content,
.marquee-container:hover .marquee-content-reverse {
  animation-play-state: paused;
}

/* Masked Hover Animation */
.masked-image-container {
  position: relative;
  overflow: hidden;
}

.masked-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.masked-image-container:hover::before {
  opacity: 0;
}

.masked-image-container img {
  transition: transform 0.7s ease;
}

.masked-image-container:hover img {
  transform: scale(1.1);
}

.masked-content {
  position: absolute;
  z-index: 2;
  transition: all 0.5s ease;
}

.masked-image-container:hover .masked-content {
  transform: translateY(-10px);
}

/* Reveal Animation for Masked Text */
.mask-reveal {
  position: relative;
  overflow: hidden;
}

.mask-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary, #c9a962);
  transform: translateX(-101%);
  transition: transform 0.5s ease;
}

.mask-reveal:hover::after {
  transform: translateX(101%);
}

/* Scroll Animation Classes */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Hero Text Animation */
@keyframes hero-text-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.hero-text-animate {
  animation: hero-text-reveal 1.2s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-text-animate-delay {
  animation: hero-text-reveal 1.2s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(201, 169, 98, 0.2);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Split Text Effect */
.split-text {
  display: inline-block;
  overflow: hidden;
}

.split-text span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.split-text.visible span {
  transform: translateY(0);
}

/* Image Reveal from Bottom */
@keyframes reveal-up {
  0% {
    clip-path: inset(100% 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.reveal-up {
  clip-path: inset(100% 0 0 0);
}

.reveal-up.visible {
  animation: reveal-up 1s ease forwards;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #c9a962 0%, #e8d5a3 50%, #c9a962 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

/* Underline Animation */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary, #c9a962);
  transition: width 0.4s ease;
}

.animated-underline:hover::after {
  width: 100%;
}

/* Menu Card Hover Effect */
.menu-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.menu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.menu-card:hover::before {
  opacity: 1;
}

.menu-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.menu-card:hover .menu-card-content {
  transform: translateY(0);
}

/* Parallax Effect Base */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Number Counter Animation */
@keyframes count-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.count-animate {
  animation: count-up 0.8s ease forwards;
}

/* Border Animation */
.border-animate {
  position: relative;
}

.border-animate::before,
.border-animate::after {
  content: '';
  position: absolute;
  background: var(--color-primary, #c9a962);
  transition: all 0.4s ease;
}

.border-animate::before {
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
}

.border-animate::after {
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
}

.border-animate:hover::before,
.border-animate:hover::after {
  width: 100%;
}

/* Glitch Text Effect */
@keyframes glitch {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

.glitch-text:hover {
  animation: glitch 0.3s ease infinite;
}

/* Smooth Scroll for Page */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #c9a962;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e8d5a3;
}

/* ============================================
   Dynamic Shape Mask Animations
   ============================================ */

/* Circle Mask Reveal - 원형으로 확장되며 나타남 */
.shape-mask-circle {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.shape-mask-circle.visible {
  clip-path: circle(150% at 50% 50%);
}

/* Diamond Mask Reveal - 다이아몬드 모양으로 나타남 */
.shape-mask-diamond {
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.shape-mask-diamond.visible {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Triangle Mask - 삼각형이 펼쳐지며 나타남 */
.shape-mask-triangle {
  clip-path: polygon(50% 100%, 50% 100%, 50% 100%);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.shape-mask-triangle.visible {
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Diagonal Wipe - 대각선으로 슬라이드 */
.shape-mask-diagonal {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.shape-mask-diagonal.visible {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Hexagon Mask - 육각형으로 나타남 */
.shape-mask-hexagon {
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.shape-mask-hexagon.visible {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Inset Reveal - 안쪽에서 바깥으로 */
.shape-mask-inset {
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.shape-mask-inset.visible {
  clip-path: inset(0% 0% 0% 0%);
}

/* Split Horizontal - 중앙에서 양옆으로 분리 */
.shape-mask-split-h {
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.shape-mask-split-h.visible {
  clip-path: inset(0 0 0 0);
}

/* Split Vertical - 중앙에서 위아래로 분리 */
.shape-mask-split-v {
  clip-path: inset(50% 0 50% 0);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.shape-mask-split-v.visible {
  clip-path: inset(0 0 0 0);
}

/* ============================================
   Moving Geometric Shapes Background
   ============================================ */

.geometric-bg {
  position: relative;
  overflow: hidden;
}

.geometric-bg::before,
.geometric-bg::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Floating Circle */
@keyframes float-circle {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(50px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(20px, 50px) rotate(180deg);
  }
  75% {
    transform: translate(-30px, 20px) rotate(270deg);
  }
}

.geo-circle {
  width: 300px;
  height: 300px;
  border: 2px solid rgba(201, 169, 98, 0.2);
  border-radius: 50%;
  position: absolute;
  animation: float-circle 20s ease-in-out infinite;
}

.geo-circle-1 {
  top: 10%;
  right: -100px;
  animation-delay: 0s;
}

.geo-circle-2 {
  bottom: 10%;
  left: -100px;
  animation-delay: -5s;
  width: 200px;
  height: 200px;
}

/* Floating Diamond */
@keyframes float-diamond {
  0%, 100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(30px, -30px);
  }
}

.geo-diamond {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(201, 169, 98, 0.15);
  position: absolute;
  animation: float-diamond 15s ease-in-out infinite;
}

/* Moving Line */
@keyframes line-move {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

.geo-line {
  height: 1px;
  width: 200px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.5), transparent);
  position: absolute;
  animation: line-move 8s linear infinite;
}

/* ============================================
   Scroll-Triggered Shape Reveal Section
   ============================================ */

.shape-reveal-section {
  position: relative;
  overflow: hidden;
}

/* Overlay that gets masked away */
.shape-reveal-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-secondary, #1a1a1a);
  z-index: 10;
  transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Different reveal patterns */
.shape-reveal-overlay.circle-reveal {
  clip-path: circle(150% at 50% 50%);
}

.shape-reveal-overlay.circle-reveal.revealed {
  clip-path: circle(0% at 50% 50%);
}

.shape-reveal-overlay.diagonal-reveal {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.shape-reveal-overlay.diagonal-reveal.revealed {
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

.shape-reveal-overlay.diamond-reveal {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.shape-reveal-overlay.diamond-reveal.revealed {
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
}

/* Content inside reveal section */
.shape-reveal-content {
  position: relative;
  z-index: 5;
}

/* ============================================
   Interactive Hover Shape Masks
   ============================================ */

.hover-shape-mask {
  position: relative;
  overflow: hidden;
}

.hover-shape-mask .mask-layer {
  position: absolute;
  inset: 0;
  background: rgba(201, 169, 98, 0.9);
  z-index: 2;
  transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Circle expand on hover */
.hover-shape-mask.circle-expand .mask-layer {
  clip-path: circle(0% at 50% 50%);
}

.hover-shape-mask.circle-expand:hover .mask-layer {
  clip-path: circle(100% at 50% 50%);
}

/* Diamond expand on hover */
.hover-shape-mask.diamond-expand .mask-layer {
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
}

.hover-shape-mask.diamond-expand:hover .mask-layer {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Diagonal slide on hover */
.hover-shape-mask.diagonal-slide .mask-layer {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.hover-shape-mask.diagonal-slide:hover .mask-layer {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ============================================
   Parallax Shape Movement on Scroll
   ============================================ */

.parallax-shape {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Rotation on scroll */
.parallax-rotate {
  transition: transform 0.3s ease-out;
}

/* Scale on scroll */
.parallax-scale {
  transition: transform 0.3s ease-out;
}

/* ============================================
   Text with Shape Mask Animation
   ============================================ */

.text-shape-reveal {
  position: relative;
  display: inline-block;
}

.text-shape-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary, #c9a962);
  z-index: 1;
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.text-shape-reveal.visible::before {
  transform: scaleX(0);
  transform-origin: right;
}

/* Wave reveal effect */
@keyframes wave-reveal {
  0% {
    clip-path: polygon(0 100%, 5% 95%, 10% 100%, 15% 95%, 20% 100%, 25% 95%, 30% 100%, 35% 95%, 40% 100%, 45% 95%, 50% 100%, 55% 95%, 60% 100%, 65% 95%, 70% 100%, 75% 95%, 80% 100%, 85% 95%, 90% 100%, 95% 95%, 100% 100%, 100% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 5% 5%, 10% 0, 15% 5%, 20% 0, 25% 5%, 30% 0, 35% 5%, 40% 0, 45% 5%, 50% 0, 55% 5%, 60% 0, 65% 5%, 70% 0, 75% 5%, 80% 0, 85% 5%, 90% 0, 95% 5%, 100% 0, 100% 100%, 0 100%);
  }
}

.wave-mask-reveal {
  clip-path: polygon(0 100%, 5% 95%, 10% 100%, 15% 95%, 20% 100%, 25% 95%, 30% 100%, 35% 95%, 40% 100%, 45% 95%, 50% 100%, 55% 95%, 60% 100%, 65% 95%, 70% 100%, 75% 95%, 80% 100%, 85% 95%, 90% 100%, 95% 95%, 100% 100%, 100% 100%, 0 100%);
}

.wave-mask-reveal.visible {
  animation: wave-reveal 1.2s ease forwards;
}

/* ============================================
   Morphing Shape Background
   ============================================ */

@keyframes morph-shape {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
  }
  75% {
    border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
  }
}

.morph-blob {
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.3), rgba(201, 169, 98, 0.1));
  animation: morph-shape 15s ease-in-out infinite;
  filter: blur(40px);
}

/* ============================================
   YBY.CO.KR Style SVG Mask Animations
   ============================================ */

/* SVG Mask Container */
.svg-mask-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f6f3 0%, #fff 100%);
}

/* SVG Mask Item Container */
.svg-mask-item {
  position: relative;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.svg-mask-item:hover {
  z-index: 10;
}

/* The SVG container that holds the clip path */
.svg-mask-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Masked image that sits inside the SVG clip */
.masked-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover state for the masked image */
.svg-mask-item:hover .masked-image {
  transform: scale(1.15) rotate(2deg);
}

/* Diagonal parallelogram shape - Left leaning */
.shape-diagonal-left {
  clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
  -webkit-clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
}

/* Diagonal parallelogram shape - Right leaning */
.shape-diagonal-right {
  clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 15% 100%);
  -webkit-clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 15% 100%);
}

/* Rounded diagonal shape using SVG */
.shape-rounded-diagonal {
  position: relative;
  overflow: hidden;
}

/* Pill/Capsule shape */
.shape-pill {
  border-radius: 200px;
  overflow: hidden;
}

/* Organic blob shape */
.shape-organic {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
}

/* Leaf shape */
.shape-leaf {
  border-radius: 5% 95% 10% 90% / 90% 10% 90% 10%;
  overflow: hidden;
}

/* Custom curved diagonal (like yby.co.kr) */
.shape-curved-diagonal {
  position: relative;
  overflow: hidden;
}

.shape-curved-diagonal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
}

/* Three-column showcase container */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .showcase-item {
    border-radius: 60px;
    aspect-ratio: 4/5;
    max-width: 280px;
    margin: 0 auto;
  }

  .showcase-item:nth-child(1),
  .showcase-item:nth-child(2),
  .showcase-item:nth-child(3) {
    transform: rotate(0deg);
    margin-top: 0;
  }

  .showcase-overlay {
    opacity: 1;
    padding: 1.25rem;
  }

  .showcase-overlay h3 {
    font-size: 1.1rem;
    transform: translateY(0);
  }

  .showcase-overlay p {
    font-size: 0.8rem;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .showcase-item {
    border-radius: 40px;
    max-width: 240px;
  }

  .showcase-overlay {
    padding: 1rem;
  }

  .showcase-overlay h3 {
    font-size: 1rem;
  }
}

/* Individual showcase item */
.showcase-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 120px;
  transform: rotate(-5deg);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.showcase-item:nth-child(2) {
  transform: rotate(0deg);
  margin-top: 3rem;
}

.showcase-item:nth-child(3) {
  transform: rotate(5deg);
}

.showcase-item:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-item:hover img {
  transform: scale(1.15);
}

/* Overlay text on showcase items */
.showcase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.showcase-item:hover .showcase-overlay {
  opacity: 1;
}

.showcase-overlay h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.showcase-item:hover .showcase-overlay h3 {
  transform: translateY(0);
}

.showcase-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.showcase-item:hover .showcase-overlay p {
  transform: translateY(0);
}

/* Alternative: CSS-only diagonal card */
.diagonal-card {
  position: relative;
  width: 100%;
  padding-bottom: 130%;
  overflow: hidden;
  border-radius: 40% 40% 40% 40% / 10% 10% 10% 10%;
  transform: skewY(-3deg);
  transition: all 0.5s ease;
}

.diagonal-card:hover {
  transform: skewY(0deg) scale(1.02);
}

.diagonal-card-inner {
  position: absolute;
  inset: 0;
  transform: skewY(3deg);
  overflow: hidden;
}

.diagonal-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.diagonal-card:hover .diagonal-card-inner img {
  transform: scale(1.15);
}

/* ============================================
   Header Scroll States
   ============================================ */

/* Transparent state (at top of page) */
.header-transparent {
  background: transparent;
  backdrop-filter: none;
}

.header-transparent a,
.header-transparent button:not(.bg-primary) {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Scrolled state (solid background for readability) */
.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-scrolled a,
.header-scrolled button:not(.bg-primary) {
  text-shadow: none;
  color: #374151; /* text-gray-700 */
}

.header-scrolled .header-logo {
  color: #111827; /* text-gray-900 */
}

/* ============================================
   Bay Window Slider for Menu Page
   ============================================ */

.bay-window-container {
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  perspective: 1200px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.bay-window-track {
  display: flex;
  gap: 2rem;
  padding: 0 10vw;
  will-change: transform;
}

.bay-window-card {
  flex-shrink: 0;
  width: 350px;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: box-shadow 0.3s ease;
}

.bay-window-card:hover {
  box-shadow: 0 25px 80px rgba(201, 169, 98, 0.3);
}

.bay-window-card-inner {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.bay-window-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.bay-window-card-content {
  padding: 1.5rem;
  background: #fff;
}

.bay-window-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.bay-window-card-desc {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.bay-window-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #c9a962;
}

.bay-window-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #c9a962;
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Scroll indicator */
.bay-window-scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Floating CTA button like yby.co.kr */
.floating-cta {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  background: #c9a962;
  color: #1a1a1a;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(201, 169, 98, 0.4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

@media (min-width: 768px) {
  .floating-cta {
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
  }
}

.floating-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(201, 169, 98, 0.5);
}

.floating-cta-icon {
  width: 24px;
  height: 24px;
}

.floating-cta-text {
  font-size: 0.75rem;
  font-weight: bold;
}

.floating-cta-subtext {
  font-size: 0.65rem;
  color: #c9a962;
  background: #1a1a1a;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
}

/* Scroll-triggered entrance for showcase items */
@keyframes showcase-enter {
  from {
    opacity: 0;
    transform: translateY(60px) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-5deg);
  }
}

@keyframes showcase-enter-middle {
  from {
    opacity: 0;
    transform: translateY(60px) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes showcase-enter-right {
  from {
    opacity: 0;
    transform: translateY(60px) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(5deg);
  }
}

.showcase-item.animate-enter:nth-child(1) {
  animation: showcase-enter 0.8s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.showcase-item.animate-enter:nth-child(2) {
  animation: showcase-enter-middle 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.showcase-item.animate-enter:nth-child(3) {
  animation: showcase-enter-right 0.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* ============================================
   Bay Window Style Parallax Slider (GSAP)
   ============================================ */

.bay-window-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
}

.bay-slider-container {
  display: flex;
  gap: 20px;
  padding: 40px;
  height: 100%;
  align-items: center;
  cursor: grab;
  user-select: none;
}

.bay-slider-container:active {
  cursor: grabbing;
}

.bay-slide {
  flex: 0 0 300px;
  height: 400px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.bay-slide:hover {
  transform: translateY(-10px) rotateY(5deg);
}

.bay-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bay-slide:hover img {
  transform: scale(1.1);
}

.bay-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  transform: translateY(60px);
  transition: transform 0.4s ease;
}

.bay-slide:hover .bay-slide-content {
  transform: translateY(0);
}

.bay-slide-content h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.bay-slide-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Bay Window 3D Effect */
.bay-window-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 60px 20px;
  perspective: 1500px;
}

.bay-panel {
  position: relative;
  width: 280px;
  height: 380px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bay-panel:nth-child(1) {
  transform: rotateY(25deg) translateZ(-50px);
}

.bay-panel:nth-child(2) {
  transform: rotateY(0deg) translateZ(50px) scale(1.1);
  z-index: 2;
}

.bay-panel:nth-child(3) {
  transform: rotateY(-25deg) translateZ(-50px);
}

.bay-panel:hover {
  transform: rotateY(0deg) translateZ(100px) scale(1.15);
  z-index: 10;
}

.bay-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bay-panel:hover img {
  transform: scale(1.1);
}

.bay-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bay-panel:hover .bay-panel-overlay {
  opacity: 1;
}

.bay-panel-overlay h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 5px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.bay-panel:hover .bay-panel-overlay h3 {
  transform: translateY(0);
}

.bay-panel-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.bay-panel:hover .bay-panel-overlay p {
  transform: translateY(0);
}

/* ============================================
   Pure CSS Page Turning Animation
   ============================================ */

.book-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  perspective: 2000px;
}

.book {
  position: relative;
  width: 600px;
  height: 400px;
  transform-style: preserve-3d;
  transform: rotateX(10deg);
}

.book .gap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 20%,
    rgba(255,255,255,0.1) 50%,
    rgba(0,0,0,0.1) 80%,
    rgba(0,0,0,0.3) 100%
  );
  z-index: 100;
}

.book .pages {
  position: absolute;
  width: 50%;
  height: 100%;
  right: 0;
  transform-style: preserve-3d;
}

.book .page {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 0 10px 10px 0;
  box-shadow: inset -5px 0 30px rgba(0,0,0,0.1);
}

.book .page:nth-child(1) { background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?w=600'); }
.book .page:nth-child(2) { background-image: url('https://images.unsplash.com/photo-1579584425555-c3ce17fd4351?w=600'); transform: translateZ(-1px); }
.book .page:nth-child(3) { background-image: url('https://images.unsplash.com/photo-1498654896293-37aacf113fd9?w=600'); transform: translateZ(-2px); }
.book .page:nth-child(4) { background-image: url('https://images.unsplash.com/photo-1553163147-622ab57be1c7?w=600'); transform: translateZ(-3px); }
.book .page:nth-child(5) { background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=600'); transform: translateZ(-4px); }
.book .page:nth-child(6) { background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=600'); transform: translateZ(-5px); }

.book .flips {
  position: absolute;
  width: 50%;
  height: 100%;
  left: 0;
  transform-style: preserve-3d;
  transform-origin: right center;
}

.book .flip {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: right center;
  animation: flip-page 15s infinite ease-in-out;
}

.book .flip::before,
.book .flip::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  backface-visibility: hidden;
  border-radius: 10px 0 0 10px;
}

.book .flip::before {
  background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?w=600');
  transform: rotateY(0deg);
  box-shadow: inset 5px 0 30px rgba(0,0,0,0.1);
}

.book .flip::after {
  background-image: url('https://images.unsplash.com/photo-1579584425555-c3ce17fd4351?w=600');
  transform: rotateY(180deg);
  box-shadow: inset -5px 0 30px rgba(0,0,0,0.1);
}

.flip1 { animation-delay: 0s; }
.flip1::before { background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?w=600'); }
.flip1::after { background-image: url('https://images.unsplash.com/photo-1579584425555-c3ce17fd4351?w=600'); }

.flip2 { animation-delay: 2.5s; }
.flip2::before { background-image: url('https://images.unsplash.com/photo-1579584425555-c3ce17fd4351?w=600'); }
.flip2::after { background-image: url('https://images.unsplash.com/photo-1498654896293-37aacf113fd9?w=600'); }

.flip3 { animation-delay: 5s; }
.flip3::before { background-image: url('https://images.unsplash.com/photo-1498654896293-37aacf113fd9?w=600'); }
.flip3::after { background-image: url('https://images.unsplash.com/photo-1553163147-622ab57be1c7?w=600'); }

.flip4 { animation-delay: 7.5s; }
.flip4::before { background-image: url('https://images.unsplash.com/photo-1553163147-622ab57be1c7?w=600'); }
.flip4::after { background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=600'); }

.flip5 { animation-delay: 10s; }
.flip5::before { background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=600'); }
.flip5::after { background-image: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=600'); }

@keyframes flip-page {
  0%, 10% {
    transform: rotateY(0deg);
  }
  15%, 100% {
    transform: rotateY(-180deg);
  }
}

/* Simplified Page Flip Gallery */
.page-flip-gallery {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  perspective: 2000px;
}

.page-flip-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  transform-style: preserve-3d;
  cursor: pointer;
}

.page-flip-front,
.page-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 1s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.page-flip-front {
  transform: rotateY(0deg);
}

.page-flip-back {
  transform: rotateY(180deg);
}

.page-flip-item:hover .page-flip-front {
  transform: rotateY(-180deg);
}

.page-flip-item:hover .page-flip-back {
  transform: rotateY(0deg);
}

.page-flip-front img,
.page-flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-flip-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: white;
}

.page-flip-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.page-flip-content p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Auto-rotating Page Flip Carousel */
.page-carousel {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
  overflow: hidden;
}

.page-card {
  position: absolute;
  width: 320px;
  height: 400px;
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: pointer;
}

.page-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.page-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-card-front {
  transform: rotateY(0deg);
}

.page-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.page-card-back h3 {
  color: #c9a962;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.page-card-back p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}

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

/* Multiple cards positioning */
.page-carousel .page-card:nth-child(1) {
  transform: translateX(-350px) rotateY(30deg) scale(0.85);
  z-index: 1;
}

.page-carousel .page-card:nth-child(2) {
  transform: translateX(0) rotateY(0deg) scale(1);
  z-index: 3;
}

.page-carousel .page-card:nth-child(3) {
  transform: translateX(350px) rotateY(-30deg) scale(0.85);
  z-index: 1;
}

.page-carousel .page-card:nth-child(1):hover {
  transform: translateX(-350px) rotateY(180deg) scale(0.95);
  z-index: 5;
}

.page-carousel .page-card:nth-child(2):hover {
  transform: translateX(0) rotateY(180deg) scale(1.05);
  z-index: 5;
}

.page-carousel .page-card:nth-child(3):hover {
  transform: translateX(350px) rotateY(180deg) scale(0.95);
  z-index: 5;
}

@media (max-width: 1024px) {
  .page-carousel {
    height: 350px;
  }

  .page-card {
    width: 250px;
    height: 320px;
  }

  .page-carousel .page-card:nth-child(1) {
    transform: translateX(-270px) rotateY(30deg) scale(0.8);
  }

  .page-carousel .page-card:nth-child(3) {
    transform: translateX(270px) rotateY(-30deg) scale(0.8);
  }
}

@media (max-width: 768px) {
  .bay-window-wrapper {
    flex-direction: column;
    gap: 16px;
    padding: 30px 16px;
    perspective: none;
  }

  .bay-panel {
    width: 100%;
    max-width: 280px;
    height: 280px;
    margin: 0 auto;
  }

  .bay-panel:nth-child(1),
  .bay-panel:nth-child(2),
  .bay-panel:nth-child(3) {
    transform: rotateY(0deg) translateZ(0) scale(1);
  }

  .bay-panel:nth-child(2) {
    transform: rotateY(0deg) translateZ(0) scale(1);
  }

  .bay-panel-overlay {
    opacity: 1;
    padding: 20px;
  }

  .bay-panel-overlay h3,
  .bay-panel-overlay p {
    transform: translateY(0);
  }

  .page-carousel {
    height: auto;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .page-card {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 350px;
  }

  .page-carousel .page-card:nth-child(1),
  .page-carousel .page-card:nth-child(2),
  .page-carousel .page-card:nth-child(3) {
    transform: translateX(0) rotateY(0deg) scale(1);
  }
}

/* =====================================================
   3D Angled Textbox with Submit Button
   Inspired by Jouan Marcel's CodePen design
   ===================================================== */

.textbox-3d-container {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 800px;
  padding: 40px 20px;
}

.textbox-3d-wrapper {
  position: relative;
  display: flex;
  transform-style: preserve-3d;
  transform: rotateX(10deg) rotateY(-5deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.textbox-3d-wrapper:hover {
  transform: rotateX(5deg) rotateY(-2deg);
}

.textbox-3d-wrapper:focus-within {
  transform: rotateX(0deg) rotateY(0deg);
}

/* Main Input Field */
.textbox-3d {
  position: relative;
  width: 320px;
  height: 56px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: none;
  outline: none;
  padding: 0 20px;
  font-size: 16px;
  font-family: inherit;
  color: #fff;
  border-radius: 4px 0 0 4px;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 2;
}

.textbox-3d::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.textbox-3d:focus {
  background: linear-gradient(135deg, #252525 0%, #3a3a3a 100%);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 2px var(--color-primary);
}

/* 3D Side Panel - Right */
.textbox-3d-side {
  position: absolute;
  right: -15px;
  top: 5px;
  width: 15px;
  height: 100%;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
  transform: rotateY(90deg) translateZ(0px);
  transform-origin: left center;
  border-radius: 0 4px 4px 0;
}

/* 3D Bottom Panel */
.textbox-3d-bottom {
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #0d0d0d 0%, #1a1a1a 100%);
  transform: rotateX(-90deg) translateZ(0px);
  transform-origin: top center;
  border-radius: 0 0 4px 4px;
}

/* Submit Button */
.textbox-3d-submit {
  position: relative;
  height: 56px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #c9a962 100%);
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #1a1a1a;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  box-shadow:
    0 4px 15px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
  overflow: hidden;
}

.textbox-3d-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.textbox-3d-submit:hover::before {
  left: 100%;
}

.textbox-3d-submit:hover {
  background: linear-gradient(135deg, #e5c76b 0%, #d4af37 100%);
  box-shadow:
    0 6px 20px rgba(212, 175, 55, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.textbox-3d-submit:active {
  transform: translateY(0);
  box-shadow:
    0 2px 10px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Button 3D Side */
.textbox-3d-submit-side {
  position: absolute;
  right: -12px;
  top: 5px;
  width: 12px;
  height: 100%;
  background: linear-gradient(180deg, #b8962d 0%, #9a7d25 100%);
  transform: rotateY(90deg) translateZ(0px);
  transform-origin: left center;
  border-radius: 0 4px 4px 0;
}

/* Button 3D Bottom */
.textbox-3d-submit-bottom {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #9a7d25 0%, #b8962d 100%);
  transform: rotateX(-90deg) translateZ(0px);
  transform-origin: top center;
  border-radius: 0 0 4px 4px;
}

/* Input Group Container */
.textbox-3d-input-group {
  position: relative;
  display: flex;
}

.textbox-3d-button-group {
  position: relative;
}

/* Glow Effect on Focus */
.textbox-3d-wrapper::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.textbox-3d-wrapper:focus-within::after {
  opacity: 1;
}

/* CTA Section Styling */
.cta-3d-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
  position: relative;
  overflow: hidden;
}

.cta-3d-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.cta-3d-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* Decorative Elements */
.cta-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-decoration-1 {
  top: -100px;
  left: -100px;
}

.cta-decoration-2 {
  bottom: -100px;
  right: -100px;
}

/* Responsive */
@media (max-width: 640px) {
  .textbox-3d-wrapper {
    flex-direction: column;
    transform: rotateX(5deg) rotateY(0deg);
  }

  .textbox-3d {
    width: 100%;
    max-width: 300px;
    border-radius: 4px 4px 0 0;
  }

  .textbox-3d-submit {
    width: 100%;
    max-width: 300px;
    border-radius: 0 0 4px 4px;
  }

  .textbox-3d-side,
  .textbox-3d-submit-side {
    display: none;
  }

  .textbox-3d-input-group {
    flex-direction: column;
  }
}

/* ============================================
   3D Ring Carousel (Draggable Rotating Gallery)
   ============================================ */

.ring-stage {
  width: 100%;
  height: 100%;
  min-height: 500px;
  transform-style: preserve-3d;
  user-select: none;
  overflow: hidden;
  background: #000;
  position: relative;
}

.ring-container {
  perspective: 1200px;
  width: 280px;
  height: 380px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  outline: none;
}

/* Desktop: larger cards for PC view */
@media (min-width: 769px) {
  .ring-container {
    width: 320px;
    height: 420px;
    perspective: 1000px;
  }

  .ring-stage {
    min-height: 600px;
  }
}

.ring {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  cursor: grab;
  background: transparent;
}

.ring:active {
  cursor: grabbing;
}

.ring-img {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease, opacity 0.3s ease;
}

.ring-img:hover {
  box-shadow: 0 30px 80px rgba(201, 169, 98, 0.4);
}

/* Ring with content overlay */
.ring-img-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  border-radius: 0 0 12px 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.ring-img:hover .ring-img-content {
  opacity: 1;
  transform: translateY(0);
}

.ring-img-content h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.ring-img-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.ring-img-content .price {
  color: #c9a962;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Category-specific ring container */
.category-ring-section {
  position: relative;
  padding: 60px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.category-ring-title {
  text-align: center;
  margin-bottom: 20px;
}

.category-ring-title h2 {
  font-size: 2rem;
  color: #fff;
  font-family: var(--font-display, 'Noto Serif KR', serif);
}

.category-ring-title p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* Hint text for interaction */
.ring-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 2s ease-in-out infinite;
  z-index: 10;
}

/* Responsive adjustments for ring carousel */
@media (max-width: 768px) {
  .ring-container {
    width: 220px;
    height: 300px;
  }

  .ring-stage {
    min-height: 400px;
  }

  .category-ring-section {
    padding: 40px 0;
  }

  .category-ring-title h2 {
    font-size: 1.5rem;
  }

  .ring-hint {
    font-size: 0.75rem;
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .ring-container {
    width: 180px;
    height: 250px;
  }

  .ring-stage {
    min-height: 350px;
  }
}

/* ============================================
   Footer Mobile Visibility
   ============================================ */

.footer-hide-mobile {
  display: block;
}

@media (max-width: 767px) {
  .footer-hide-mobile {
    display: none;
  }
}
