:root {
  /* Pastel Palette */
  --color-bg: #FDFCF8; /* Creamy white */
  --color-text: #333333;
  --color-primary: #FFB7B2; /* Pastel Red/Pink */
  --color-secondary: #B5EAD7; /* Pastel Mint */
  --color-accent: #C7CEEA; /* Pastel Blue */
  --color-surface: #FFFFFF;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-size-base: 16px;
  --font-size-h1: 3rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 1.5rem;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Vivid Palette */
  --color-bg-vivid: #1a1a1a;
  --color-text-vivid: #ffffff;
  --color-primary-vivid: #FF3366;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scroll from transformed backgrounds */
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md) 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 183, 178, 0.12) 0%, rgba(199, 206, 234, 0.12) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: min-width 0.3s ease 0.1s, padding-right 0.3s ease 0.1s, border-radius 0.15s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.location-badge:hover {
  min-width: auto;
  padding-right: 14px;
  border-radius: 20px;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 183, 178, 0.2);
  background: linear-gradient(135deg, rgba(255, 183, 178, 0.18) 0%, rgba(199, 206, 234, 0.18) 100%);
}

.location-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--color-text);
  opacity: 0.85;
  flex-shrink: 0;
}

.location-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.3s ease 0.1s, opacity 0.2s ease 0.15s, margin-left 0.3s ease 0.1s;
}

.location-badge:hover .location-text {
  opacity: 1;
  max-width: 100px;
  margin-left: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.1) 0%, rgba(253, 29, 29, 0.1) 50%, rgba(252, 176, 69, 0.1) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  transition: min-width 0.3s ease 0.1s, padding-right 0.3s ease 0.1s, border-radius 0.15s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.social-link:hover {
  min-width: auto;
  padding-right: 14px;
  border-radius: 20px;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(131, 58, 180, 0.2);
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.15) 0%, rgba(253, 29, 29, 0.15) 50%, rgba(252, 176, 69, 0.15) 100%);
}

.social-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #333;
  opacity: 0.85;
  flex-shrink: 0;
}

.social-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.3s ease 0.1s, opacity 0.2s ease 0.15s, margin-left 0.3s ease 0.1s;
}

.social-link:hover .social-text {
  opacity: 1;
  max-width: 100px;
  margin-left: 6px;
}

.instagram-icon {
  width: 18px;
  height: 18px;
  color: #333;
}

/* Cart Link */
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 183, 178, 0.12) 0%, rgba(199, 206, 234, 0.12) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cart-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 183, 178, 0.2);
  background: linear-gradient(135deg, rgba(255, 183, 178, 0.18) 0%, rgba(199, 206, 234, 0.18) 100%);
}

.cart-icon {
  width: 18px;
  height: 18px;
  color: var(--color-text);
  opacity: 0.85;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}





/* Hero */
.hero {
  padding: var(--spacing-xl) 0;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Animated blob background */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 0;
}

.hero::before {
  background: linear-gradient(135deg,
    rgba(255, 183, 178, 0.6) 0%,
    rgba(199, 206, 234, 0.6) 100%);
  top: -10%;
  left: -10%;
  animation: blob1 20s ease-in-out infinite;
}

.hero::after {
  background: linear-gradient(135deg,
    rgba(181, 234, 215, 0.6) 0%,
    rgba(199, 206, 234, 0.5) 100%);
  bottom: -10%;
  right: -10%;
  animation: blob2 25s ease-in-out infinite reverse;
}

/* Third blob using container pseudo-element */
.hero .container::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(180deg,
    rgba(255, 183, 178, 0.4) 0%,
    rgba(181, 234, 215, 0.5) 100%);
  filter: blur(50px);
  opacity: 0.7;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blob3 30s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes blob1 {
  0%, 100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(50px, 50px) scale(1.1) rotate(90deg);
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(100px, -50px) scale(0.9) rotate(180deg);
  }
  75% {
    border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%;
    transform: translate(-30px, 80px) scale(1.05) rotate(270deg);
  }
}

