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

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

body {
    font-family: 'Orbitron', monospace;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #00ffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Image Collage Background */
.image-collage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.collage-image {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.collage-image:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.collage-image:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.collage-image:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.collage-image:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.collage-image:nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.collage-image:nth-child(6) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

.collage-image:nth-child(7) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

/* Scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

/* Glitch overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.03) 50%,
        transparent 100%
    );
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

.container {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

h1 {
    font-size: 2.8em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        0 0 40px #00ffff;
    animation: pulse 2s ease-in-out infinite;
    color: #00ffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

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

.counter-section {
    margin: 25px 0;
}

.counter-display {
    font-size: 2.5em;
    font-weight: 700;
    margin: 15px 0;
    letter-spacing: 3px;
}

.counter-display.global {
    color: #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
}

.counter-display.personal {
    color: #ff6b00;
    text-shadow: 
        0 0 10px #ff6b00,
        0 0 20px #ff6b00;
}

.counter-label {
    font-size: 1.2em;
    color: #00ffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}


.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

button {
    font-family: 'Orbitron', monospace;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 107, 0, 0.2));
    border: 3px solid #00ffff;
    color: #00ffff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 150px;
}

button.decrement-btn {
    border-color: #ff6b00;
    color: #ff6b00;
    box-shadow: 
        0 0 20px rgba(255, 107, 0, 0.5),
        inset 0 0 20px rgba(255, 107, 0, 0.1);
}

button.increment-btn {
    border-color: #00ffff;
    color: #00ffff;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover {
    transform: scale(1.05);
}

button.decrement-btn:hover {
    border-color: #ff6b00;
    color: #ff6b00;
    box-shadow: 
        0 0 30px rgba(255, 107, 0, 0.8),
        inset 0 0 30px rgba(255, 107, 0, 0.2);
}

button.increment-btn:hover {
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.8),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:active {
    transform: scale(0.98);
}

/* Grid pattern overlay */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    border-radius: 10px;
}

/* Corner decorations */
.container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 30px;
    height: 30px;
    border-top: 3px solid #00ffff;
    border-left: 3px solid #00ffff;
    box-shadow: 
        0 0 10px #00ffff,
        -2px -2px 0 #00ffff;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
        letter-spacing: 3px;
    }
    
    .counter-display {
        font-size: 1.8em;
    }
    
    button {
        font-size: 0.9em;
        padding: 12px 20px;
        min-width: 120px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .container {
        padding: 30px 20px;
    }
}

