/* CTA Buttons - Quantum Matrix Style */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    z-index: 1;
    margin: 10px 10px 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Primary Button - Glowing Cyber Blue */
.btn-primary {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
    border: 2px solid transparent;
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0080ff, #00ffff);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    border-radius: 50px;
    opacity: 0;
    z-index: -2;
    transition: opacity 0.4s;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover::after {
    opacity: 0.8;
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Secondary Button - Holographic Border */
.btn-secondary {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
    position: relative;
    backdrop-filter: blur(10px);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 50px;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
        #00ffff, #ff00ff, #00ffff, #00ff88,
        #ffff00, #ff00ff, #00ffff);
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
    background-size: 300% 300%;
    animation: borderGradient 6s linear infinite;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:hover::after {
    opacity: 1;
}

/* Ripple Effect for All Buttons */
.btn:active {
    transform: scale(0.98);
}

/* Special Mega CTA Button */
.btn-mega {
    padding: 20px 60px;
    font-size: 1.3rem;
    background: linear-gradient(135deg,
        #00ffff 0%,
        #0080ff 25%,
        #ff00ff 50%,
        #ff0080 75%,
        #00ffff 100%);
    background-size: 300% 300%;
    animation: megaGradient 5s ease infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes megaGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-mega:hover {
    animation-duration: 2s;
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.6),
        0 0 80px rgba(255, 0, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Success Button - Green Matrix */
.btn-success {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
    border: 2px solid transparent;
    position: relative;
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
}

/* Warning Button - Orange Glow */
.btn-warning {
    background: linear-gradient(135deg, #ff9500, #ff6200);
    color: #fff;
    border: 2px solid transparent;
    position: relative;
}

.btn-warning:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.5);
}

/* Danger Button - Red Alert */
.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
    border: 2px solid transparent;
    position: relative;
}

.btn-danger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.5);
}

/* Button Group */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
        letter-spacing: 1px;
        margin: 8px 5px;
        width: 100%;
        text-align: center;
    }

    .btn-mega {
        padding: 16px 40px;
        font-size: 1.1rem;
    }

    .btn-group {
        flex-direction: column;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .btn {
        padding: 14px 35px;
        font-size: 1.05rem;
    }

    .btn-mega {
        padding: 18px 50px;
        font-size: 1.2rem;
    }
}