@keyframes blob2 {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    transform: translate(-60px, -40px) scale(1.15) rotate(120deg);
  }
  66% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    transform: translate(40px, 60px) scale(0.85) rotate(240deg);
  }
}

@keyframes blob3 {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  20% {
    border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
    transform: translate(-45%, -55%) scale(1.2) rotate(72deg);
  }
  40% {
    border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
    transform: translate(-55%, -45%) scale(0.9) rotate(144deg);
  }
  60% {
    border-radius: 60% 40% 70% 30% / 50% 50% 50% 50%;
    transform: translate(-50%, -50%) scale(1.1) rotate(216deg);
  }
  80% {
    border-radius: 50% 50% 40% 60% / 70% 30% 70% 30%;
    transform: translate(-48%, -52%) scale(0.95) rotate(288deg);
  }
}

.hero-title {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: var(--spacing-lg);
}

.hero-image-container {
  margin: var(--spacing-lg) 0;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-text);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Features */
.features {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-surface);
}

.features h3 {
  text-align: center;
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-lg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  text-align: center;
}

.feature-item {
  padding: var(--spacing-lg);
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
  margin-bottom: var(--spacing-md);
  width: 100px;
  height: 100px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}


/* Craftsmanship */
.craftsmanship {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(255, 183, 178, 0.05) 0%, rgba(199, 206, 234, 0.05) 100%);
}

.craftsmanship-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.craftsmanship-text h3 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-md);
}

.craftsmanship-intro {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: var(--spacing-lg);
}

.detail-points {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.detail-point {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.detail-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail-text h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.detail-text p {
  color: #666;
  line-height: 1.6;
}

.detail-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.detail-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.detail-img-1 {
  margin-top: var(--spacing-lg);
}

.detail-img-2 {
  margin-top: calc(var(--spacing-lg) * -1);
}

/* Gallery */
.product-showcase {
  padding: var(--spacing-xl) 0;
}

.product-showcase h3 {
  text-align: center;
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: var(--spacing-lg);
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.gallery-item:hover::after {
  opacity: 0.8;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.gallery-item:hover .gallery-image {
  filter: brightness(0.8);
}



/* Toronto Local */
.toronto-local {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg,
    rgba(255, 183, 178, 0.08) 0%,
    rgba(199, 206, 234, 0.08) 50%,
    rgba(181, 234, 215, 0.08) 100%);
  text-align: center;
}

.toronto-content {
  max-width: 700px;
  margin: 0 auto;
}


.badge-icon {
  font-size: 2.5rem;
}

.toronto-skyline {
  margin: var(--spacing-md) auto;
  max-width: 300px;
  height: auto;
}

.skyline-img {
  width: 100%;
  height: auto;
  display: block;
}

.toronto-local h3 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-md);
}

.toronto-description {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.toronto-features {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.toronto-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: white;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-weight: 500;
  transition: transform 0.3s ease;
}

.toronto-feature:hover {
  transform: translateY(-2px);
}

.feature-badge {
  font-size: 1.25rem;
}

/* CTA */
.cta {
  padding: var(--spacing-xl) 0;
  text-align: center;
  background-color: var(--color-primary);
  color: white;
}

.cta h3 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-md);
}

.cta-subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.cta .btn-primary {
  background-color: white;
  color: var(--color-primary);
}

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

/* Footer */
.site-footer {
  padding: var(--spacing-lg) 0;
  text-align: center;
  font-size: 0.875rem;
  color: #888;
  background-color: var(--color-bg);
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 2.25rem;
    --font-size-h2: 1.875rem;
  }

  .header-right {
    gap: 8px;
  }

  .location-badge,
  .social-link {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 16px;
  }

  .location-badge:hover,
  .social-link:hover {
    padding-right: 12px;
  }

  .location-icon,
  .social-icon,
  .instagram-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .location-text,
  .social-text {
    font-size: 0.75rem;
  }

  .hero {
    padding: var(--spacing-lg) 0;
    min-height: 60vh;
  }

  .hero-image {
    max-width: 100%;
  }


  .craftsmanship-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .craftsmanship-images {
    order: -1;
  }
}  /* Close @media (max-width: 768px) */

