/* Base variables */
:root {
  --bg-color: #0a0a18;
  --text-color: #f5f5f7;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.05);
  --highlight: #c084fc;
  --cta-bg: linear-gradient(45deg, #803d99, #000080);
  --benefit-icon: #803d99;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.poster {
  position: relative;
  max-width: 800px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* backdrop-filter: blur(10px); */
  overflow: hidden;
}

.polygon {
  position: absolute;
  opacity: 0.5;
  z-index: -1;
}

.polygon-1,
.polygon-2,
.polygon-3 {
  animation: float 15s ease-in-out infinite;
}

.polygon-1 {
  width: 400px; height: 400px;
  background: linear-gradient(45deg, #803d99, transparent);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  top: -100px; left: -100px;
}

.polygon-2 {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, #000080, transparent);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  bottom: -50px; right: -50px;
  animation-direction: reverse;
}

.polygon-3 {
  width: 200px; height: 200px;
  background: linear-gradient(225deg, rgba(128, 61, 153, 0.8), transparent);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  animation: pulse 10s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

.header {
  margin-bottom: 2rem;
}

.event-title {
  font-size: 3rem;
  font-weight: 800;
  background: var(--cta-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.sub-title {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.event-details,
.benefits {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.detail-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.icon {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  color: var(--highlight);
}

.detail-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--highlight);
}

.qr-code {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 100px;
  height: 100px;
  background-color: white;
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.qr-code img {
  max-width: 100%;
  max-height: 100%;
}

.benefits h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--text-color);
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  transition: transform 0.3s ease;
}


.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  min-width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  color: var(--benefit-icon);
}

.cta {
  background: var(--cta-bg);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(128, 61, 153, 0.4);
  margin: 1rem auto;
  width: fit-content;
  display: block;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(128, 61, 153, 0.6);
}

.footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.organizer {
  font-weight: 600;
  color: var(--text-color);
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 100;
}

@media (max-width: 768px) {
  .poster {
    padding: 1rem;
  }

  .event-details,
  .benefits {
    padding: 1rem;
  }

  .event-title {
    font-size: 2.2rem;
  }

  .sub-title {
    font-size: 1.2rem;
  }

  .benefits-list {
    grid-template-columns: 1fr;
  }

  .qr-code {
    position: relative;
    margin: 1rem auto;
    top: 0;
    right: 0;
    display: block;
  }
}
@media (max-width: 480px) {
  .event-title {
    font-size: 1.8rem;
  }

  .sub-title {
    font-size: 1rem;
  }

  .cta {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (hover: hover) {
  .benefit-item:hover {
    transform: translateY(-5px);
  }

  .cta:hover {
    transform: translateY(-3px);@media (hover: hover) {
      .benefit-item:hover {
        transform: translateY(-5px);
      }
    
      .cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(128, 61, 153, 0.6);
      }
    }
    box-shadow: 0 8px 20px rgba(128, 61, 153, 0.6);
  }
}