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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#video-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
}

/* Navigation Bar */
#nav-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 50;
}

/* Click Counter */
#click-counter {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#counter-value {
    color: #00d9ff;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 15px;
    border-radius: 20px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main Container */
#main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    gap: 40px;
}

#image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#pop-image {
    max-width: 80vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.05s ease;
}

#pop-image:active {
    transform: scale(0.95);
}

/* Style Toggle Button */
#style-toggle-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 217, 255, 0.3);
    border: 2px solid #00d9ff;
    border-radius: 50px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

#style-toggle-btn:hover {
    background: rgba(0, 217, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 217, 255, 0.5);
}

#style-toggle-btn:active {
    transform: translateY(-1px);
}

/* +1 Animation */
.plus-one {
    position: fixed;
    color: #00d9ff;
    font-size: 36px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1000;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8), 0 0 20px rgba(0, 217, 255, 0.5);
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* CA Section */
#ca-section {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 50;
    cursor: pointer;
    transition: all 0.3s ease;
}

#ca-section:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

#ca-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

#copy-btn {
    background: rgba(0, 217, 255, 0.3);
    border: 1px solid #00d9ff;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #00d9ff;
}

#copy-btn:hover {
    background: rgba(0, 217, 255, 0.5);
    transform: scale(1.1);
}

#copy-btn:active {
    transform: scale(0.95);
}

#copy-btn svg {
    display: block;
}

/* Copied notification */
.copied-notification {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 217, 255, 0.9);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 1001;
    animation: fadeInOut 2s ease-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    15% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #nav-bar {
        gap: 10px;
        padding: 10px 20px;
        top: 15px;
    }

    .nav-link {
        font-size: 14px;
        padding: 5px 10px;
    }

    #click-counter {
        font-size: 20px;
        padding: 8px 16px;
        top: 80px;
    }

    #pop-image {
        max-width: 90vw;
        max-height: 50vh;
    }

    #style-toggle-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    #ca-section {
        bottom: 20px;
        padding: 12px 20px;
        gap: 10px;
    }

    #ca-text {
        font-size: 14px;
    }

    #copy-btn {
        padding: 6px 8px;
    }

    #copy-btn svg {
        width: 14px;
        height: 14px;
    }
}