/* Gallery Sections */
.gallery-section {
  position: relative;
  padding: var(--spacing-xl) 0;
  overflow: hidden;
}

/* Vivid gallery needs overflow visible for skewed stripes */
.gallery-vivid {
  overflow: visible;
}

/* Gallery Background Container */
.gallery-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content is above background */
.gallery-section .container {
  position: relative;
  z-index: 2;
}

/* Pastel Background */
.pastel-background {
  opacity: 0;
  transition: opacity 0.8s ease;
}



.pastel-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float-blob 20s infinite ease-in-out;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(255,255,255,0) 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-secondary) 0%, rgba(255,255,255,0) 70%);
  top: 40%;
  right: -10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--color-accent) 0%, rgba(255,255,255,0) 70%);
  bottom: -20%;
  left: 20%;
  animation-delay: -10s;
}

.blob-4 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(255,255,255,0) 70%);
  top: 50%;
  right: 5%;
  animation-delay: -3s;
}

.blob-5 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--color-secondary) 0%, rgba(255,255,255,0) 70%);
  bottom: 10%;
  right: -5%;
  animation-delay: -7s;
}

.blob-6 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent) 0%, rgba(255,255,255,0) 70%);
  top: 20%;
  left: 50%;
  animation-delay: -15s;
}

.blob-7 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(255,255,255,0) 70%);
  bottom: 5%;
  left: -5%;
  animation-delay: -18s;
}

.blob-8 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--color-secondary) 0%, rgba(255,255,255,0) 70%);
  top: 60%;
  right: 20%;
  animation-delay: -12s;
}

.blob-9 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--color-accent) 0%, rgba(255,255,255,0) 70%);
  top: 30%;
  left: 15%;
  animation-delay: -8s;
}

.blob-10 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(255,255,255,0) 70%);
  bottom: 30%;
  right: -8%;
  animation-delay: -20s;
}

.blob-11 {
  width: 590px;
  height: 590px;
  background: radial-gradient(circle, var(--color-secondary) 0%, rgba(255,255,255,0) 70%);
  top: 70%;
  left: 40%;
  animation-delay: -5s;
}

.blob-12 {
  width: 610px;
  height: 610px;
  background: radial-gradient(circle, var(--color-accent) 0%, rgba(255,255,255,0) 70%);
  top: 10%;
  right: 30%;
  animation-delay: -25s;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Pastel Tags Container */
.pastel-tags-container {
  position: relative;
  z-index: 10;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: var(--spacing-xl) 0;
}

.pastel-tag-position {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-lg);
}

.pastel-tag-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pastel-tag-wrapper:hover,
.pastel-tag-wrapper:active {
  transform: scale(1.08);
  z-index: 100;
}

.pastel-floating-tag {
  width: 50%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
  animation: float-pastel-tag 3s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.4s ease;
}

.pastel-tag-wrapper:hover .pastel-floating-tag,
.pastel-tag-wrapper:active .pastel-floating-tag {
  animation-play-state: paused;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.25));
}

.pastel-floating-tag:hover {
  transform: scale(1.05);
}

/* Tag Caption Styles */
.tag-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  min-width: 200px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInCaption 0.6s ease forwards;
  animation-delay: 0.3s;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pastel-tag-wrapper:hover .tag-caption,
.pastel-tag-wrapper:active .tag-caption {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 20px 28px 24px;
  gap: 12px;
  border-color: rgba(255, 255, 255, 0.8);
}

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

.tag-color-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.tag-caption:hover .color-dot {
  transform: scale(1.15);
}

.color-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, var(--color-text) 0%, #666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag-charm-info {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  position: relative;
  padding-top: 4px;
}

.tag-charm-info::before {
  content: '✦';
  position: absolute;
  left: -18px;
  opacity: 0.6;
  font-size: 0.7rem;
  font-style: normal;
}

