﻿/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

    .popup-overlay.show {
        display: flex;
    }

/* Main Popup Container */
.popup-container {
    width: 648px;
    height: 648px;
    background: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

/* Wave Animation Background */
.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
    opacity: 0.1;
    animation: waveMove 8s ease-in-out infinite;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        animation: wobble 0.5s ease-in-out;
    }

/* Robot Container */
.robot-container {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot {
    width: 100px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

    .robot:hover {
        animation: robotWave 1s ease-in-out;
    }

.robot-body {
    width: 70px;
    height: 75px;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #E6C200;
}

    .robot-body::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 25px;
        background: linear-gradient(145deg, #333, #666);
        border-radius: 8px;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    }

.robot-head {
    width: 55px;
    height: 55px;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #E6C200;
}

.graduation-cap {
    width: 65px;
    height: 8px;
    background: linear-gradient(145deg, #000, #333);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

    .graduation-cap::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 45px;
        height: 8px;
        background: linear-gradient(145deg, #000, #333);
        border-radius: 3px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

.cap-tassel {
    width: 2px;
    height: 12px;
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    position: absolute;
    right: 8px;
    top: 8px;
    animation: tassel 2s ease-in-out infinite;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.3);
}

    .cap-tassel::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: -1px;
        width: 4px;
        height: 4px;
        background: #FFD700;
        border-radius: 50%;
    }

.robot-eyes {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.eye {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #4A90E2, #1E3A8A);
    border-radius: 50%;
    animation: blink 3s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    border: 1px solid #333;
}

    .eye::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 3px;
        height: 3px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
    }

.robot-mouth {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    background: linear-gradient(to bottom, #333, #000);
    border-radius: 0 0 16px 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.robot-arms {
    position: absolute;
    top: 35px;
    width: 100%;
    height: 30px;
}

.robot-arm {
    position: absolute;
    width: 15px;
    height: 30px;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #E6C200;
}

    .robot-arm.left {
        left: -18px;
        transform-origin: top center;
        animation: armWave 2s ease-in-out infinite;
    }

    .robot-arm.right {
        right: -18px;
        transform-origin: top center;
        animation: armWave 2s ease-in-out infinite reverse;
    }

.robot-antenna {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, #666, #333);
    border-radius: 1px;
}

    .robot-antenna::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -2px;
        width: 6px;
        height: 6px;
        background: radial-gradient(circle, #FF4444, #CC0000);
        border-radius: 50%;
        animation: antennaGlow 1.5s ease-in-out infinite;
    }

/* Floating Money Animation */
.floating-money {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.money-item {
    position: absolute;
    font-size: 24px;
    animation: float 4s ease-in-out infinite;
    opacity: 0.8;
}

    .money-item:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .money-item:nth-child(2) {
        top: 30%;
        right: 15%;
        animation-delay: 1s;
    }

    .money-item:nth-child(3) {
        top: 60%;
        left: 20%;
        animation-delay: 2s;
    }

    .money-item:nth-child(4) {
        top: 70%;
        right: 25%;
        animation-delay: 3s;
    }

/* Content */
.popup-content {
    text-align: center;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
}

.main-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.tagline {
    font-size: 17px;
    margin-bottom: 15px;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.features {
    list-style: none;
    margin-bottom: 15px;
}

    .features li {
        margin-bottom: 6px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

        .features li:before {
            content: "✓";
            color: #00FF88;
            font-weight: bold;
            margin-right: 10px;
            font-size: 16px;
        }

/* Code Typing Animation */
.code-animation {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 8px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    text-align: left;
    height: 50px;
    overflow: hidden;
}

.typing-text {
    color: #00FF88;
    animation: typing 3s steps(40) infinite;
}

/* CTA Section */
.cta-section {
    margin-top: auto;
}

.cta-button {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s ease-in-out infinite;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

    .cta-button:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    }

.urgency-text {
    font-size: 12px;
    color: #FFD700;
    margin-bottom: 10px;
    animation: blink 1.5s ease-in-out infinite;
}

.countdown {
    font-size: 14px;
    color: #FF6B6B;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #FFD700;
    animation: confetti-fall 3s linear infinite;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        width: 90vw;
        height: 90vh;
        max-width: 400px;
        max-height: 600px;
        padding: 20px;
    }

    .main-title {
        font-size: 20px;
    }

    .tagline {
        font-size: 16px;
    }

    .robot {
        width: 100px;
        height: 100px;
    }

    .robot-body {
        width: 70px;
        height: 70px;
    }

    .robot-head {
        width: 50px;
        height: 50px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes waveMove {

    0%, 100% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(5px) translateY(-5px);
    }

    50% {
        transform: translateX(-5px) translateY(5px);
    }

    75% {
        transform: translateX(5px) translateY(5px);
    }
}

@keyframes blink {

    0%, 90%, 100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

@keyframes tassel {

    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

@keyframes robotWave {

    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-5deg) scale(1.05);
    }

    75% {
        transform: rotate(5deg) scale(1.05);
    }
}

@keyframes armWave {

    0%, 100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

@keyframes antennaGlow {

    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes float {

    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes pulse {

    0%, 100% {
        box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 5px 25px rgba(255, 107, 107, 0.8);
    }
}

@keyframes wobble {

    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

@keyframes typing {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}