
.section.fourth {
  position: relative;
  overflow: hidden; /* Prevent shapes from escaping */
  isolation: isolate; /* Create stacking context */
  height: 100dvh;
  touch-action: pan-y; /* Allow vertical scrolling on touch devices */
}
.event-title {
  font-size: clamp(45px, 7vw, 120px);
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2rem;
  pointer-events: none;

  -webkit-user-select: none; 
  -moz-user-select: none;   
  -ms-user-select: none;     
  user-select: none;    
}

.event-section {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 2rem;
}

#shapes-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden; /* Extra safety */
}

.shape {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  will-change: transform;
  touch-action: none; /* Prevent touch scrolling on shapes */
}

.shape:active {
  cursor: grabbing;
}

.shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


/* Countdown Timer Styles */
.countdown-container {
  margin-bottom: 3rem;
  pointer-events: none;
  user-select: none;
}

.countdown-label {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
  flex-wrap: wrap;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(240, 131, 71, 0.1);
  border: 3px solid var(--primary);
  border-radius: 12px;
  padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 28px);
  min-width: clamp(70px, 10vw, 100px);
  box-shadow: 0 0 20px rgba(240, 131, 71, 0.3);
  transition: all 0.3s ease;
}

.time-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 30px rgba(240, 131, 71, 0.5);
  background: rgba(240, 131, 71, 0.15);
}

.time-value {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  font-family: 'Exo 2', sans-serif;
  text-shadow: 0 0 10px rgba(240, 131, 71, 0.5);
}

.time-label {
  font-size: clamp(10px, 1.5vw, 14px);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.time-separator {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  animation: blink 1s ease-in-out infinite;
  margin: 0 clamp(4px, 1vw, 8px);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .countdown-container {
    margin-bottom: 2rem;
  }
  
  .countdown-timer {
    gap: clamp(6px, 1.5vw, 12px);
  }
  
  .time-block {
    padding: 10px 14px;
    min-width: 60px;
  }
  
  .time-separator {
    margin: 0 2px;
  }
}