/* Customize Button */
.tag-customize-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  margin-top: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 25px;
  border: 0 solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.pastel-tag-wrapper:hover .tag-customize-btn,
.pastel-tag-wrapper:active .tag-customize-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 60px;
  padding: 10px 20px;
  margin-top: 12px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  pointer-events: auto;
}

.tag-customize-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  filter: brightness(1.05);
}

.tag-customize-btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-text {
  letter-spacing: 0.02em;
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.tag-customize-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Stagger caption animations */
.pastel-tag-pos-1 .tag-caption { animation-delay: 0.4s; }
.pastel-tag-pos-2 .tag-caption { animation-delay: 0.5s; }
.pastel-tag-pos-3 .tag-caption { animation-delay: 0.6s; }
.pastel-tag-pos-4 .tag-caption { animation-delay: 0.7s; }
.pastel-tag-pos-5 .tag-caption { animation-delay: 0.8s; }

/* Stagger animations for pastel tags */
.pastel-tag-pos-1 .pastel-floating-tag { animation-delay: 0s; }
.pastel-tag-pos-2 .pastel-floating-tag { animation-delay: 0.2s; }
.pastel-tag-pos-3 .pastel-floating-tag { animation-delay: 0.4s; }
.pastel-tag-pos-4 .pastel-floating-tag { animation-delay: 0.6s; }
.pastel-tag-pos-5 .pastel-floating-tag { animation-delay: 0.8s; }

@keyframes float-pastel-tag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Mobile adjustments for pastel tags */
@media (max-width: 768px) {
  .pastel-floating-tag {
    width: 65%;
  }

  .pastel-tags-container {
    min-height: 60vh;
  }

  .tag-caption {
    padding: 8px 16px;
    min-width: 150px;
    gap: 2px;
  }

  .tag-color-info {
    font-size: 0.8rem;
    gap: 6px;
  }

  .color-dot {
    width: 16px;
    height: 16px;
  }

  .tag-charm-info {
    font-size: 0.75rem;
  }

  .tag-customize-btn {
    font-size: 0.8rem;
    padding: 0 16px;
  }

  /* Mobile expanded state adjustments */
  .pastel-tag-wrapper:active .tag-caption,
  .pastel-tag-wrapper:hover .tag-caption {
    padding: 16px 20px 20px;
  }

  .pastel-tag-wrapper:active .tag-customize-btn,
  .pastel-tag-wrapper:hover .tag-customize-btn {
    padding: 8px 16px;
    max-height: 50px;
    margin-top: 8px;
  }
}


/* Vivid Stripes Showcase */
.vivid-stripes-showcase {
  position: relative;
  width: 100%;
  min-height: 165vh; /* More height to prevent last stripe cutoff */
  margin-bottom: 45vw; /* Extra margin to accommodate skew at wide screens */
  overflow: visible; /* Allow skewed stripes to extend outside */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Removed opacity transition - now on stripe container */
}

.vivid-stripe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible; /* Allow stripes to overflow container */
  opacity: 0; /* Initial state for fade in */
  transition: opacity 0.8s ease;
}

