@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #8e44ad;
    --secondary-color: #d35400;
    --accent-color: #00b894;
    --dark-bg: #000000;
    --text-color: #ecf0f1;
    --inactive-segment-color: #8d44ad44;
    --glass-bg: rgba(10, 10, 10, 0.25);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(1.5px);
}

.container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none; 
}

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

.glass-card:hover {
    box-shadow: 0 0 12px -2px var(--primary-color);
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
}

.hidden.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

h1, h2, h3 {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

#hero {
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://t3.ftcdn.net/jpg/02/87/35/70/360_F_287357045_Ib0oYOxhotdjOEHi0vkggpZTQCsz0r19.jpg');
    background-size: cover;
    background-position: center;
}

#hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 5s linear infinite;
}

@keyframes animate-gradient {
    to {
        background-position: 200% center;
    }
}

#hero .subtitle { font-size: 1.6rem; }

.cta-button {
    position: relative;
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    padding-bottom: 150%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 50%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.7s ease;
}

.cta-button:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

.cta-button:hover {
    box-shadow: 0 0 25px var(--primary-color);
}

#about h2, #details h2, #lineup h2, #register h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
}

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.feature-item i { font-size: 3rem; margin-bottom: 1rem; color: var(--accent-color); text-shadow: 0 0 15px var(--accent-color); }
.feature-item h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }

.details-container { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.details-grid { flex: 2; display: grid; grid-template-columns: 1fr; gap: 1.5rem; min-width: 250px; }
.calendar-container { flex: 1; display: flex; justify-content: center; align-items: center; min-width: 280px; }
.detail-item { display: flex; align-items: center; gap: 1.5rem; background: rgba(0,0,0,0.2); padding: 1.2rem; border-radius: 10px; }
.detail-item i { font-size: 2.5rem; width: 50px; text-align: center; color: var(--accent-color); }
.detail-item.price p { font-weight: bold; font-size: 1.3rem; color: var(--secondary-color); }
.calendar { width: 100%; max-width: 300px; background: rgba(0,0,0,0.2); padding: 1rem; border-radius: 10px; }
.month { text-align: center; font-weight: 600; font-size: 1.2rem; margin-bottom: 1rem; }
.days-header, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.days-header span { text-align: center; font-weight: 600; font-size: 0.9rem; color: #aaa; }
.days span { text-align: center; padding: 0.5rem 0; border-radius: 50%; transition: background 0.3s; }
.days span.other-month { color: #555; }
.days span.marked { background: var(--primary-color); color: #fff; font-weight: bold; box-shadow: 0 0 10px var(--primary-color); }

.lineup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.dj-card { text-align: center; }
.dj-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 15px; margin-bottom: 1rem; transition: transform 0.3s ease; }
.dj-card:hover img { transform: scale(1.05); }
.dj-card h3 { font-size: 1.4rem; }
.dj-card p { color: #bbb; }

#register { text-align: center; }
#register-form { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; margin: 0 auto; }
#register-form input { padding: 14px; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.3); color: var(--text-color); font-family: 'Poppins', sans-serif; font-size: 1rem; transition: box-shadow 0.3s ease; }
#register-form input:focus { outline: none; box-shadow: 0 0 10px var(--primary-color); }
#form-success-message { text-align: center; padding: 2rem 0; }
#form-success-message h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }

.flipper-container {
    perspective: 1000px;
    position: relative;
    height: 55px;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-style: preserve-3d;
}

.flipper-container.is-flipped .flipper {
    transform: rotateY(180deg);
}

.flipper-front,
.flipper-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    padding: 0 14px;
    box-sizing: border-box;
}

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

.input-icon {
    margin-right: 12px;
    color: #888;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.form-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    height: 100%;
}
.form-input:focus { outline: none; }
.form-input:focus + .input-icon, .flipper-front:focus-within .input-icon, .flipper-back:focus-within .input-icon { color: var(--primary-color); }
.form-input::placeholder { color: #888; }

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.controls .cta-button { flex-grow: 1; margin-top: 0; }

#switch-button {
    height: 55px;
    width: 55px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
#switch-button:hover { background: var(--primary-color); border-color: var(--primary-color); }

.party-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    color: #fff;
    background: var(--accent-color);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: float 3s ease-in-out infinite;
}

.party-button:hover {
    transform: perspective(1000px) scale(1.1);
    box-shadow: 0 0 20px var(--accent-color);
}

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

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 1;
    pointer-events: none;
    z-index: 1000;
}

footer { text-align: center; padding: 2rem; }
.social-icons a { color: var(--text-color); font-size: 1.8rem; margin: 0 1rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-icons a:hover { color: var(--primary-color); transform: scale(1.2); }

@media (max-width: 768px) {
    #hero h1 { font-size: 3.5rem; }
    .details-container { flex-direction: column; }
}
@media (max-width: 480px) {
    .container { margin: 1.5rem auto; }
    .glass-card { padding: 2rem; }
    #hero h1 { font-size: 2.8rem; letter-spacing: 2px; }
}
.text {
    font-family: 'Major Mono Display', monospace;
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: 2px;
    cursor: crosshair;
    text-transform: uppercase;
}



  .final-element-container {
    width: 90%;
    max-width: 700px;
    background: var(--glass-bg);
    padding: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  }

  h2 {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0;
    margin-bottom: 30px;
  }

  .purple-segmented-bar {
    position: relative;
    width: 50%;
    height: 40px;
    display: flex;
    gap: 5px;
    margin: 1rem auto 0;
  }

  .purple-segmented-bar::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    pointer-events: none;
  }

  .purple-segment {
    flex: 1;
    height: 100%;
    background: var(--inactive-segment-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }

  .purple-segment.active {
    background: var(--primary-color);
    opacity: 1;
    animation: segment-power-on 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px rgba(173, 68, 77, 0.5);
  }
  
  @keyframes segment-power-on {
    0% {
      transform: scale(0.8);
      filter: brightness(3);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      filter: brightness(1);
      opacity: 1;
    }
  }