/* ============================================
   THE VISITOR'S GUIDE - Ornate Kickstarter Section
   ============================================ */

/* Transform the entire Kickstarter section */
#kickstarter {
  position: relative;
  padding: 6rem 0;
  background: 
    radial-gradient(ellipse at top left, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #fafafa 100%);
  overflow: hidden;
}

[data-theme="dark"] #kickstarter {
  background: 
    radial-gradient(ellipse at top left, rgba(255, 107, 107, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}


/* 3D Embroidered Title */
#kickstarter .section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  
  /* Multi-layer 3D effect */
  color: var(--brand-red);
  text-shadow: 
    /* Main embroidered effect */
    1px 1px 0 #ff8b8b,
    2px 2px 0 #ff7a7a,
    3px 3px 0 #ff6969,
    4px 4px 0 #ff5858,
    5px 5px 0 #ff4747,
    6px 6px 0 #ff3636,
    7px 7px 0 #ff2525,
    8px 8px 0 #ff1414,
    /* Side stitching */
    9px 9px 2px rgba(0,0,0,0.2),
    10px 10px 4px rgba(0,0,0,0.3),
    11px 11px 8px rgba(0,0,0,0.4),
    /* Highlight threads */
    -1px -1px 0 rgba(255,255,255,0.5),
    -2px -2px 0 rgba(255,255,255,0.3),
    /* Golden accent */
    0 0 30px rgba(255, 215, 0, 0.3);
  
  /* Embroidered texture */
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 107, 107, 0.1) 2px,
      rgba(255, 107, 107, 0.1) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 107, 107, 0.1) 2px,
      rgba(255, 107, 107, 0.1) 4px
    );
  -webkit-background-clip: text;
  background-clip: text;
  
  animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {
  0%, 100% {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) translateZ(0);
  }
  25% {
    transform: perspective(1000px) rotateY(2deg) rotateX(-1deg) translateZ(10px);
  }
  50% {
    transform: perspective(1000px) rotateY(-1deg) rotateX(1deg) translateZ(5px);
  }
  75% {
    transform: perspective(1000px) rotateY(1deg) rotateX(-2deg) translateZ(15px);
  }
}

/* Ornate Campaign Status */
#kickstarter .campaign-status {
  text-align: center;
  margin: 3rem auto;
  position: relative;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

#kickstarter .campaign-status .launch-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  padding: 1.5rem 3rem;
  position: relative;
  
  /* Pop-out banner with thick border */
  background: #fff;
  border: 6px solid transparent;
  border-image: 
    repeating-linear-gradient(
      45deg,
      var(--brand-red) 0px,
      var(--brand-red) 10px,
      var(--brand-blue) 10px,
      var(--brand-blue) 20px,
      var(--brand-gold) 20px,
      var(--brand-gold) 30px
    ) 6;
  outline: 3px solid #fff;
  outline-offset: -9px;
  
  
  box-shadow: 
    /* Outer emboss */
    0 0 0 2px #fff,
    0 0 0 4px var(--brand-red),
    0 0 0 6px #fff,
    0 0 0 8px var(--brand-blue),
    0 0 0 10px #fff,
    0 0 0 12px var(--brand-gold),
    /* 3D depth */
    4px 4px 0 rgba(255, 107, 107, 0.3),
    8px 8px 0 rgba(74, 144, 226, 0.3),
    12px 12px 0 rgba(255, 215, 0, 0.3),
    16px 16px 20px rgba(0, 0, 0, 0.2);
  
  transform: perspective(600px) rotateX(5deg);
}

/* Countdown Timer */
#kickstarter .countdown-timer {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.countdown-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--brand-red);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  position: relative;
}

.countdown-number svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-number svg circle {
  fill: none;
  stroke-width: 3;
}

.countdown-number svg .bg-circle {
  stroke: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .countdown-number svg .bg-circle {
  stroke: rgba(255, 255, 255, 0.1);
}

.countdown-number svg .progress-circle {
  stroke: var(--brand-gradient);
  stroke: url(#countdown-gradient);
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 0;
  animation: countdownProgress 60s linear infinite;
  transform-origin: center;
}

@keyframes countdownProgress {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 220;
  }
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

[data-theme="dark"] .countdown-label {
  color: var(--text-secondary-dark);
}

/* Animated geometric patterns */
#kickstarter .campaign-status::before,
#kickstarter .campaign-status::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  pointer-events: none;
}

#kickstarter .campaign-status::before {
  left: 5%;
  background: 
    conic-gradient(from 0deg at 50% 50%, 
      transparent 0deg, var(--brand-red) 30deg, transparent 60deg,
      var(--brand-blue) 90deg, transparent 120deg,
      var(--brand-gold) 150deg, transparent 180deg,
      var(--brand-red) 210deg, transparent 240deg,
      var(--brand-blue) 270deg, transparent 300deg,
      var(--brand-gold) 330deg, transparent 360deg);
  clip-path: polygon(
    50% 0%, 60% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 40% 35%
  );
  animation: geometricSpin 15s linear infinite;
}