.vivid-stripe {
  position: relative;
  width: 150%; /* Wider to cover skew */
  left: -25%; /* Center skewed stripe */
  flex: 1; /* Equal height for all 6 stripes */
  /* Ensure each stripe is tall enough to contain tag + caption */
  min-height: clamp(300px, 34vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Allow content to show */
  transform: skewY(-5deg);
  transform-origin: center;
  z-index: 1; /* Base z-index */
}

/* Ensure tag slot height matches stripe height to prevent overlap */
.tag-position {
  min-height: clamp(300px, 34vh, 560px);
  padding-block: clamp(14px, 2.6vh, 26px); /* add breathing room inside stripe */
}

/* Smaller stripes on mobile to preserve layout while containing content */
@media (max-width: 768px) {
  .vivid-stripe {
    min-height: clamp(260px, 30vh, 420px);
  }
  .tag-position {
    min-height: clamp(260px, 30vh, 420px);
    padding-block: clamp(10px, 2.2vh, 18px);
  }
}

/* Stripe Colors */
.stripe-1 { background-color: #FF3366; z-index: 6; }
.stripe-2 { background-color: #33CC99; z-index: 5; }
.stripe-3 { background-color: #0099FF; z-index: 4; }
.stripe-4 { background-color: #FFCC00; z-index: 3; }
.stripe-5 { background-color: #FF6600; z-index: 2; }
.stripe-6 { background-color: #9933FF; z-index: 1; }

/* Tags Container - Always visible, positioned over stripes */
.vivid-tags-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 10;
}

.tag-position {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Tag Wrapper */
.tag-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  /* No counter-skew needed - tags are now in separate container */
}

.tag-wrapper:hover {
  transform: scale(1.03); /* reduce hover scale to prevent overflow into next stripe */
  z-index: 10;
}

/* Floating Tag Image */
.floating-tag {
  width: 52%; /* Reduce width to provide more space on desktop */
  max-width: 800px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  animation: float-tag 3s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.4s ease;
}

.tag-wrapper:hover .floating-tag {
  animation-play-state: paused;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
}

/* Reuse caption hover styles for vivid section */
.tag-wrapper:hover .tag-caption,
.tag-wrapper:active .tag-caption {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 16px 24px 20px; /* slightly compact to fit within stripe */
  gap: 12px;
  border-color: rgba(255, 255, 255, 0.8);
}

.tag-wrapper:hover .tag-customize-btn,
.tag-wrapper:active .tag-customize-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 90px;
  padding: 9px 18px; /* compact button footprint */
  margin-top: 10px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  pointer-events: auto;
}

/* Vivid section customize button color to match vivid CTA */
.vivid-stripes-showcase .tag-customize-btn {
  background: linear-gradient(135deg, #FF3366 0%, #9933FF 100%);
  color: #ffffff;
}

.vivid-stripes-showcase .tag-customize-btn:hover {
  background: linear-gradient(135deg, #FF3366 0%, #9933FF 100%);
  filter: brightness(1.05);
}

/* Stagger animations */
.tag-pos-1 .floating-tag { animation-delay: 0s; }
.tag-pos-2 .floating-tag { animation-delay: 0.2s; }
.tag-pos-3 .floating-tag { animation-delay: 0.4s; }
.tag-pos-4 .floating-tag { animation-delay: 0.6s; }
.tag-pos-5 .floating-tag { animation-delay: 0.8s; }
.tag-pos-6 .floating-tag { animation-delay: 1.0s; }

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

/* Title Overlay */
.vivid-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 10;
  text-align: center;
  mix-blend-mode: overlay;
}



/* Vivid Grid Gallery Section */
.gallery-vivid-grid {
  position: relative;
  z-index: 50; /* Ensure it sits well above the stripes */
  background-color: var(--color-bg); /* Opaque background */
  padding-top: var(--spacing-xl);
  margin-top: 0; /* Removed negative margin to separate sections */
}

/* Reduce spacing for medium mobile widths */
@media (min-width: 500px) and (max-width: 655px) {
  .vivid-stripes-showcase {
    margin-bottom: 15vw; /* Reduced spacing for this range */
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .vivid-title {
    font-size: 2.5rem;
  }
  .floating-tag {
    width: 70%; /* Adjusted to 70% per user request */
  }
}

/* Mobile Responsiveness for new backgrounds */
@media (max-width: 768px) {
  .blob-1, .blob-2, .blob-3, .blob-4, .blob-5, .blob-6,
  .blob-7, .blob-8, .blob-9, .blob-10, .blob-11, .blob-12 {
    width: 300px;
    height: 300px;
    filter: blur(50px);
  }

  .bg-vivid-parallax {
    transform: skewY(-5deg) scale(1.5);
  }

  .detail-img {
    height: 180px;
  }

  .detail-img-1,
  .detail-img-2 {
    margin-top: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
  }

  .lightbox-content {
    width: 95%;
  }

  .lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}
