/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body polos saja */
body{
  font-family:'Inter',sans-serif;
  color:#fff;
  min-height:100vh;
  overflow-x:hidden;
  position:relative;
  background:#121212; /* fallback */
}

/* Lapisan gambar + overlay */
.matrix-bg{
  position:fixed; inset:0;
  z-index:-2;
  background-image:url('https://enginehacksga.pages.dev/img/bgd.jpg');
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
  background-attachment:fixed;
}

/* Ganti ke gambar mobile */
@media (max-width:768px){
  .matrix-bg{
    background-image:url('https://enginehacksga.pages.dev/img/bgm.png');
    background-attachment:scroll; /* lebih aman di mobile */
  }
}

/* Overlay efek (semi transparan) */
.matrix-bg::before{
  content:''; position:absolute; inset:0;
  /* pakai RGBA supaya gambar tetap terlihat */
  background: linear-gradient(45deg,
    rgba(18,18,18,.70) 0%,
    rgba(26,0,0,.70) 50%,
    rgba(18,18,18,.70) 100%);
  z-index:0;
  opacity:1;
  animation:pulse 4s ease-in-out infinite alternate;
}
.matrix-bg::after{
  content:''; position:absolute; inset:0; z-index:1;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 98px, rgba(255,215,0,.03) 100px
  );
  animation: matrix-scroll 20s linear infinite;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo-text {
    font-family: 'Audiowide', cursive;
    font-size: 2.5rem;
    color: #FFD700;
    text-shadow: 
        0 0 10px #FFD700,
        0 0 20px #FFD700,
        0 0 30px #FFD700;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.logo-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #FF2020;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #FF2020;
}

@keyframes glow-pulse {
    0% { text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #FFD700; }
    100% { text-shadow: 0 0 20px #FFD700, 0 0 30px #FFD700, 0 0 40px #FFD700; }
}

/* Progress Bar */
.progress-container {
    margin-bottom: 100px;
}

.progress-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.progress-line {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FF2020);
    border-radius: 2px;
    width: 25%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px #FFD700;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
    color: #FFD700;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #FFD700;
    color: #121212;
    border-color: #FFD700;
    box-shadow: 0 0 15px #FFD700;
}

.progress-step.completed .step-number {
    background: #FF2020;
    color: #FFFFFF;
    border-color: #FF2020;
    box-shadow: 0 0 15px #FF2020;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    position: relative;
}

.step-content {
    display: none;
    animation: fadeInSlide 0.5s ease-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-title {
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 0 15px #FF2020;
    margin-bottom: 10px;
}

.step-description {
    color: #B0B0B0;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.selection-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.selection-card:hover::before {
    left: 100%;
}

.selection-card:hover {
    border-color: #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    transform: translateY(-5px);
}

.selection-card.selected {
    border-color: #FF2020;
    background: rgba(255, 32, 32, 0.1);
    box-shadow: 0 0 25px rgba(255, 32, 32, 0.4);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px #FFD700);
    display: block;
}

.selection-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.selection-card p {
    color: #B0B0B0;
    font-size: 0.9rem;
    margin: 0;
}

/* Checkbox for multi-select */
.checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid #FFD700;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.selection-card.selected .checkbox {
    background: #FF2020;
    border-color: #FF2020;
}

.selection-card.selected .checkbox::after {
    content: '✓';
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Buttons */
.next-btn, .back-btn, .contact-btn, .restart-btn, .copy-btn {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.next-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #121212;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    width: 100%;
}

.next-btn:hover {
    background: linear-gradient(45deg, #FF2020, #FF4500);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(255, 32, 32, 0.4);
    transform: translateY(-2px);
}

.next-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.5;
    pointer-events: none;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.back-btn:hover {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.step-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Finish Page Styles */
.finish-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.activation-section, .hash-section {
    background: rgba(139, 0, 0, 0.3);
    border: 2px solid #8B0000;
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.activation-section h3, .hash-section h3 {
    font-family: 'Orbitron', monospace;
    color: #FFD700;
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #FFD700;
}

.countdown-timer {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    color: #00FF00;
    text-shadow: 
        0 0 10px #00FF00,
        0 0 20px #00FF00,
        0 0 30px #00FF00;
    animation: digital-flicker 2s ease-in-out infinite;
    background: #000000;
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 15px;
    margin: 0 auto;
    max-width: 200px;
}

@keyframes digital-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hash-display {
    background: #000000;
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #00FF00;
    text-align: center;
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 5px #00FF00;
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000000;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(45deg, #FF2020, #FF4500);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(255, 32, 32, 0.4);
    transform: translateY(-2px);
}


/* Snackbar Notifications */
.snackbar-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.snackbar {
    background: rgba(139, 0, 0, 0.9);
    border: 1px solid #FF2020;
    border-radius: 8px;
    padding: 15px 20px;
    color: #FFFFFF;
    font-size: 0.9rem;
    max-width: 350px;
    backdrop-filter: blur(10px);
    animation: slideInFromLeft 0.5s ease-out;
    position: relative;
}

.snackbar::before {
    content: '💰';
    margin-right: 10px;
    font-size: 1.2rem;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .selection-card {
        padding: 20px;
        min-height: 100px;
    }
    
    .step-navigation {
        flex-direction: column;
    }
    
    .countdown-timer {
        font-size: 2rem;
    }
    
    .contact-section {
        flex-direction: column;
    }
    
    .contact-btn, .restart-btn {
        min-width: unset;
    }
    
    .snackbar-container {
        left: 10px;
        right: 10px;
    }
    
    .snackbar {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .selection-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .selection-card {
        padding: 15px;
        min-height: 90px;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .selection-card h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .selection-card p {
        font-size: 0.8rem;
    }
    
    .progress-steps {
        gap: 10px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .countdown-timer {
        font-size: 1.8rem;
    }
}

/* Additional Animations */
.selection-card {
    animation: cardFloat 6s ease-in-out infinite;
}

.selection-card:nth-child(even) {
    animation-delay: -3s;
}

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

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #FFD700;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}