#kickstarter .campaign-status::after {
  right: 5%;
  background: 
    repeating-conic-gradient(from 0deg at 50% 50%,
      var(--brand-gold) 0deg, var(--brand-red) 60deg,
      var(--brand-blue) 120deg, var(--brand-gold) 180deg);
  clip-path: polygon(
    30% 0%, 70% 0%, 100% 30%, 100% 70%,
    70% 100%, 30% 100%, 0% 70%, 0% 30%
  );
  animation: geometricPulse 8s ease-in-out infinite;
}

@keyframes geometricSpin {
  from {
    transform: translateY(-50%) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-50%) rotate(180deg) scale(1.1);
  }
  to {
    transform: translateY(-50%) rotate(360deg) scale(1);
  }
}

@keyframes geometricPulse {
  0%, 100% {
    transform: translateY(-50%) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-50%) rotate(45deg) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) rotate(90deg) scale(1);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-50%) rotate(135deg) scale(0.9);
    opacity: 1;
  }
}

/* Enhanced CTA buttons with embroidered style */
#kickstarter .cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  position: relative;
  z-index: 3;
}

#kickstarter .btn {
  position: relative;
  padding: 1rem 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: visible;
  
  /* Embroidered texture overlay */
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.1) 3px,
      rgba(255, 255, 255, 0.1) 6px
    );
  
  /* 3D embossed effect */
  box-shadow: 
    inset 2px 2px 4px rgba(255, 255, 255, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.2),
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 8px 0 rgba(0, 0, 0, 0.1),
    0 12px 20px rgba(0, 0, 0, 0.2);
  
  transform: perspective(500px) rotateX(10deg);
  transition: all 0.3s ease;
}

#kickstarter .btn:hover {
  transform: perspective(500px) rotateX(0deg) translateY(-4px);
  box-shadow: 
    inset 2px 2px 4px rgba(255, 255, 255, 0.4),
    inset -2px -2px 4px rgba(0, 0, 0, 0.3),
    0 8px 0 rgba(0, 0, 0, 0.2),
    0 16px 0 rgba(0, 0, 0, 0.1),
    0 24px 40px rgba(0, 0, 0, 0.3);
}

/* Stitch effect on buttons */
#kickstarter .btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: inherit;
  pointer-events: none;
}

/* Dark mode adjustments */
[data-theme="dark"] #kickstarter .section-title {
  color: var(--brand-gold);
  text-shadow: 
    1px 1px 0 #ffdb4d,
    2px 2px 0 #ffd633,
    3px 3px 0 #ffd11a,
    4px 4px 0 #ffcc00,
    5px 5px 0 #e6b800,
    6px 6px 0 #cca300,
    7px 7px 0 #b38f00,
    8px 8px 0 #997a00,
    9px 9px 2px rgba(0,0,0,0.4),
    10px 10px 4px rgba(0,0,0,0.5),
    11px 11px 8px rgba(0,0,0,0.6),
    -1px -1px 0 rgba(255,255,255,0.2),
    0 0 40px rgba(255, 215, 0, 0.5);
}

[data-theme="dark"] #kickstarter .campaign-status .launch-text {
  background: #1a1a1a;
  outline-color: #1a1a1a;
  box-shadow: 
    0 0 0 2px #0a0a0a,
    0 0 0 4px var(--brand-gold),
    0 0 0 6px #0a0a0a,
    0 0 0 8px var(--brand-red),
    0 0 0 10px #0a0a0a,
    0 0 0 12px var(--brand-blue),
    4px 4px 0 rgba(255, 215, 0, 0.4),
    8px 8px 0 rgba(255, 107, 107, 0.4),
    12px 12px 0 rgba(74, 144, 226, 0.4),
    16px 16px 30px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .countdown-number {
  color: var(--brand-gold);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #kickstarter .section-title {
    font-size: clamp(2rem, 10vw, 3rem);
    text-shadow: 
      2px 2px 0 #ff8b8b,
      4px 4px 0 #ff6969,
      6px 6px 0 #ff4747,
      8px 8px 4px rgba(0,0,0,0.3),
      0 0 20px rgba(255, 215, 0, 0.3);
  }
  
  #kickstarter .campaign-status .launch-text {
    padding: 1rem 2rem;
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  
  .countdown-timer {
    gap: 1rem;
  }
  
  .countdown-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
}